| /wasmtime-44.0.1/tests/misc_testsuite/gc/ |
| H A D | array-init-data.wast | 9 (func (export "array-init-data") (param $arr_len i32) 28 (invoke "array-init-data" (i32.const 5) (i32.const 0) (i32.const 0) (i32.const 5)) 31 (invoke "array-init-data" (i32.const 4) (i32.const 0) (i32.const 5) (i32.const 0)) 34 (invoke "array-init-data" (i32.const 4) (i32.const 0) (i32.const 1) (i32.const 4)) 37 (invoke "array-init-data" (i32.const 4) (i32.const 0) (i32.const 4) (i32.const 1)) 42 (invoke "array-init-data" (i32.const 3) (i32.const 0) (i32.const 0) (i32.const 4)) 59 (func (export "array-init-data-contents") (result i32 i32) 76 (func (export "array-init-data-little-endian") (result i32) 85 (assert_return (invoke "array-init-data-little-endian") (i32.const 0xddccbbaa)) 92 (func (export "array-init-data-unaligned") (result i32) [all …]
|
| H A D | i31ref-tables.wast | 33 (func (export "init") (param i32 i32 i32) 34 (table.init $table $elem (local.get 0) (local.get 1) (local.get 2)) 61 (invoke "init" (i32.const 1) (i32.const 0) (i32.const 3))
|
| /wasmtime-44.0.1/crates/c-api/src/ |
| H A D | table.rs | 43 init: Option<&wasm_ref_t>, in wasm_table_new() 46 let init = option_wasm_ref_t_to_ref(init, &tt); in wasm_table_new() localVariable 47 let table = Table::new(store.store.context_mut(), tt, init).ok()?; in wasm_table_new() 97 init: Option<&wasm_ref_t>, in wasm_table_grow() 100 let init = option_wasm_ref_t_to_ref(init, &table.ty(t.ext.store.context())); in wasm_table_grow() localVariable 102 .grow(t.ext.store.context_mut(), u64::from(delta), init) in wasm_table_grow() 120 init: &wasmtime_val_t, in wasmtime_table_new() 125 init.to_val(&mut scope) in wasmtime_table_new() 128 .and_then(|init| Table::new(scope, tt.ty().ty.clone(), init)), in wasmtime_table_new()
|
| /wasmtime-44.0.1/cranelift/module/src/ |
| H A D | data_context.rs | 54 pub init: Init, field 77 init: Init::Uninitialized, in new() 90 self.init = Init::Uninitialized; in clear() 102 debug_assert_eq!(self.init, Init::Uninitialized); in define_zeroinit() 103 self.init = Init::Zeros { size }; in define_zeroinit() 110 debug_assert_eq!(self.init, Init::Uninitialized); in define() 111 self.init = Init::Bytes { contents }; in define() 197 assert_eq!(data.init, Init::Uninitialized); in basic_data_context() 215 assert_eq!(data.init, Init::Zeros { size: 256 }); in basic_data_context() 223 assert_eq!(data.init, Init::Uninitialized); in basic_data_context() [all …]
|
| /wasmtime-44.0.1/tests/misc_testsuite/ |
| H A D | externref-table-dropped-segment-issue-8281.wast | 11 (table.init $t $declared) 18 (table.init $t $passive) 25 (table.init $t $passive) 32 (table.init $t $active)
|
| H A D | many_table_gets_lead_to_gc.wast | 6 (func (export "init") (param externref) 36 (invoke "init" (ref.extern 1))
|
| H A D | no-mixup-stack-maps.wast | 32 (func (export "init") (param externref) 50 (invoke "init" (ref.extern 1))
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/instance/ |
| H A D | allocator.rs | 537 match init { in initialize_tables() 542 let init = const_evaluator in initialize_tables() localVariable 595 init: &MemoryInitializer, in get_memory_init_start() 602 .eval_int(&mut store, context, &init.offset) in get_memory_init_start() 618 for init in initializers { in check_memory_init_bounds() 623 .and_then(|start| start.checked_add(init.data.len())); in check_memory_init_bounds() 693 init: &wasmtime_environ::StaticMemoryInitializer, in initialize_memories() 708 let src = instance.wasm_data(init.data.clone()); in initialize_memories() 709 let offset = usize::try_from(init.offset).unwrap(); in initialize_memories() 772 for (index, init) in module.global_initializers.iter() { in initialize_globals() [all …]
|
| /wasmtime-44.0.1/crates/c-api/include/wasmtime/ |
| H A D | table.hh | 49 const Val &init) { in create() argument 51 auto *error = wasmtime_table_new(cx.ptr, ty.ptr.get(), &init.val, &table); in create() 100 const Val &init) const { in grow() 102 auto *error = wasmtime_table_grow(cx.ptr, &table, delta, &init.val, &prev); in grow()
|
| H A D | table.h | 34 const wasmtime_val_t *init, 104 uint64_t delta, const wasmtime_val_t *init,
|
| H A D | global.hh | 46 const Val &init) { in create() argument 48 auto *error = wasmtime_global_new(cx.ptr, ty.ptr.get(), &init.val, &global); in create()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/externals/ |
| H A D | table.rs | 110 init: Ref, in new_async() 113 Table::_new(store, limiter.as_mut(), ty, init).await in new_async() 120 init: Ref, in _new() 123 table._fill(store, 0, init, ty.minimum())?; in _new() 286 vm::assert_ready(self._grow(store, delta, init)) in grow() 296 let element = init in _grow() 311 let element = init in _grow() 355 init: Ref, in grow_async() 357 self._grow(store.as_context_mut(), delta, init).await in grow_async() 716 fn _grow(table: &Table, store: &mut Store<()>, init: Ref) { in grow_is_send() [all …]
|
| /wasmtime-44.0.1/crates/cranelift/src/translate/ |
| H A D | func_translator.rs | 176 let (ty, init, needs_stack_map) = match wasm_type { in declare_locals() 208 let init = if rt.is_nullable() { in declare_locals() localVariable 213 (ty, init, needs_stack_map) in declare_locals() 223 if let Some(init) = init { in declare_locals() 224 builder.def_var(local, init); in declare_locals() 225 builder.set_val_label(init, ValueLabel::new(*next_local)); in declare_locals() 227 environ.add_state_slot_local(builder, environ.convert_valtype(wasm_type)?, init); in declare_locals()
|
| /wasmtime-44.0.1/tests/misc_testsuite/memory64/ |
| H A D | bounds.wast | 25 (func (export "init") (param i64 i32 i32) 29 memory.init 0) 53 (invoke "init" (i64.const 0) (i32.const 0) (i32.const 0)) 54 (invoke "init" (i64.const 0) (i32.const 0) (i32.const 4))
|
| /wasmtime-44.0.1/docs/ |
| H A D | contributing-reducing-test-cases.md | 39 A bug was reported involving the `memory.init` instruction. The attached test 53 # Disassembly the candidate into WAT. Make sure the `memory.init` instruction 56 wasm-tools print $1 | grep -q 'memory.init 2' 59 # length can change the semantics of the `memory.init` instruction. 62 # Make sure that the `_start` function that contains the `memory.init` is still 63 # exported, so that running the Wasm will run the `memory.init` instruction. 72 Note that this script is a little fuzzy! It just checks for `memory.init` and a 74 `memory.init` is given certain inputs! This means we need to double check that 106 memory.init 2 117 In this case, the arguments to the original `memory.init` instruction haven't
|
| /wasmtime-44.0.1/tests/all/ |
| H A D | table.rs | 102 for init in inits { in i31ref_table_new() 103 Table::new(&mut store, table_ty.clone(), init)?; in i31ref_table_new() 133 for init in inits { in i31ref_table_get() 134 let table = Table::new(&mut store, table_ty.clone(), init.clone())?; in i31ref_table_get() 137 assert_eq!(init.is_null(), val.is_null()); in i31ref_table_get() 139 init.as_any() in i31ref_table_get() 181 for init in inits { in i31ref_table_set() 183 let table = Table::new(&mut store, table_ty.clone(), init.clone())?; in i31ref_table_set() 215 for (elem_ty, init) in [ in i31ref_table_grow() 223 let table = Table::new(&mut store, table_ty, init)?; in i31ref_table_grow()
|
| /wasmtime-44.0.1/crates/environ/src/compile/ |
| H A D | module_environ.rs | 411 let init = match init { in translate_payload() localVariable 420 TableInitialValue::Expr(init) in translate_payload() 427 .push(init)?; in translate_payload() 1051 let data_len = u64::from(init.data.end - init.data.start); in try_static_init() 1128 for (idx, init) in info.segments.iter() { in try_static_init() 1130 assert_eq!(data.len(), init.data.len()); in try_static_init() 1193 let init = if len > 0 { in try_static_init() localVariable 1201 let idx = map.push(init).panic_on_oom(); in try_static_init() 1221 for ((_, init), (_, table)) in self in try_func_table_init() 1237 if let TableInitialValue::Expr(expr) = init { in try_func_table_init() [all …]
|
| /wasmtime-44.0.1/ci/ |
| H A D | miri-wast.sh | 22 -O memory-init-cow=n \ 27 -O memory-init-cow=n \
|
| /wasmtime-44.0.1/tests/misc_testsuite/function-references/ |
| H A D | table_grow.wast | 10 (func (export "grow") (param $sz i32) (param $init externref) (result i32) 11 (table.grow $t (local.get $init) (local.get $sz)) 129 (func $type-init-size-empty-vs-i32-externref (result i32) 147 (func $type-init-empty-vs-externref (result i32) 165 (func $type-init-externref-vs-funcref (param $r externref) (result i32) 175 (func $type-init-funcref-vs-typed-func (param $r funcref) (result i32)
|
| /wasmtime-44.0.1/crates/environ/src/ |
| H A D | module.rs | 131 for (index, init) in map { in init_memory() 132 if let Some(init) = init { in init_memory() 133 let result = state.write(index, init); in init_memory() 184 let init = StaticMemoryInitializer { in init_memory() localVariable 188 let result = state.write(memory_index, &init); in init_memory() 214 fn write(&mut self, memory_index: MemoryIndex, init: &StaticMemoryInitializer) -> bool; in write()
|
| /wasmtime-44.0.1/crates/fiber/src/ |
| H A D | miri.rs | 104 let init = { in run() localVariable 111 State::ResumeWith(RunResult::Resuming(init)) => init, in run() 123 init, in run()
|
| /wasmtime-44.0.1/benches/ |
| H A D | thread_eager_init.rs | 27 let (init, _call) = eager_thread_instantiate(engine.clone(), module.clone()); in measure_execution_time() 28 init in measure_execution_time()
|
| /wasmtime-44.0.1/tests/disas/ |
| H A D | passive-data.wat | 7 (func (export "init") (param i32 i32 i32) 11 memory.init $passive)
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/ |
| H A D | cow.rs | 186 for (memory_index, init) in map { in new() 197 let init = match init { in new() localVariable 198 Some(init) => init, in new() 205 let data_range = init.data.start as usize..init.data.end as usize; in new() 209 init.offset + u64::try_from(data_range.len()).unwrap() > mem_initial_len in new() 223 let offset_usize = match usize::try_from(init.offset) { in new()
|
| /wasmtime-44.0.1/cranelift/tests/ |
| H A D | logged-filetests.rs | 18 .init(); in logged_filetests()
|