Lines Matching defs:isolate
601 void FinalizeJSToWasmWrappers(Isolate* isolate, const WasmModule* module,
797 void UpdateFeatureUseCounts(Isolate* isolate, const WasmFeatures& detected) {
806 if (detected.contains(feature.first)) isolate->CountUsage(feature.second);
1143 bool CompileLazy(Isolate* isolate, Handle<WasmInstanceObject> instance,
1145 Handle<WasmModuleObject> module_object(instance->module_object(), isolate);
1149 Counters* counters = isolate->counters();
1195 ErrorThrower thrower(isolate, nullptr);
1210 Handle<FixedArray> vector = isolate->factory()->NewFixedArrayWithZeroes(
1225 if (WasmCode::ShouldBeLogged(isolate)) {
1231 code->LogCode(isolate, url.get(), module_object->script().id());
1391 void TriggerTierUp(Isolate* isolate, NativeModule* native_module,
1441 Isolate* isolate;
1449 isolate = wrapper_unit->isolate();
1451 wasm::GetWasmEngine()->StartWrapperCompilation(isolate);
1457 DCHECK_EQ(isolate, wrapper_unit->isolate());
1618 int AddExportWrapperUnits(Isolate* isolate, NativeModule* native_module,
1627 isolate, function.sig, native_module->module(), function.imported,
1687 Isolate* isolate, NativeModule* native_module) {
1695 AddExportWrapperUnits(isolate, native_module, builder.get());
1805 void CompileNativeModule(Isolate* isolate,
1819 ValidateSequentially(wasm_module, native_module.get(), isolate->counters(),
1820 isolate->allocator(), thrower, lazy_module,
1832 isolate->async_counters(), isolate->metrics_recorder(), context_id,
1838 InitializeCompilation(isolate, native_module.get());
1846 ValidateSequentially(wasm_module, native_module.get(), isolate->counters(),
1847 isolate->allocator(), thrower, lazy_module);
1852 compilation_state->FinalizeJSToWasmWrappers(isolate, native_module->module(),
1858 compilation_state->PublishDetectedFeatures(isolate);
1862 ValidateSequentially(wasm_module, native_module.get(), isolate->counters(),
1863 isolate->allocator(), thrower, lazy_module);
1903 Isolate* isolate, const WasmFeatures& enabled, ErrorThrower* thrower,
1916 wasm_module->origin, wire_bytes_copy.as_vector(), isolate);
1919 CompileJsToWasmWrappers(isolate, wasm_module, export_wrappers_out);
1924 isolate->counters(), wasm_module->origin, wasm_compile, module_time));
1928 isolate->CountUsage(v8::Isolate::UseCounterFeature::kWasmSharedMemory);
1933 DynamicTiering dynamic_tiering = isolate->IsWasmDynamicTieringEnabled()
1940 engine->NewNativeModule(isolate, enabled, module, code_size_estimate);
1946 CompileNativeModule(isolate, context_id, thrower, wasm_module, native_module,
1949 &native_module, isolate);
1953 CompileJsToWasmWrappers(isolate, wasm_module, export_wrappers_out);
1958 engine->LogOutstandingCodesForIsolate(isolate);
2002 Isolate* isolate, const WasmFeatures& enabled,
2006 : isolate_(isolate),
2022 v8::Isolate* v8_isolate = reinterpret_cast<v8::Isolate*>(isolate);
2026 isolate->global_handles()->Create(context->native_context());
2027 incumbent_context_ = isolate->global_handles()->Create(*incumbent_context);
2029 context_id_ = isolate->GetOrRegisterRecorderContextId(native_context_);
2109 // Note: This destructor always runs on the foreground thread of the isolate.
2173 // context is set on the isolate.
2619 InitializeCompilation(job->isolate(), job->native_module_.get());
2760 decoder_.StartDecoding(job_->isolate()->counters(),
2761 job_->isolate()->metrics_recorder(),
2860 InitializeCompilation(job_->isolate(), job_->native_module_.get());
3013 job_->isolate()->counters()->wasm_deserialization_time(),
3014 job_->isolate());
3016 // a HandleScope, and that a context is set on the isolate.
3464 Isolate* isolate, const WasmModule* module,
3466 *export_wrappers_out = isolate->factory()->NewFixedArray(
3475 CodePageCollectionMemoryModificationScope modification_scope(isolate->heap());
3477 DCHECK_EQ(isolate, unit->isolate());
3482 RecordStats(*code, isolate->counters());
3682 void CompilationStateImpl::PublishDetectedFeatures(Isolate* isolate) {
3683 // Notifying the isolate of the feature counts must take place under
3687 UpdateFeatureUseCounts(isolate, detected_features_);
3886 void CompileJsToWasmWrappers(Isolate* isolate, const WasmModule* module,
3889 *export_wrappers_out = isolate->factory()->NewFixedArray(
3894 WasmFeatures enabled_features = WasmFeatures::FromIsolate(isolate);
3903 isolate, function.sig, module, function.imported, enabled_features,
3932 CodePageCollectionMemoryModificationScope modification_scope(isolate->heap());
3936 DCHECK_EQ(isolate, unit->isolate());
3940 RecordStats(*code, isolate->counters());