Lines Matching refs:instance
48 let instance = ocaml_bindings::instantiate(ocaml_runtime, &module); in instantiate() localVariable
49 instance.to_rust(ocaml_runtime) in instantiate()
54 instance: &SpecInstance, in interpret()
63 let instance = instance.to_boxroot(ocaml_runtime); in interpret() localVariable
68 let results = ocaml_bindings::interpret(ocaml_runtime, &instance, &name, ¶meters); in interpret()
91 pub fn export(instance: &SpecInstance, name: &str) -> Result<SpecExport, String> { in export()
97 let instance = instance.to_boxroot(ocaml_runtime); in export() localVariable
101 let results = ocaml_bindings::export(ocaml_runtime, &instance, &name); in export()
165 …pub fn interpret(instance: SpecInstance, name: String, params: Option<OCamlList<SpecValue>>) -> Re…
167 pub fn export(instance: SpecInstance, name: String) -> Result<SpecExport, String>;
188 let instance = instantiate(&module).unwrap(); in invalid_function_name() localVariable
190 &instance, in invalid_function_name()
200 let instance = instantiate(&module).unwrap(); in multiple_invocation() localVariable
203 &instance, in multiple_invocation()
209 &instance, in multiple_invocation()
217 &instance, in multiple_invocation()
243 let instance = instantiate(&module).unwrap(); in oob() localVariable
244 let results = interpret(&instance, "oob", None); in oob()
264 let instance = instantiate(&module).unwrap(); in simd_not() localVariable
269 let results = interpret(&instance, "simd_not", parameters).unwrap(); in simd_not()
300 let instance = instantiate(&module).unwrap(); in order_of_params() localVariable
306 let results = interpret(&instance, "test", parameters).unwrap(); in order_of_params()
328 let instance = instantiate(&module).unwrap(); in load_store_and_export() localVariable
332 &instance, in load_store_and_export()
338 let loaded = interpret(&instance, "load_i32", Some(vec![SpecValue::I32(4)])); in load_store_and_export()
345 let export = export(&instance, "mem"); in load_store_and_export()