Lines Matching refs:instance

41     Isolate* isolate, Handle<WasmInstanceObject> instance,
43 auto debug_info = instance->module_object().native_module()->GetDebugInfo();
45 instance->module_object().native_module()->wire_bytes());
313 static uint32_t Count(Isolate* isolate, Handle<WasmInstanceObject> instance) {
314 return static_cast<uint32_t>(instance->module()->functions.size());
318 Handle<WasmInstanceObject> instance,
321 isolate, instance, index)
327 Handle<WasmInstanceObject> instance,
329 return GetWasmFunctionDebugName(isolate, instance, index);
337 static uint32_t Count(Isolate* isolate, Handle<WasmInstanceObject> instance) {
338 return static_cast<uint32_t>(instance->module()->globals.size());
342 Handle<WasmInstanceObject> instance,
344 Handle<WasmModuleObject> module(instance->module_object(), isolate);
347 WasmInstanceObject::GetGlobalValue(instance,
348 instance->module()->globals[index]),
353 Handle<WasmInstanceObject> instance,
358 isolate, instance, wasm::ImportExportKindCode::kExternalGlobal,
368 static uint32_t Count(Isolate* isolate, Handle<WasmInstanceObject> instance) {
369 return instance->has_memory_object() ? 1 : 0;
373 Handle<WasmInstanceObject> instance,
375 return handle(instance->memory_object(), isolate);
379 Handle<WasmInstanceObject> instance,
384 isolate, instance, wasm::ImportExportKindCode::kExternalMemory,
394 static uint32_t Count(Isolate* isolate, Handle<WasmInstanceObject> instance) {
395 return instance->tables().length();
399 Handle<WasmInstanceObject> instance,
401 return handle(instance->tables().get(index), isolate);
405 Handle<WasmInstanceObject> instance,
410 isolate, instance, wasm::ImportExportKindCode::kExternalTable,
502 // on the |instance|, stored under the |wasm_debug_proxy_cache_symbol|.
503 // This is used to cache the various instance debug proxies (functions,
506 Isolate* isolate, Handle<WasmInstanceObject> instance) {
509 if (!Object::GetProperty(isolate, instance, symbol).ToHandle(&cache) ||
512 Object::SetProperty(isolate, instance, symbol, cache).Check();
517 // Creates an instance of the |Proxy| on-demand and caches that on the
518 // |instance|.
521 Handle<WasmInstanceObject> instance) {
523 Handle<FixedArray> proxies = GetOrCreateInstanceProxyCache(isolate, instance);
527 Handle<JSObject> proxy = Proxy::Create(isolate, instance);
550 // readonly instance : WebAssembly.Instance;
634 Handle<WasmInstanceObject> instance(frame->wasm_instance(), isolate);
635 JSObject::AddProperty(isolate, object, "instance", instance, FROZEN);
636 Handle<WasmModuleObject> module_object(instance->module_object(), isolate);
642 auto memories = GetOrCreateInstanceProxy<MemoriesProxy>(isolate, instance);
644 auto tables = GetOrCreateInstanceProxy<TablesProxy>(isolate, instance);
646 auto globals = GetOrCreateInstanceProxy<GlobalsProxy>(isolate, instance);
649 GetOrCreateInstanceProxy<FunctionsProxy>(isolate, instance);
696 Handle<WasmInstanceObject> instance(frame_->wasm_instance(), isolate);
699 JSObject::AddProperty(isolate, object, "instance", instance, FROZEN);
700 Handle<JSObject> module_object(instance->module_object(), isolate);
702 if (FunctionsProxy::Count(isolate, instance) != 0) {
705 GetOrCreateInstanceProxy<FunctionsProxy>(isolate, instance),
708 if (GlobalsProxy::Count(isolate, instance) != 0) {
711 GetOrCreateInstanceProxy<GlobalsProxy>(isolate, instance),
714 if (MemoriesProxy::Count(isolate, instance) != 0) {
717 GetOrCreateInstanceProxy<MemoriesProxy>(isolate, instance),
720 if (TablesProxy::Count(isolate, instance) != 0) {
723 GetOrCreateInstanceProxy<TablesProxy>(isolate, instance), FROZEN);
1017 Handle<WasmInstanceObject> instance,
1019 Handle<WasmModuleObject> module_object(instance->module_object(), isolate);
1028 isolate, instance, wasm::ImportExportKindCode::kExternalFunction,
1036 Handle<WasmInstanceObject> instance) {
1040 handle(instance->module_object(), isolate));
1042 if (FunctionsProxy::Count(isolate, instance) != 0) {
1046 GetOrCreateInstanceProxy<FunctionsProxy>(isolate, instance));
1049 if (GlobalsProxy::Count(isolate, instance) != 0) {
1053 GetOrCreateInstanceProxy<GlobalsProxy>(isolate, instance));
1056 if (MemoriesProxy::Count(isolate, instance) != 0) {
1060 GetOrCreateInstanceProxy<MemoriesProxy>(isolate, instance));
1063 if (TablesProxy::Count(isolate, instance) != 0) {
1067 GetOrCreateInstanceProxy<TablesProxy>(isolate, instance));