Home
last modified time | relevance | path

Searched refs:get_export (Results 1 – 25 of 50) sorted by relevance

12

/wasmtime-44.0.1/tests/all/component_model/
H A Dinstance.rs40 .get_export(&mut store, None, "not an instance") in instance_exports()
44 assert!(instance.get_export(&mut store, Some(&i), "x").is_none()); in instance_exports()
45 instance.get_export(&mut store, None, "i").unwrap(); in instance_exports()
79 component.get_export(None, "a:b/[email protected]").unwrap(); in export_old_get_new()
81 component.get_export(Some(&i), "m").unwrap(); in export_old_get_new()
89 .get_export(&mut store, None, "a:b/[email protected]") in export_old_get_new()
95 instance.get_export(&mut store, Some(&i), "m").unwrap(); in export_old_get_new()
114 component.get_export(None, "a:b/[email protected]").unwrap(); in export_new_get_old()
116 component.get_export(Some(&i), "m").unwrap(); in export_new_get_old()
124 .get_export(&mut store, None, "a:b/[email protected]") in export_new_get_old()
[all …]
/wasmtime-44.0.1/crates/c-api/tests/
H A Dsimple.cc74 EXPECT_FALSE(caller.get_export("foo")); in TEST()
86 EXPECT_FALSE(caller.get_export("foo")); in TEST()
87 EXPECT_TRUE(caller.get_export("m")); in TEST()
88 EXPECT_TRUE(caller.get_export("f")); in TEST()
89 Memory m = std::get<Memory>(*caller.get_export("m")); in TEST()
/wasmtime-44.0.1/crates/wizer/src/component/
H A Dwasmtime.rs44 .get_export(None, init_func) in validate_component_init_func()
99 .get_export(&mut *self.store, None, instance) in call_func()
103 .get_export(&mut *self.store, Some(&instance_export), func) in call_func()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dinstance.rs453 pub fn get_export(&self, mut store: impl AsContextMut, name: &str) -> Option<Extern> { in get_export() method
510 self.get_export(store, name)?.into_func() in get_func()
534 .get_export(store.as_context_mut(), name) in get_typed_func()
550 self.get_export(store, name)?.into_table() in get_table()
562 self.get_export(store, name)?.into_memory() in get_memory()
579 self.get_export(&mut store, name)?.into_shared_memory() in get_shared_memory()
591 self.get_export(store, name)?.into_global() in get_global()
603 self.get_export(store, name)?.into_tag() in get_tag()
H A Dlinker.rs805 .get_export(&mut caller, &export_name) in module()
820 if let Some(export) = instance.get_export(&mut store, "_initialize") { in module()
869 .get_export(&mut caller, &export_name) in module_async()
884 if let Some(export) = instance.get_export(&mut store, "_initialize") { in module_async()
1453 let command_start = module.get_export("_start"); in categorize()
1454 let reactor_start = module.get_export("_initialize"); in categorize()
/wasmtime-44.0.1/crates/wizer/src/
H A Dwasmtime.rs33 match module.get_export(self.get_init_func()) { in validate_init_func()
62 if let Some(export) = instance.get_export(&mut *store, "_initialize") { in initialize()
/wasmtime-44.0.1/crates/fuzzing/tests/oom/
H A Dmodule_read.rs91 let export = module.get_export("f"); in module_get_export()
93 let missing = module.get_export("nonexistent"); in module_get_export()
H A Dcaller.rs34 let mem = caller.get_export("m"); in caller_get_export()
/wasmtime-44.0.1/crates/fuzzing/src/oracles/
H A Ddiff_wasmi.rs131 .get_export(&self.store, function_name) in evaluate()
145 .get_export(&self.store, name) in get_global()
158 .get_export(&self.store, name) in get_memory()
/wasmtime-44.0.1/crates/wasi-threads/src/
H A Dlib.rs192 module.get_export(WASI_ENTRY_POINT).is_some() in has_entry_point()
197 match module.get_export(WASI_ENTRY_POINT) { in has_correct_signature()
/wasmtime-44.0.1/tests/all/
H A Dcall_hook.rs214 .get_export(&mut store, "export") in call_linked_func()
283 .get_export(&mut store, "export") in call_linked_func_async()
363 .get_export("export") in recursion()
386 .get_export(&mut store, "export") in recursion()
446 .get_export("export") in trapping()
476 .get_export(&mut store, "export") in trapping()
607 .get_export(&mut store, "export") in basic_async_hook()
H A Dlinker.rs107 let green = instance.get_export(&mut store, "green").unwrap().clone(); in function_interposition()
119 .get_export(&mut store, "green") in function_interposition()
142 let export = instance.get_export(&mut store, "export").unwrap().clone(); in function_interposition_renamed()
184 .get_export(&mut store, "export") in module_interposition()
/wasmtime-44.0.1/crates/c-api/src/component/types/
H A Dinstance.rs34 match ty.ty.get_export(&engine.engine, name) { in wasmtime_component_instance_type_export_get()
H A Dcomponent.rs88 match ty.ty.get_export(&engine.engine, name) { in wasmtime_component_type_export_get()
/wasmtime-44.0.1/crates/c-api/include/wasmtime/
H A Dextern.hh59 inline std::optional<Extern> Caller::get_export(std::string_view name) { in get_export() function in wasmtime::Caller
/wasmtime-44.0.1/crates/wast/src/
H A Dwast.rs169 fn get_export(&mut self, module: Option<&str>, name: &str) -> Result<Export<'_>> { in get_export() method
184 i.get_export(&mut self.core_store, name) in get_export()
275 } => match me.get_export(module.as_deref(), field)? { in perform_action()
466 let global = match self.get_export(instance_name, field)? { in get()
/wasmtime-44.0.1/crates/component-macro/tests/expanded/
H A Dsmoke-default.rs119 .get_export(None, "y") in new()
H A Dfunction-new.rs119 .get_export(None, "new") in new()
H A Dfunction-new_concurrent.rs119 .get_export(None, "new") in new()
H A Dfunction-new_async.rs119 .get_export(None, "new") in new()
H A Dsmoke-default_async.rs119 .get_export(None, "y") in new()
H A Dsmoke-default_tracing_async.rs119 .get_export(None, "y") in new()
H A Dfunction-new_tracing_async.rs119 .get_export(None, "new") in new()
H A Dsmoke-default_concurrent.rs119 .get_export(None, "y") in new()
H A Dmulti-return.rs336 .get_export(&mut store, None, "foo:foo/multi-return") in new_instance()
343 instance.get_export(&mut store, Some(&instance_export), name) in new_instance()

12