Home
last modified time | relevance | path

Searched refs:own (Results 1 - 25 of 77) sorted by relevance

1234

/third_party/node/deps/v8/third_party/wasm-api/
H A Dwasm.h37 #define own macro
39 // The qualifier `own` is used to indicate ownership of data in this API.
42 // - `own wasm_xxx_t*` owns the pointed-to data
43 // - `own wasm_xxx_t` distributes to all fields of a struct or union `xxx`
44 // - `own wasm_xxx_vec_t` owns the vector as well as its elements(!)
45 // - an `own` function parameter passes ownership from caller to callee
46 // - an `own` function result passes ownership from callee to caller
47 // - an exception are `own` pointer parameters named `out`, which are copy-back
64 void wasm_##name##_delete(own wasm_##name##_t*);
75 void wasm_##name##_vec_new_empty(own wasm
691 #undef own global() macro
[all...]
H A Dwasm.hh165 template<class T> using own = std::unique_ptr<T>;
166 template<class T> using ownvec = vec<own<T>>;
169 auto make_own(T* x) -> own<T> { return own<T>(x); }
183 static auto make() -> own<Config>;
197 static auto make(own<Config>&& = Config::make()) -> own<Engine>;
209 static auto make(Engine*) -> own<Store>;
246 static auto make(ValKind) -> own<ValType>;
247 auto copy() const -> own<ValTyp
[all...]
/third_party/node/deps/v8/third_party/wasm-api/example/
H A Dtrap.c8 #define own macro
11 own wasm_trap_t* fail_callback( in fail_callback()
15 own wasm_name_t message; in fail_callback()
17 own wasm_trap_t* trap = wasm_trap_new((wasm_store_t*)env, &message); in fail_callback()
59 own wasm_module_t* module = wasm_module_new(store, &binary); in main()
69 own wasm_functype_t* fail_type = in main()
71 own wasm_func_t* fail_func = in main()
79 own wasm_instance_t* instance = in main()
90 own wasm_extern_vec_t exports; in main()
109 own wasm_trap_ in main()
[all...]
H A Dthreads.c10 #define own macro
16 own wasm_trap_t* callback(const wasm_val_t args[], wasm_val_t results[]) { in callback()
33 own wasm_store_t* store = wasm_store_new(args->engine); in run()
34 own wasm_module_t* module = wasm_module_obtain(store, args->module); in run()
41 own wasm_functype_t* func_type = wasm_functype_new_1_0(wasm_valtype_new_i32()); in run()
42 own wasm_func_t* func = wasm_func_new(store, func_type, callback); in run()
46 own wasm_globaltype_t* global_type = in run()
48 own wasm_global_t* global = wasm_global_new(store, global_type, &val); in run()
55 own wasm_instance_t* instance = in run()
66 own wasm_extern_vec_ in run()
[all...]
H A Dserialize.c8 #define own macro
11 own wasm_trap_t* hello_callback(const wasm_val_t args[], wasm_val_t results[]) { in hello_callback()
44 own wasm_module_t* module = wasm_module_new(store, &binary); in main()
54 own wasm_byte_vec_t serialized; in main()
61 own wasm_module_t* deserialized = wasm_module_deserialize(store, &serialized); in main()
71 own wasm_functype_t* hello_type = wasm_functype_new_0_0(); in main()
72 own wasm_func_t* hello_func = in main()
80 own wasm_instance_t* instance = in main()
91 own wasm_extern_vec_t exports; in main()
H A Dcallback.c8 #define own macro
37 own wasm_trap_t* print_callback( in print_callback()
50 own wasm_trap_t* closure_callback( in closure_callback()
89 own wasm_module_t* module = wasm_module_new(store, &binary); in main()
99 own wasm_functype_t* print_type = wasm_functype_new_1_1(wasm_valtype_new_i32(), wasm_valtype_new_i32()); in main()
100 own wasm_func_t* print_func = wasm_func_new(store, print_type, print_callback); in main()
103 own wasm_functype_t* closure_type = wasm_functype_new_0_1(wasm_valtype_new_i32()); in main()
104 own wasm_func_t* closure_func = wasm_func_new_with_env(store, closure_type, closure_callback, &i, NULL); in main()
114 own wasm_instance_t* instance = in main()
126 own wasm_extern_vec_ in main()
[all...]
H A Dtable.c8 #define own macro
11 own wasm_trap_t* neg_callback( in neg_callback()
46 own wasm_ref_t* ref = wasm_table_get(table, i); in check_table()
68 own wasm_trap_t* trap = wasm_func_call(func, args, NULL); in check_trap()
103 own wasm_module_t* module = wasm_module_new(store, &binary); in main()
113 own wasm_instance_t* instance = in main()
122 own wasm_extern_vec_t exports; in main()
134 own wasm_functype_t* neg_type = wasm_functype_new_1_1(wasm_valtype_new_i32(), wasm_valtype_new_i32()); in main()
135 own wasm_func_t* h = wasm_func_new(store, neg_type, neg_callback); in main()
140 own wasm_table_ in main()
[all...]
H A Dhostref.c8 #define own macro
12 own wasm_trap_t* callback( in callback()
48 own wasm_ref_t* call_v_r(const wasm_func_t* func) { in call_v_r()
71 own wasm_ref_t* call_r_r(const wasm_func_t* func, wasm_ref_t* ref) { in call_r_r()
99 own wasm_ref_t* call_i_r(const wasm_func_t* func, int32_t i) { in call_i_r()
113 void check(own wasm_ref_t* actual, const wasm_ref_t* expected) { in check()
151 own wasm_module_t* module = wasm_module_new(store, &binary); in main()
161 own wasm_functype_t* callback_type = wasm_functype_new_1_1( in main()
163 own wasm_func_t* callback_func = in main()
171 own wasm_instance_ in main()
[all...]
H A Dhello.c8 #define own macro
11 own wasm_trap_t* hello_callback( in hello_callback()
46 own wasm_module_t* module = wasm_module_new(store, &binary); in main()
56 own wasm_functype_t* hello_type = wasm_functype_new_0_0(); in main()
57 own wasm_func_t* hello_func = in main()
65 own wasm_instance_t* instance = in main()
76 own wasm_extern_vec_t exports; in main()
H A Dstart.c8 #define own macro
47 own wasm_module_t* module = wasm_module_new(store, &binary); in main()
57 own wasm_trap_t* trap = NULL; in main()
58 own wasm_instance_t* instance = in main()
69 own wasm_name_t message; in main()
74 own wasm_frame_t* frame = wasm_trap_origin(trap); in main()
83 own wasm_frame_vec_t trace; in main()
H A Dmulti.c8 #define own macro
11 own wasm_trap_t* callback( in callback()
25 own wasm_trap_t* closure_callback( in closure_callback()
64 own wasm_module_t* module = wasm_module_new(store, &binary); in main()
78 own wasm_valtype_vec_t tuple1, tuple2; in main()
81 own wasm_functype_t* callback_type = wasm_functype_new(&tuple1, &tuple2); in main()
82 own wasm_func_t* callback_func = in main()
90 own wasm_instance_t* instance = in main()
101 own wasm_extern_vec_t exports; in main()
H A Dglobal.c8 #define own macro
74 own wasm_module_t* module = wasm_module_new(store, &binary); in main()
84 own wasm_globaltype_t* const_f32_type = wasm_globaltype_new( in main()
86 own wasm_globaltype_t* const_i64_type = wasm_globaltype_new( in main()
88 own wasm_globaltype_t* var_f32_type = wasm_globaltype_new( in main()
90 own wasm_globaltype_t* var_i64_type = wasm_globaltype_new( in main()
94 own wasm_global_t* const_f32_import = in main()
97 own wasm_global_t* const_i64_import = in main()
100 own wasm_global_t* var_f32_import = in main()
103 own wasm_global_ in main()
[all...]
H A Dmemory.c8 #define own macro
77 own wasm_trap_t* trap = wasm_func_call(func, args, results); in check_trap()
125 own wasm_module_t* module = wasm_module_new(store, &binary); in main()
135 own wasm_instance_t* instance = in main()
144 own wasm_extern_vec_t exports; in main()
155 own wasm_memory_t* copy = wasm_memory_copy(memory); in main()
206 own wasm_memorytype_t* memorytype = wasm_memorytype_new(&limits); in main()
207 own wasm_memory_t* memory2 = wasm_memory_new(store, memorytype); in main()
H A Dreflect.c8 #define own macro
111 own wasm_module_t* module = wasm_module_new(store, &binary); in main()
121 own wasm_instance_t* instance = wasm_instance_new(store, module, NULL, NULL); in main()
129 own wasm_exporttype_vec_t export_types; in main()
130 own wasm_extern_vec_t exports; in main()
145 own wasm_externtype_t* current = wasm_extern_type(exports.data[i]); in main()
H A Dfinalize.c8 #define own macro
41 own wasm_module_t* module = wasm_module_new(store, &binary); in run_in_store()
53 own wasm_instance_t* instance = in run_in_store()
H A Dhostref.cc13 ) -> wasm::own<wasm::Trap> {
48 wasm::Val args[1] = {wasm::Val::ref(ref ? ref->copy() : wasm::own<wasm::Ref>())}; in call_r_v()
56 auto call_v_r(const wasm::Func* func) -> wasm::own<wasm::Ref> {
67 auto call_r_r(const wasm::Func* func, const wasm::Ref* ref) -> wasm::own<wasm::Ref> {
69 wasm::Val args[1] = {wasm::Val::ref(ref ? ref->copy() : wasm::own<wasm::Ref>())};
81 wasm::Val args[2] = {wasm::Val::i32(i), wasm::Val::ref(ref ? ref->copy() : wasm::own<wasm::Ref>())}; in call_ir_v()
89 auto call_i_r(const wasm::Func* func, int32_t i) -> wasm::own<wasm::Ref> {
101 void check(wasm::own<wasm::Ref> actual, const wasm::Ref* expected) { in check()
/third_party/toybox/toys/posix/
H A Dchgrp.c76 char **s, *own; in chgrp_main() local
85 own = xstrdup(*toys.optargs); in chgrp_main()
86 if ((grp = strchr(own, ':')) || (grp = strchr(own, '.'))) { in chgrp_main()
90 if (*own) TT.owner = xgetuid(TT.owner_name = own); in chgrp_main()
100 if (CFG_TOYBOX_FREE && ischown) free(own); in chgrp_main()
/third_party/node/deps/v8/src/wasm/
H A Dc-api.cc129 own<FuncType> FunctionSigToFuncType(const i::wasm::FunctionSig* sig) { in FunctionSigToFuncType()
143 own<ExternType> GetImportExportType(const i::wasm::WasmModule* module, in GetImportExportType()
152 own<ValType> elem = ValType::make(V8ValueTypeToWasm(table.type)); in GetImportExportType()
165 own<ValType> content = ValType::make(V8ValueTypeToWasm(global.type)); in GetImportExportType()
228 auto Config::make() -> own<Config> {
229 return own<Config>(seal<Config>(new (std::nothrow) ConfigImpl()));
391 auto Engine::make(own<Config>&& config) -> own<Engine> {
393 if (!engine) return own<Engine>();
480 auto Store::make(Engine*) -> own<Stor
[all...]
/third_party/musl/src/thread/
H A Dpthread_mutex_trylock.c5 int old, own; in __pthread_mutex_trylock_owner() local
11 own = old & 0x3fffffff; in __pthread_mutex_trylock_owner()
13 if (own == tid) { in __pthread_mutex_trylock_owner()
23 if (own == tid) { in __pthread_mutex_trylock_owner()
36 if (own == 0x3fffffff) return ENOTRECOVERABLE; in __pthread_mutex_trylock_owner()
37 if (own || (old && !(type & 4))) return EBUSY; in __pthread_mutex_trylock_owner()
H A Dpthread_mutex_consistent.c7 int own = old & 0x3fffffff; in pthread_mutex_consistent() local
8 if (!(m->_m_type & 4) || !own || !(old & 0x40000000)) in pthread_mutex_consistent()
10 if (own != __pthread_self()->tid) in pthread_mutex_consistent()
/third_party/musl/porting/liteos_a/user/src/thread/
H A Dpthread_mutex_trylock.c5 int old, own; in __pthread_mutex_trylock_owner() local
11 own = old & 0x3fffffff; in __pthread_mutex_trylock_owner()
12 if (own == tid) { in __pthread_mutex_trylock_owner()
19 if (own == 0x3fffffff) return ENOTRECOVERABLE; in __pthread_mutex_trylock_owner()
20 if (own || (old && !(type & 4))) return EBUSY; in __pthread_mutex_trylock_owner()
/third_party/libwebsockets/lib/core/
H A Dlws_dll2.c212 lws_dll2_add_sorted_priv(lws_dll2_t *d, lws_dll2_owner_t *own, void *priv, in lws_dll2_add_sorted_priv() argument
217 lws_dll2_get_head(own)) { in lws_dll2_add_sorted_priv()
233 lws_dll2_add_tail(d, own); in lws_dll2_add_sorted_priv()
237 lws_dll2_add_sorted(lws_dll2_t *d, lws_dll2_owner_t *own, in lws_dll2_add_sorted() argument
241 lws_dll2_get_head(own)) { in lws_dll2_add_sorted()
257 lws_dll2_add_tail(d, own); in lws_dll2_add_sorted()
261 _lws_dll2_search_sz_pl(lws_dll2_owner_t *own, const char *name, size_t namelen, in _lws_dll2_search_sz_pl() argument
264 lws_start_foreach_dll(struct lws_dll2 *, p, lws_dll2_get_head(own)) { in _lws_dll2_search_sz_pl()
/third_party/libwebsockets/lib/core-net/
H A Dsorted-usec-list.c51 __lws_sul_insert(lws_dll2_owner_t *own, lws_sorted_usec_list_t *sul) in __lws_sul_insert() argument
62 lws_dll2_add_sorted(&sul->list, own, sul_compare); in __lws_sul_insert()
91 * own points to the first in an array of length own_len
100 __lws_sul_service_ripe(lws_dll2_owner_t *own, int own_len, lws_usec_t usnow) in __lws_sul_service_ripe() argument
103 lws_container_of(own, struct lws_context_per_thread, in __lws_sul_service_ripe()
130 if (!own[n].count) in __lws_sul_service_ripe()
133 lws_dll2_get_head(&own[n]); in __lws_sul_service_ripe()
/third_party/libwebsockets/include/libwebsockets/
H A Dlws-dll2.h247 lws_dll2_add_sorted(lws_dll2_t *d, lws_dll2_owner_t *own,
251 lws_dll2_add_sorted_priv(lws_dll2_t *d, lws_dll2_owner_t *own, void *priv,
256 _lws_dll2_search_sz_pl(lws_dll2_owner_t *own, const char *name, size_t namelen,
265 #define lws_dll2_search_sz_pl(own, name, namelen, type, membd2list, membptr) \
266 ((type *)_lws_dll2_search_sz_pl(own, name, namelen, \
/third_party/musl/porting/linux/user/src/thread/
H A Dpthread_mutex_timedlock.c91 int own = r & 0x3fffffff; in __pthread_mutex_timedlock_inner() local
92 if (!own && (!r || (type&4))) in __pthread_mutex_timedlock_inner()
95 && own == __pthread_self()->tid) in __pthread_mutex_timedlock_inner()

Completed in 11 milliseconds

1234