Home
last modified time | relevance | path

Searched refs:Store (Results 1 – 25 of 273) sorted by relevance

1234567891011

/wasmtime-44.0.1/crates/c-api/include/wasmtime/
H A Dgc.hh65 static EqRef from_i31(Store::Context cx, uint32_t val) { in from_i31()
72 bool is_i31(Store::Context cx) const { in is_i31()
87 std::optional<int32_t> i31_get_s(Store::Context cx) const { in i31_get_s()
95 bool is_struct(Store::Context cx) const { in is_struct()
100 bool is_array(Store::Context cx) const { in is_array()
114 inline StructRef as_struct(Store::Context cx) const;
119 inline ArrayRef as_array(Store::Context cx) const;
401 Result<uint32_t> len(Store::Context cx) const { in len()
449 inline bool AnyRef::is_eqref(Store::Context cx) const { in is_eqref()
452 inline bool AnyRef::is_struct(Store::Context cx) const { in is_struct()
[all …]
H A Dmemory.hh36 static Result<Memory> create(Store::Context cx, const MemoryType &ty) { in create()
46 MemoryType type(Store::Context cx) const { in type()
51 uint64_t size(Store::Context cx) const { in size()
60 Span<uint8_t> data(Store::Context cx) const { in data()
70 Result<uint64_t> grow(Store::Context cx, uint64_t delta) const { in grow()
91 uint64_t page_size(Store::Context cx) const { in page_size()
108 uint8_t page_size_log2(Store::Context cx) const { in page_size_log2()
H A Dfunc.hh30 friend class Store;
42 Store::Context context() { return this; } in context()
45 inline Store::Context::Context(Caller &caller) in Context()
89 static void store(Store::Context cx, wasmtime_val_raw_t *p, in store()
97 static void store(Store::Context cx, wasmtime_val_raw_t *p, in store()
105 static std::optional<ExternRef> load(Store::Context cx, in load()
124 static V128 load(Store::Context cx, wasmtime_val_raw_t *p) { in load()
469 static Func wrap(Store::Context cx, F f) { in wrap()
537 TrapResult<std::vector<Val>> call(Store::Context cx, in call()
554 FuncType type(Store::Context cx) const { in type()
[all …]
H A Dexn.hh57 static Result<Exn> create(Store::Context cx, const Tag &tag, in create()
71 Result<Tag> tag(Store::Context cx) const { in tag()
81 size_t field_count(Store::Context cx) const { in field_count()
86 Result<Val> field(Store::Context cx, size_t index) const { in field()
102 inline Trap Store::Context::throw_exception(Exn exn) { in throw_exception()
106 inline std::optional<Exn> Store::Context::take_exception() { in take_exception()
114 inline bool Store::Context::has_exception() { in has_exception()
H A Dval.hh79 explicit ExternRef(Store::Context cx, std::any val) { in ExternRef()
89 std::any &data(Store::Context cx) { in data()
95 uint32_t take_raw(Store::Context cx) { in take_raw()
102 uint32_t borrow_raw(Store::Context cx) const { in borrow_raw()
157 uint32_t take_raw(Store::Context cx) { in take_raw()
164 uint32_t borrow_raw(Store::Context cx) const { in borrow_raw()
177 std::optional<int32_t> i31(Store::Context cx) const { in i31()
185 bool is_i31(Store::Context cx) const { in is_i31()
190 inline bool is_eqref(Store::Context cx) const;
193 inline bool is_struct(Store::Context cx) const;
[all …]
H A Dtable.hh48 static Result<Table> create(Store::Context cx, const TableType &ty, in create()
59 TableType type(Store::Context cx) const { in type()
64 uint64_t size(Store::Context cx) const { in size()
71 std::optional<Val> get(Store::Context cx, uint64_t idx) const { in get()
82 Result<std::monostate> set(Store::Context cx, uint64_t idx, in set()
99 Result<uint64_t> grow(Store::Context cx, uint64_t delta, in grow()
H A Dglobal.hh45 static Result<Global> create(Store::Context cx, const GlobalType &ty, in create()
56 GlobalType type(Store::Context cx) const { in type()
61 Val get(Store::Context cx) const { in get()
70 Result<std::monostate> set(Store::Context cx, const Val &val) const { in set()
H A Dstore.hh45 class Store { class
46 WASMTIME_OWN_WRAPPER(Store, wasmtime_store);
55 explicit Store(Engine &engine) in Store() function in wasmtime::Store
80 friend class Store;
89 Context(Store &store) : Context(wasmtime_store_context(store.ptr.get())) {} in Context()
91 Context(Store *store) : Context(*store) {} in Context()
/wasmtime-44.0.1/crates/c-api/tests/
H A Dstore.cc20 TEST(Store, Smoke) { in TEST() argument
22 Store store(engine); in TEST()
23 Store store2 = std::move(store); in TEST()
24 Store store3(std::move(store2)); in TEST()
26 store = Store(engine); in TEST()
34 TEST(Store, EpochDeadlineCallback) { in TEST() argument
40 Store store(engine); in TEST()
42 [&num_calls](wasmtime::Store::Context /* context */, in TEST()
73 [](wasmtime::Store::Context /* context */, uint64_t &epoch_deadline_delta) in TEST()
/wasmtime-44.0.1/crates/fuzzing/tests/oom/
H A Dstore.rs3 use wasmtime::{Config, Engine, Result, Store, StoreLimitsBuilder};
13 let _ = Store::try_new(&engine, ())?; in store_try_new()
25 let store = Store::try_new(&engine, 42u32)?; in store_data()
38 let mut store = Store::try_new(&engine, 42u32)?; in store_data_mut()
52 let store = Store::try_new(&engine, ())?; in store_engine()
65 let mut store = Store::try_new(&engine, StoreLimitsBuilder::new().build())?; in store_limiter()
79 let mut store = Store::try_new(&engine, ())?; in store_fuel()
95 let mut store = Store::try_new(&engine, ())?; in store_epoch_deadline()
H A Dmemory.rs3 use wasmtime::{Config, Engine, Memory, MemoryType, Result, Store};
18 let mut store = Store::try_new(&engine, ())?; in memory_new()
32 let mut store = Store::try_new(&engine, ())?; in memory_grow()
47 let mut store = Store::try_new(&engine, ())?; in memory_ty()
62 let mut store = Store::try_new(&engine, ())?; in memory_size()
77 let mut store = Store::try_new(&engine, ())?; in memory_data_size()
92 let mut store = Store::try_new(&engine, ())?; in memory_read_write()
110 let mut store = Store::try_new(&engine, ())?; in memory_data()
126 let mut store = Store::try_new(&engine, ())?; in memory_data_mut()
H A Dtable.rs3 use wasmtime::{Config, Engine, Ref, RefType, Result, Store, Table, TableType};
18 let mut store = Store::try_new(&engine, ())?; in table_new()
33 let mut store = Store::try_new(&engine, ())?; in table_grow()
49 let mut store = Store::try_new(&engine, ())?; in table_set()
65 let mut store = Store::try_new(&engine, ())?; in table_copy()
81 let mut store = Store::try_new(&engine, ())?; in table_fill()
97 let mut store = Store::try_new(&engine, ())?; in table_get()
114 let mut store = Store::try_new(&engine, ())?; in table_ty()
130 let mut store = Store::try_new(&engine, ())?; in table_size()
H A Dfunc.rs3 use wasmtime::{Config, Engine, Func, FuncType, Linker, Module, Result, Store, Val, ValType};
14 let mut store = Store::try_new(&engine, ())?; in func_new()
28 let mut store = Store::try_new(&engine, ())?; in func_new_with_type()
59 let mut store = Store::try_new(&engine, ())?; in func_call()
91 let mut store = Store::try_new(&engine, ())?; in func_call_async()
124 let mut store = Store::try_new(&engine, ())?; in func_typed()
141 let mut store = Store::try_new(&engine, ())?; in func_ty()
H A Dinstance.rs3 use wasmtime::{Config, Engine, Func, Instance, Linker, Module, Result, Store};
35 let mut store = Store::try_new(&engine, ())?; in call_exported_func()
63 let mut store = Store::try_new(&engine, ())?; in instance_new()
87 let mut store = Store::try_new(&engine, ())?; in instance_get_export()
115 let mut store = Store::try_new(&engine, ())?; in instance_exports()
144 let mut store = Store::try_new(&engine, ())?; in instance_get_func()
173 let mut store = Store::try_new(&engine, ())?; in instance_get_typed_func()
197 let mut store = Store::try_new(&engine, ())?; in instance_get_table()
222 let mut store = Store::try_new(&engine, ())?; in instance_get_memory()
251 let mut store = Store::try_new(&engine, ())?; in instance_get_global()
H A Dglobal.rs3 use wasmtime::{Config, Engine, Global, GlobalType, Mutability, Result, Store, Val, ValType};
14 let mut store = Store::try_new(&engine, ())?; in global_new()
29 let mut store = Store::try_new(&engine, ())?; in global_get()
46 let mut store = Store::try_new(&engine, ())?; in global_set()
64 let mut store = Store::try_new(&engine, ())?; in global_ty()
/wasmtime-44.0.1/tests/all/
H A Dpooling_allocator.rs16 let mut store = Store::new(&engine, ()); in successful_instantiation()
66 let mut store = Store::new(&engine, ()); in memory_limit()
84 let mut store = Store::new(&engine, ()); in memory_limit()
120 let mut store = Store::new(&engine, ()); in memory_init()
295 let mut store = Store::new(&engine, ()); in table_limit()
342 let mut store = Store::new(&engine, ()); in table_init()
434 let mut store = Store::new(&engine, ()); in total_core_instances_limit()
458 let mut store = Store::new(&engine, ()); in preserve_data_segments()
505 let mut store = Store::new(&engine, ()); in multi_memory_with_imported_memories()
620 let mut store = Store::new(&engine, ()); in switch_image_and_non_image()
[all …]
H A Dtraps.rs14 let mut store = Store::<()>::default(); in test_trap_return()
42 let mut store = Store::<()>::default(); in test_format_err_error_return()
70 let mut store = Store::<()>::default(); in test_trap_return_downcast()
117 let mut store = Store::<()>::default(); in test_trap_trace()
236 let mut store = Store::<()>::default(); in test_trap_trace_cb()
906 child_store: Store<()>, in catch_trap_calling_across_stores()
938 let mut store = Store::new( in catch_trap_calling_across_stores()
998 sync_store: Store<()>, in async_then_sync_trap()
1001 let mut async_store = Store::new( in async_then_sync_trap()
1078 async_store: Store<()>, in sync_then_async_trap()
[all …]
H A Dmissing_async.rs5 fn async_store() -> Store<()> { in async_store()
7 let mut store = Store::new(&engine, ()); in async_store()
50 let mut store = Store::new(&engine, ()); in require_async_after_func_wrap()
58 let mut store = Store::new(&engine, ()); in require_async_after_func_new()
67 let mut store = Store::new(&engine, ()); in require_async_after_linker_with_func_wrap()
79 let mut store = Store::new(&engine, ()); in require_async_after_linker_with_func_new()
94 let mut store = Store::new(&engine, ()); in require_async_after_epochs()
105 let mut store = Store::new(&engine, ()); in require_async_after_fuel()
121 let mut store = Store::new(&engine, ()); in require_async_with_linker_func_wrap()
135 let mut store = Store::new(&engine, ()); in require_async_with_debug_handler()
[all …]
H A Dlinker.rs10 let mut store = Store::<()>::default(); in link_undefined()
29 let mut store = Store::<()>::default(); in test_unknown_import_error()
47 let mut store = Store::<()>::default(); in link_twice_bad()
98 let mut store = Store::<()>::default(); in function_interposition()
133 let mut store = Store::<()>::default(); in function_interposition_renamed()
164 let mut store = Store::<()>::default(); in module_interposition()
196 let mut store = Store::<()>::default(); in allow_unknown_exports()
283 let mut store = Store::new(&engine, ()); in get_host_function()
330 let mut store = Store::<()>::default(); in alias_one()
387 let mut store = Store::<()>::default(); in test_trapping_unknown_import()
[all …]
H A Dglobals.rs5 let mut store = Store::<()>::default(); in smoke()
46 let mut store = Store::<()>::default(); in mutability()
64 let mut store = Store::<()>::default(); in use_after_drop()
94 let mut store = Store::<()>::default(); in v128()
113 let mut store = Store::new(&engine, ()); in i31ref_global_new()
137 let mut store = Store::new(&engine, ()); in i31ref_global_get()
173 let mut store = Store::new(&engine, ()); in i31ref_global_set()
213 let mut store = Store::new(&engine, ()); in i31ref_global_ty()
237 let mut store = Store::new(&engine, ()); in i31ref_as_anyref_global_new()
261 let mut store = Store::new(&engine, ()); in i31ref_as_anyref_global_get()
[all …]
/wasmtime-44.0.1/tests/all/component_model/
H A Dmissing_async.rs4 use wasmtime::{Config, Engine, Result, Store};
6 fn async_store() -> Store<()> { in async_store()
8 let mut store = Store::new(&engine, ()); in async_store()
13 async fn func_in_store(store: &mut Store<()>) -> Result<Func> { in func_in_store()
33 fn assert_requires_async<T>(store: &mut Store<T>) { in assert_requires_async()
70 let mut store = Store::new(&engine, ()); in require_async_after_linker_with_func_wrap_async()
94 let mut store = Store::new(&engine, ()); in require_async_after_linker_with_func_wrap_concurrent()
116 let mut store = Store::new(&engine, ()); in require_async_after_linker_with_func_new_async()
140 let mut store = Store::new(&engine, ()); in require_async_after_linker_with_func_new_concurrent()
H A Dresources.rs5 use wasmtime::{Config, Engine, Store, Trap};
38 let mut store = Store::new(&engine, ()); in host_resource_types()
90 let mut store = Store::new(&engine, ()); in guest_resource_types()
240 let mut store = Store::new(&engine, ()); in mismatch_intrinsics()
276 let mut store = Store::new(&engine, ()); in mismatch_resource_types()
324 let mut store = Store::new(&engine, ()); in drop_in_different_places()
365 let mut store = Store::new(&engine, ()); in drop_guest_twice()
399 let mut store = Store::new(&engine, ()); in drop_host_twice()
526 let mut store = Store::new(&engine, ()); in dynamic_type()
583 let mut store = Store::new(&engine, ()); in dynamic_val()
[all …]
H A Dasync.rs30 let mut store = Store::new(&engine, ()); in smoke()
77 let mut store = Store::new(&engine, ()); in smoke_func_wrap()
282 let mut store = Store::new(&engine, ()); in drop_resource_async()
645 let mut store = Store::new(&engine, ()); in task_deletion()
732 let mut store = Store::new(&engine, ()); in cancel_host_future()
838 let mut store = Store::new(&engine, ()); in require_concurrency_support()
876 let mut store = Store::new(&engine, ()); in cancel_host_task_does_not_leak()
967 let mut store = Store::new(&engine, 0); in sync_lower_async_host_does_not_leak()
1144 let mut store = Store::new(&engine, ()); in stream_cancel_read_async_does_not_corrupt_state()
1197 let mut store = Store::new(&engine, 0); in concurrent_sync_calls_to_async_host()
[all …]
H A Dlinker.rs4 use wasmtime::{Engine, Store};
21 let mut store = Store::new(&engine, ()); in old_import_importing_new_item()
44 let mut store = Store::new(&engine, ()); in new_import_importing_old_item()
71 let mut store = Store::new(&engine, ()); in import_both_old_and_new()
99 let mut store = Store::new(&engine, ()); in missing_import_selects_max()
164 let mut store = Store::new(&engine, ()); in linker_defines_unknown_imports_as_traps()
/wasmtime-44.0.1/crates/wizer/src/component/
H A Dwasmtime.rs6 use wasmtime::{Result, Store, error::Context as _, format_err};
15 store: &mut Store<T>, in run_component()
17 instantiate: impl AsyncFnOnce(&mut Store<T>, &Component) -> Result<Instance>, in run_component()
62 store: &mut Store<T>, in initialize_component()
81 pub store: &'a mut Store<T>,
91 use_ret: impl FnOnce(&mut Store<T>, R) -> R2, in call_func()

1234567891011