Lines Matching refs:own

129 own<FuncType> FunctionSigToFuncType(const i::wasm::FunctionSig* sig) {
143 own<ExternType> GetImportExportType(const i::wasm::WasmModule* module,
152 own<ValType> elem = ValType::make(V8ValueTypeToWasm(table.type));
165 own<ValType> content = ValType::make(V8ValueTypeToWasm(global.type));
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<Store> {
482 if (!store) return own<Store>();
494 if (!isolate) return own<Store>();
507 if (context.IsEmpty()) return own<Store>();
551 own<ValType> ValType::make(ValKind k) {
576 return own<ValType>(seal<ValType>(valtype));
579 auto ValType::copy() const -> own<ValType> { return make(kind()); }
601 auto ExternType::copy() const -> own<ExternType> {
636 -> own<FuncType> {
638 ? own<FuncType>(seal<FuncType>(new (std::nothrow)
640 : own<FuncType>();
643 auto FuncType::copy() const -> own<FuncType> {
670 own<ValType> content;
673 GlobalTypeImpl(own<ValType>& content, Mutability mutability)
688 auto GlobalType::make(own<ValType>&& content, Mutability mutability)
689 -> own<GlobalType> {
690 return content ? own<GlobalType>(seal<GlobalType>(
692 : own<GlobalType>();
695 auto GlobalType::copy() const -> own<GlobalType> {
722 own<ValType> element;
725 TableTypeImpl(own<ValType>& element, Limits limits)
740 auto TableType::make(own<ValType>&& element, Limits limits) -> own<TableType> {
741 return element ? own<TableType>(seal<TableType>(
743 : own<TableType>();
746 auto TableType::copy() const -> own<TableType> {
786 auto MemoryType::make(Limits limits) -> own<MemoryType> {
787 return own<MemoryType>(
791 auto MemoryType::copy() const -> own<MemoryType> {
814 own<ExternType> type;
816 ImportTypeImpl(Name& module, Name& name, own<ExternType>& type)
831 auto ImportType::make(Name&& module, Name&& name, own<ExternType>&& type)
832 -> own<ImportType> {
834 ? own<ImportType>(seal<ImportType>(
836 : own<ImportType>();
839 auto ImportType::copy() const -> own<ImportType> {
855 own<ExternType> type;
857 ExportTypeImpl(Name& name, own<ExternType>& type)
870 auto ExportType::make(Name&& name, own<ExternType>&& type) -> own<ExportType> {
871 return name && type ? own<ExportType>(seal<ExportType>(
873 : own<ExportType>();
876 auto ExportType::copy() const -> own<ExportType> {
902 static own<Ref> make(StoreImpl* store, i::Handle<JSType> obj) {
912 own<Ref> copy() const { return make(store(), v8_object()); }
945 auto Ref::copy() const -> own<Ref> { return impl(this)->copy(); }
966 FrameImpl(own<Instance>&& instance, uint32_t func_index, size_t func_offset,
973 own<Instance> instance;
990 own<Frame> Frame::copy() const {
992 return own<Frame>(seal<Frame>(
1014 auto Trap::copy() const -> own<Trap> { return impl(this)->copy(); }
1016 auto Trap::make(Store* store_abs, const Message& message) -> own<Trap> {
1045 own<Instance> GetInstance(StoreImpl* store,
1048 own<Frame> CreateFrameFromInternal(i::Handle<i::FixedArray> frames, int index,
1057 return own<Frame>(seal<Frame>(new (std::nothrow) FrameImpl(
1063 own<Frame> Trap::origin() const {
1070 return own<Frame>();
1100 auto Foreign::copy() const -> own<Foreign> { return impl(this)->copy(); }
1102 auto Foreign::make(Store* store_abs) -> own<Foreign> {
1121 auto Module::copy() const -> own<Module> { return impl(this)->copy(); }
1131 auto Module::make(Store* store_abs, const vec<byte_t>& binary) -> own<Module> {
1163 own<ExternType> type = GetImportExportType(module, imp.kind, imp.index);
1181 own<ExternType> type = GetImportExportType(module, exp.kind, exp.index);
1216 -> own<Module> {
1252 auto Module::share() const -> own<Shared<Module>> {
1257 auto Module::obtain(Store* store, const Shared<Module>* shared) -> own<Module> {
1270 auto Extern::copy() const -> own<Extern> { return impl(this)->copy(); }
1283 auto Extern::type() const -> own<ExternType> {
1341 auto Func::copy() const -> own<Func> { return impl(this)->copy(); }
1345 own<FuncType> type;
1398 static own<FuncType> Deserialize(i::PodArray<i::wasm::ValueType> sig) {
1437 auto make_func(Store* store_abs, FuncData* data) -> own<Func> {
1457 -> own<Func> {
1464 void* env, void (*finalizer)(void*)) -> own<Func> {
1472 auto Func::type() const -> own<FuncType> {
1512 own<Ref> V8RefValueToWasm(StoreImpl* store, i::Handle<i::Object> value) {
1614 own<Trap> CallWasmCapiFunction(i::WasmCapiFunctionData data, const Val args[],
1645 auto Func::call(const Val args[], Val results[]) const -> own<Trap> {
1757 own<Trap> trap;
1811 auto Global::copy() const -> own<Global> { return impl(this)->copy(); }
1814 -> own<Global> {
1838 auto Global::type() const -> own<GlobalType> {
1912 auto Table::copy() const -> own<Table> { return impl(this)->copy(); }
1915 -> own<Table> {
1965 auto Table::type() const -> own<TableType> {
1984 auto Table::get(size_t index) const -> own<Ref> {
1986 if (index >= static_cast<size_t>(table->current_length())) return own<Ref>();
2045 auto Memory::copy() const -> own<Memory> { return impl(this)->copy(); }
2047 auto Memory::make(Store* store_abs, const MemoryType* type) -> own<Memory> {
2068 return own<Memory>();
2073 auto Memory::type() const -> own<MemoryType> {
2114 auto Instance::copy() const -> own<Instance> { return impl(this)->copy(); }
2116 own<Instance> Instance::make(Store* store_abs, const Module* module_abs,
2117 const Extern* const imports[], own<Trap>* trap) {
2160 return own<Instance>();
2167 return own<Instance>();
2173 return own<Instance>();
2180 own<Instance> GetInstance(StoreImpl* store,
2279 extern "C++" inline auto get_##name(wasm::own<Name>& x)->wasm_##name##_t* { \
2282 extern "C++" inline auto get_##name(const wasm::own<Name>& x) \
2286 extern "C++" inline auto release_##name(wasm::own<Name>&& x) \
2290 extern "C++" inline auto adopt_##name(wasm_##name##_t* x)->wasm::own<Name> { \
2393 // Vectors that own their elements
3024 -> wasm::own<wasm::Trap> {
3036 wasm::Val results[]) -> wasm::own<wasm::Trap> {
3239 wasm::own<wasm::Trap> error;