Lines Matching refs:module
42 pub fn instantiate(module: &[u8]) -> Result<SpecInstance, String> { in instantiate()
47 let module = module.to_boxroot(ocaml_runtime); in instantiate() localVariable
48 let instance = ocaml_bindings::instantiate(ocaml_runtime, &module); in instantiate()
76 module: &[u8], in interpret_legacy()
84 let module = module.to_boxroot(ocaml_runtime); in interpret_legacy() localVariable
86 let results = ocaml_bindings::interpret_legacy(ocaml_runtime, &module, &opt_parameters); in interpret_legacy()
164 pub fn instantiate(module: OCamlBytes) -> Result<SpecInstance, String>;
166 …pub fn interpret_legacy(module: OCamlBytes, params: Option<OCamlList<SpecValue>>) -> Result<OCamlL…
187 let module = wat::parse_file("tests/add.wat").unwrap(); in invalid_function_name() localVariable
188 let instance = instantiate(&module).unwrap(); in invalid_function_name()
199 let module = wat::parse_file("tests/add.wat").unwrap(); in multiple_invocation() localVariable
200 let instance = instantiate(&module).unwrap(); in multiple_invocation()
227 let module = wat::parse_file("tests/add.wat").unwrap(); in multiple_invocation_legacy() localVariable
230 interpret_legacy(&module, Some(vec![SpecValue::I32(42), SpecValue::I32(1)])).unwrap(); in multiple_invocation_legacy()
232 interpret_legacy(&module, Some(vec![SpecValue::I32(1), SpecValue::I32(42)])).unwrap(); in multiple_invocation_legacy()
236 interpret_legacy(&module, Some(vec![SpecValue::I32(20), SpecValue::I32(23)])).unwrap(); in multiple_invocation_legacy()
242 let module = wat::parse_file("tests/oob.wat").unwrap(); in oob() localVariable
243 let instance = instantiate(&module).unwrap(); in oob()
253 let module = wat::parse_file("tests/oob.wat").unwrap(); in oob_legacy() localVariable
254 let results = interpret_legacy(&module, None); in oob_legacy()
263 let module = wat::parse_file("tests/simd_not.wat").unwrap(); in simd_not() localVariable
264 let instance = instantiate(&module).unwrap(); in simd_not()
281 let module = wat::parse_file("tests/simd_not.wat").unwrap(); in simd_not_legacy() localVariable
286 let results = interpret_legacy(&module, parameters).unwrap(); in simd_not_legacy()
299 let module = wat::parse_file("tests/shr_s.wat").unwrap(); in order_of_params() localVariable
300 let instance = instantiate(&module).unwrap(); in order_of_params()
314 let module = wat::parse_file("tests/shr_s.wat").unwrap(); in order_of_params_legacy() localVariable
320 let results = interpret_legacy(&module, parameters).unwrap(); in order_of_params_legacy()
327 let module = wat::parse_file("tests/memory.wat").unwrap(); in load_store_and_export() localVariable
328 let instance = instantiate(&module).unwrap(); in load_store_and_export()