Lines Matching refs:i_isolate

58     i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate_);
59 auto enabled_features = i::wasm::WasmFeatures::FromIsolate(i_isolate);
61 i_isolate, enabled_features, handle(i_isolate->context(), i_isolate),
165 DCHECK(i_isolate->has_scheduled_exception()); \
168 DCHECK(!i_isolate->has_scheduled_exception()); \
510 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
513 ScheduledErrorThrower thrower(i_isolate, kAPIMethodName);
515 if (!i::wasm::IsWasmCodegenAllowed(i_isolate, i_isolate->native_context())) {
526 new AsyncCompilationResolver(i_isolate, Utils::OpenHandle(*promise)));
535 auto enabled_features = i::wasm::WasmFeatures::FromIsolate(i_isolate);
536 i::wasm::GetWasmEngine()->AsyncCompile(i_isolate, enabled_features,
544 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
547 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.compile()");
576 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
579 ScheduledErrorThrower thrower(i_isolate, kAPIMethodName);
590 i_isolate, Utils::OpenHandle(*promise));
592 if (!i::wasm::IsWasmCodegenAllowed(i_isolate, i_isolate->native_context())) {
602 i_isolate, 0,
606 DCHECK_NOT_NULL(i_isolate->wasm_streaming_callback());
609 v8::Function::New(context, i_isolate->wasm_streaming_callback(),
635 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
637 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.validate()");
650 auto enabled_features = i::wasm::WasmFeatures::FromIsolate(i_isolate);
659 i_isolate, enabled_features, bytes_copy);
662 validated = i::wasm::GetWasmEngine()->SyncValidate(i_isolate,
691 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
692 if (i_isolate->wasm_module_callback()(args)) return;
695 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Module()");
701 if (!i::wasm::IsWasmCodegenAllowed(i_isolate, i_isolate->native_context())) {
712 auto enabled_features = i::wasm::WasmFeatures::FromIsolate(i_isolate);
721 i_isolate, enabled_features, &thrower, bytes_copy);
725 i_isolate, enabled_features, &thrower, bytes);
738 if (!TransferPrototype(i_isolate, module_obj,
751 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
752 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Module.imports()");
756 auto imports = i::wasm::GetImports(i_isolate, maybe_module.ToHandleChecked());
764 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
765 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Module.exports()");
769 auto exports = i::wasm::GetExports(i_isolate, maybe_module.ToHandleChecked());
778 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
779 ScheduledErrorThrower thrower(i_isolate,
791 i::Object::ToString(i_isolate, Utils::OpenHandle(*args[1]));
795 i::wasm::GetCustomSections(i_isolate, maybe_module.ToHandleChecked(),
804 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
805 i_isolate->CountUsage(
809 if (i_isolate->wasm_instance_callback()(args)) return;
813 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Instance()");
830 i_isolate, &thrower, module_obj, maybe_imports,
836 DCHECK(i_isolate->has_scheduled_exception());
847 if (!TransferPrototype(i_isolate, instance_obj,
861 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
862 i_isolate->CountUsage(
868 ScheduledErrorThrower thrower(i_isolate, kAPIMethodName);
879 new InstantiateModuleResultResolver(i_isolate,
882 if (!i::wasm::IsWasmCodegenAllowed(i_isolate, i_isolate->native_context())) {
904 i_isolate, Utils::OpenHandle(*promise), maybe_imports));
910 i_isolate, 0,
914 DCHECK_NOT_NULL(i_isolate->wasm_streaming_callback());
917 v8::Function::New(context, i_isolate->wasm_streaming_callback(),
946 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
947 i_isolate->CountUsage(
950 ScheduledErrorThrower thrower(i_isolate, kAPIMethodName);
961 new InstantiateModuleResultResolver(i_isolate,
987 i::wasm::GetWasmEngine()->AsyncInstantiate(i_isolate, std::move(resolver),
1005 i_isolate, Utils::OpenHandle(*promise), maybe_imports));
1009 if (!i::wasm::IsWasmCodegenAllowed(i_isolate, i_isolate->native_context())) {
1016 auto enabled_features = i::wasm::WasmFeatures::FromIsolate(i_isolate);
1017 i::wasm::GetWasmEngine()->AsyncCompile(i_isolate, enabled_features,
1132 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
1134 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Table()");
1154 auto enabled_features = i::wasm::WasmFeatures::FromIsolate(i_isolate);
1191 i::WasmTableObject::New(i_isolate, i::Handle<i::WasmInstanceObject>(),
1194 DefaultReferenceValue(i_isolate, type));
1203 if (!TransferPrototype(i_isolate, table_obj,
1210 if (!i::WasmTableObject::IsValidElement(i_isolate, table_obj, element)) {
1218 element = i::WasmInternalFunction::FromExternal(element, i_isolate)
1222 i::WasmTableObject::Set(i_isolate, table_obj, index, element);
1231 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
1233 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Memory()");
1259 auto enabled_features = i::wasm::WasmFeatures::FromIsolate(i_isolate);
1270 DCHECK(i_isolate->has_scheduled_exception());
1283 if (!i::WasmMemoryObject::New(i_isolate, static_cast<int>(initial),
1297 if (!TransferPrototype(i_isolate, memory_obj,
1305 i_isolate);
1401 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
1403 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Global()");
1414 auto enabled_features = i::wasm::WasmFeatures::FromIsolate(i_isolate);
1425 DCHECK(i_isolate->has_scheduled_exception());
1447 i::WasmGlobalObject::New(i_isolate, i::Handle<i::WasmInstanceObject>(),
1465 if (!TransferPrototype(i_isolate, global_obj,
1504 global_obj->SetExternRef(i_isolate->factory()->null_value());
1514 global_obj->SetFuncRef(i_isolate,
1515 i_isolate->factory()->null_value());
1519 if (!global_obj->SetFuncRef(i_isolate, Utils::OpenHandle(*value))) {
1571 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
1574 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Tag()");
1586 auto enabled_features = i::wasm::WasmFeatures::FromIsolate(i_isolate);
1599 uint32_t parameters_len = GetIterableLength(i_isolate, context, parameters);
1625 auto tag = i::WasmExceptionTag::New(i_isolate, 0);
1627 i::WasmTagObject::New(i_isolate, &sig, tag);
1634 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
1637 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Suspender()");
1643 i::Handle<i::JSObject> suspender = i::WasmSuspenderObject::New(i_isolate);
1652 if (!TransferPrototype(i_isolate, suspender,
1746 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
1749 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Exception()");
1766 i::WasmExceptionTag::cast(tag_object->tag()), i_isolate);
1769 i::WasmExceptionPackage::New(i_isolate, tag, size);
1772 i::WasmExceptionPackage::GetExceptionValues(i_isolate,
1775 tag_object->serialized_signature(), i_isolate);
1785 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
1787 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Function()");
1798 auto enabled_features = i::wasm::WasmFeatures::FromIsolate(i_isolate);
1811 uint32_t parameters_len = GetIterableLength(i_isolate, context, parameters);
1832 uint32_t results_len = GetIterableLength(i_isolate, context, results);
1843 i::Zone zone(i_isolate->allocator(), ZONE_NAME);
1901 i_isolate, sig, callable, i::Handle<i::HeapObject>());
1909 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
1910 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Function.type()");
1913 i::Zone zone(i_isolate->allocator(), ZONE_NAME);
1918 auto sfi = handle(wasm_exported_function->shared(), i_isolate);
1920 handle(sfi->wasm_exported_function_data(), i_isolate);
1940 auto type = i::wasm::GetTypeForFunction(i_isolate, sig);
1966 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
1968 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Instance.exports()");
1970 i::Handle<i::JSObject> exports_object(receiver->exports_object(), i_isolate);
1977 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
1979 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Table.length()");
1988 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
1990 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Table.grow()");
2003 if (!i::WasmTableObject::IsValidElement(i_isolate, receiver, init_value)) {
2008 init_value = DefaultReferenceValue(i_isolate, receiver->type());
2015 init_value = i::WasmInternalFunction::FromExternal(init_value, i_isolate)
2020 i::WasmTableObject::Grow(i_isolate, receiver, grow_by, init_value);
2033 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
2035 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Table.get()");
2043 if (!i::WasmTableObject::IsInBounds(i_isolate, receiver, index)) {
2049 i::WasmTableObject::Get(i_isolate, receiver, index);
2053 i_isolate);
2063 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
2065 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Table.set()");
2074 if (!i::WasmTableObject::IsInBounds(i_isolate, table_object, index)) {
2082 : DefaultReferenceValue(i_isolate, table_object->type());
2084 if (!i::WasmTableObject::IsValidElement(i_isolate, table_object, element)) {
2091 bool is_external = i::WasmInternalFunction::FromExternal(element, i_isolate)
2094 i::WasmTableObject::Set(i_isolate, table_object, index,
2102 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
2103 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Table.type()");
2112 auto type = i::wasm::GetTypeForTable(i_isolate, table->type(),
2120 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
2122 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Memory.grow()");
2131 i::Handle<i::JSArrayBuffer> old_buffer(receiver->array_buffer(), i_isolate);
2141 int32_t ret = i::WasmMemoryObject::Grow(i_isolate, receiver, delta_pages);
2154 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
2156 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Memory.buffer");
2159 i::Handle<i::Object> buffer_obj(receiver->array_buffer(), i_isolate);
2162 i_isolate);
2182 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
2183 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Memory.type()");
2186 i::Handle<i::JSArrayBuffer> buffer(memory->array_buffer(), i_isolate);
2197 auto type = i::wasm::GetTypeForMemory(i_isolate, min_size, max_size, shared);
2205 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
2206 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Tag.type()");
2218 auto type = i::wasm::GetTypeForFunction(i_isolate, &sig, kForException);
2226 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
2227 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Exception.getArg()");
2242 i::WasmExceptionPackage::GetExceptionValues(i_isolate, exception);
2245 i::WasmExceptionPackage::GetExceptionTag(i_isolate, exception);
2344 result = Utils::ToLocal(i::Handle<i::Object>(obj, i_isolate));
2368 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
2369 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Exception.is()");
2374 auto tag = i::WasmExceptionPackage::GetExceptionTag(i_isolate, exception);
2392 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
2394 ScheduledErrorThrower thrower(i_isolate, name);
2428 i_isolate);
2469 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
2472 ScheduledErrorThrower thrower(i_isolate, "set WebAssembly.Global.value");
2519 if (!receiver->SetFuncRef(i_isolate, Utils::OpenHandle(*args[0]))) {
2552 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
2553 ScheduledErrorThrower thrower(i_isolate, "WebAssembly.Global.type()");
2556 auto type = i::wasm::GetTypeForGlobal(i_isolate, global->is_mutable(),
2567 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
2569 i_isolate, "WebAssembly.Suspender.returnPromiseOnSuspend()");
2588 i::WasmInstanceObject::cast(data.internal().ref()), i_isolate);
2590 BUILTIN_CODE(i_isolate, WasmReturnPromiseOnSuspend);
2594 i_isolate, instance, index,
2607 i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
2610 i_isolate, "WebAssembly.Suspender.suspendOnReturnedPromise()");
2615 i::Zone zone(i_isolate->allocator(), ZONE_NAME);
2633 i::Handle<i::WasmJSFunction>::cast(arg0)->GetCallable(), i_isolate);
2636 i::WasmJSFunction::New(i_isolate, sig, callable, suspender);
2644 i::Isolate* i_isolate, FunctionCallback func, bool has_prototype,
2646 Isolate* isolate = reinterpret_cast<Isolate*>(i_isolate);
2656 i::Isolate* i_isolate) {
2657 Isolate* isolate = reinterpret_cast<Isolate*>(i_isolate);