Home
last modified time | relevance | path

Searched refs:native_module (Results 1 - 25 of 36) sorted by relevance

12

/third_party/node/deps/v8/src/wasm/
H A Dwasm-engine.cc242 std::shared_ptr<NativeModule> native_module, bool error) { in Update()
243 DCHECK_NOT_NULL(native_module); in Update()
244 if (native_module->module()->origin != kWasmOrigin) return native_module; in Update()
245 base::Vector<const uint8_t> wire_bytes = native_module->wire_bytes(); in Update()
247 size_t prefix_hash = PrefixHash(native_module->wire_bytes()); in Update()
267 key, base::Optional<std::weak_ptr<NativeModule>>(native_module)); in Update()
272 return native_module; in Update()
275 void NativeModuleCache::Erase(NativeModule* native_module) { in Erase() argument
276 if (native_module in Erase()
241 Update( std::shared_ptr<NativeModule> native_module, bool error) Update() argument
515 std::shared_ptr<NativeModule> native_module = CompileToNativeModule( SyncCompileTranslatedAsmJs() local
527 std::shared_ptr<NativeModule> native_module = FinalizeTranslatedAsmJs() local
555 std::shared_ptr<NativeModule> native_module = CompileToNativeModule( SyncCompile() local
701 CompileFunction(Isolate* isolate, NativeModule* native_module, uint32_t function_index, ExecutionTier tier) CompileFunction() argument
758 auto& native_module = entry.first; TierUpAllModulesPerIsolate() local
774 CreateWasmScript(Isolate* isolate, std::shared_ptr<NativeModule> native_module, base::Vector<const char> source_url) CreateWasmScript() argument
863 NativeModule* native_module = shared_native_module.get(); ImportNativeModule() local
1092 NativeModule* native_module = code_vec[0]->native_module(); LogCode() local
1166 std::shared_ptr<NativeModule> native_module = NewNativeModule() local
1201 std::shared_ptr<NativeModule> native_module = MaybeGetNativeModule() local
1223 UpdateNativeModuleCache( bool error, std::shared_ptr<NativeModule>* native_module, Isolate* isolate) UpdateNativeModuleCache() argument
1267 FreeNativeModule(NativeModule* native_module) FreeNativeModule() argument
1321 SampleTopTierCodeSizeTask(Isolate* isolate, std::weak_ptr<NativeModule> native_module) SampleTopTierCodeSizeTask() argument
1340 SampleTopTierCodeSizeInAllIsolates( const std::shared_ptr<NativeModule>& native_module) SampleTopTierCodeSizeInAllIsolates() argument
1465 NativeModule* native_module = dead_code_entry.first; FreeDeadCodeLocked() local
1479 GetOrCreateScript( Isolate* isolate, const std::shared_ptr<NativeModule>& native_module, base::Vector<const char> source_url) GetOrCreateScript() argument
[all...]
H A Dmodule-compiler.cc86 explicit BackgroundCompileScope(std::weak_ptr<NativeModule> native_module) in BackgroundCompileScope() argument
87 : native_module_(native_module.lock()) {} in BackgroundCompileScope()
89 NativeModule* native_module() const { in native_module() function in v8::internal::wasm::__anon15175::BackgroundCompileScope
531 CompilationStateImpl(const std::shared_ptr<NativeModule>& native_module,
883 const std::shared_ptr<NativeModule>& native_module, in New()
886 new CompilationStateImpl(std::move(native_module), in New()
947 NativeModule* native_module, const WasmFeatures& enabled_features, in GetRequestedExecutionTiers()
949 const WasmModule* module = native_module->module(); in GetRequestedExecutionTiers()
955 Impl(native_module->compilation_state())->dynamic_tiering() == in GetRequestedExecutionTiers()
994 explicit CompilationUnitBuilder(NativeModule* native_module) in CompilationUnitBuilder() argument
882 New( const std::shared_ptr<NativeModule>& native_module, std::shared_ptr<Counters> async_counters, DynamicTiering dynamic_tiering) New() argument
946 GetRequestedExecutionTiers( NativeModule* native_module, const WasmFeatures& enabled_features, uint32_t func_index) GetRequestedExecutionTiers() argument
1106 ValidateSequentially( const WasmModule* module, NativeModule* native_module, Counters* counters, AccountingAllocator* allocator, ErrorThrower* thrower, bool lazy_module, OnlyLazyFunctions only_lazy_functions = kAllFunctions) ValidateSequentially() argument
1146 NativeModule* native_module = module_object->native_module(); CompileLazy() local
1391 TriggerTierUp(Isolate* isolate, NativeModule* native_module, int func_index, Handle<WasmInstanceObject> instance) TriggerTierUp() argument
1435 ExecuteJSToWasmWrapperCompilationUnits( std::weak_ptr<NativeModule> native_module, JobDelegate* delegate) ExecuteJSToWasmWrapperCompilationUnits() argument
1494 ExecuteCompilationUnits( std::weak_ptr<NativeModule> native_module, Counters* counters, JobDelegate* delegate, CompileBaselineOnly baseline_only) ExecuteCompilationUnits() argument
1618 AddExportWrapperUnits(Isolate* isolate, NativeModule* native_module, CompilationUnitBuilder* builder) AddExportWrapperUnits() argument
1638 AddImportWrapperUnits(NativeModule* native_module, CompilationUnitBuilder* builder) AddImportWrapperUnits() argument
1664 InitializeLazyCompilation(NativeModule* native_module) InitializeLazyCompilation() argument
1686 InitializeCompilation( Isolate* isolate, NativeModule* native_module) InitializeCompilation() argument
1719 CompilationTimeCallback( std::shared_ptr<Counters> async_counters, std::shared_ptr<metrics::Recorder> metrics_recorder, v8::metrics::Recorder::ContextId context_id, std::weak_ptr<NativeModule> native_module, CompileMode compile_mode) CompilationTimeCallback() argument
1738 std::shared_ptr<NativeModule> native_module = native_module_.lock(); global() variable
1805 CompileNativeModule(Isolate* isolate, v8::metrics::Recorder::ContextId context_id, ErrorThrower* thrower, const WasmModule* wasm_module, std::shared_ptr<NativeModule> native_module, Handle<FixedArray>* export_wrappers_out) CompileNativeModule() argument
1870 BackgroundCompileJob(std::weak_ptr<NativeModule> native_module, std::shared_ptr<Counters> async_counters) BackgroundCompileJob() argument
1915 std::shared_ptr<NativeModule> native_module = engine->MaybeGetNativeModule( CompileToNativeModule() local
1963 RecompileNativeModule(NativeModule* native_module, TieringState tiering_state) RecompileNativeModule() argument
2311 std::shared_ptr<NativeModule> native_module = job_->native_module_; global() variable
2334 std::shared_ptr<NativeModule> native_module = job_->native_module_; global() variable
2653 SampleTopTierCodeSizeCallback( std::weak_ptr<NativeModule> native_module) SampleTopTierCodeSizeCallback() argument
2660 GetWasmEngine()->SampleTopTierCodeSizeInAllIsolates(native_module); global() variable
3033 CompilationStateImpl( const std::shared_ptr<NativeModule>& native_module, std::shared_ptr<Counters> async_counters, DynamicTiering dynamic_tiering) CompilationStateImpl() argument
3072 SetupCompilationProgressForFunction( bool lazy_function, NativeModule* native_module, const WasmFeatures& enabled_features, int func_index) SetupCompilationProgressForFunction() argument
3944 CompileImportWrapper( NativeModule* native_module, Counters* counters, compiler::WasmImportCallKind kind, const FunctionSig* sig, int expected_arity, Suspend suspend, WasmImportWrapperCache::ModificationScope* cache_scope) CompileImportWrapper() argument
[all...]
H A Dcode-space-access.cc19 CodeSpaceWriteScope::CodeSpaceWriteScope(NativeModule* native_module) in CodeSpaceWriteScope() argument
21 DCHECK_NOT_NULL(native_module); in CodeSpaceWriteScope()
22 if (previous_native_module_ == native_module) return; in CodeSpaceWriteScope()
23 current_native_module_ = native_module; in CodeSpaceWriteScope()
H A Dfunction-compiler.cc152 NativeModule* native_module, in CompileWasmFunction()
156 ModuleWireBytes wire_bytes(native_module->wire_bytes()); in CompileWasmFunction()
161 DCHECK_LE(native_module->num_imported_functions(), function->func_index); in CompileWasmFunction()
162 DCHECK_LT(function->func_index, native_module->num_functions()); in CompileWasmFunction()
164 CompilationEnv env = native_module->CreateCompilationEnv(); in CompileWasmFunction()
166 &env, native_module->compilation_state()->GetWireBytesStorage().get(), in CompileWasmFunction()
170 native_module->PublishCode( in CompileWasmFunction()
171 native_module->AddCompiledCode(std::move(result))); in CompileWasmFunction()
173 native_module->compilation_state()->SetError(); in CompileWasmFunction()
151 CompileWasmFunction(Isolate* isolate, NativeModule* native_module, WasmFeatures* detected, const WasmFunction* function, ExecutionTier tier) CompileWasmFunction() argument
H A Dstreaming-decoder.cc47 const std::shared_ptr<NativeModule>& native_module) override;
323 std::weak_ptr<NativeModule> native_module, in CompilationChunkFinishedCallback()
325 : native_module_(std::move(native_module)), in CompilationChunkFinishedCallback()
341 if (std::shared_ptr<NativeModule> native_module = native_module_.lock()) {
342 native_module->counters()->wasm_cache_count()->AddSample(++cache_count_);
343 callback_(native_module); variable
360 const std::shared_ptr<NativeModule>& native_module) { in NotifyNativeModuleCreated()
362 auto* comp_state = native_module->compilation_state(); in NotifyNativeModuleCreated()
365 std::move(native_module), std::move(module_compiled_callback_))); in NotifyNativeModuleCreated()
322 CompilationChunkFinishedCallback( std::weak_ptr<NativeModule> native_module, AsyncStreamingDecoder::ModuleCompiledCallback callback) CompilationChunkFinishedCallback() argument
359 NotifyNativeModuleCreated( const std::shared_ptr<NativeModule>& native_module) NotifyNativeModuleCreated() argument
H A Dwasm-debug.cc117 explicit DebugInfoImpl(NativeModule* native_module) in DebugInfoImpl() argument
118 : native_module_(native_module) {} in DebugInfoImpl()
687 if (frame->native_module() != new_code->native_module()) continue; in UpdateReturnAddresses()
698 DCHECK_EQ(frame->native_module(), new_code->native_module()); in UpdateReturnAddress()
720 NativeModule* native_module = in IsAtReturn() local
721 frame->wasm_instance().module_object().native_module(); in IsAtReturn()
722 uint8_t opcode = native_module->wire_bytes()[position]; in IsAtReturn()
726 WireBytesRef code = native_module in IsAtReturn()
785 DebugInfo(NativeModule* native_module) DebugInfo() argument
879 FindNextBreakablePosition(wasm::NativeModule* native_module, int func_index, int offset_in_func) FindNextBreakablePosition() argument
969 wasm::NativeModule* native_module = script->wasm_native_module(); SetBreakPointForFunction() local
1048 wasm::NativeModule* native_module = script->wasm_native_module(); ClearBreakPoint() local
1150 GetPossibleBreakpoints( wasm::NativeModule* native_module, const v8::debug::Location& start, const v8::debug::Location& end, std::vector<v8::debug::BreakLocation>* locations) GetPossibleBreakpoints() argument
[all...]
H A Dmodule-instantiate.cc52 Counters* counters, NativeModule* native_module, in CompileImportWrapperJob()
56 native_module_(native_module), in CompileImportWrapperJob()
442 enabled_(module_object->native_module()->enabled_features()), in InstanceBuilder()
475 NativeModule* native_module = module_object_->native_module(); in Build() local
532 TRACE("New module instantiation for %p\n", native_module); in Build()
801 module_object_->native_module()); in Build()
923 instance->module_object().native_module()->wire_bytes(); in EvaluateInitExpression()
1001 module_object_->native_module()->wire_bytes(); in LoadDataSegments()
1055 module_object_->native_module() in SanitizeImports()
51 CompileImportWrapperJob( Counters* counters, NativeModule* native_module, ImportWrapperQueue* queue, WasmImportWrapperCache::ModificationScope* cache_scope) CompileImportWrapperJob() argument
1141 NativeModule* native_module = instance->module_object().native_module(); ProcessImportedFunction() local
1171 NativeModule* native_module = instance->module_object().native_module(); ProcessImportedFunction() local
1194 NativeModule* native_module = instance->module_object().native_module(); ProcessImportedFunction() local
1572 NativeModule* native_module = instance->module_object().native_module(); CompileImportWrappers() local
[all...]
H A Dwasm-objects.cc101 Isolate* isolate, std::shared_ptr<wasm::NativeModule> native_module, in New()
104 return New(isolate, std::move(native_module), script, export_wrappers); in New()
109 Isolate* isolate, std::shared_ptr<wasm::NativeModule> native_module, in New()
117 const WasmModule* module = native_module->module(); in New()
119 native_module->committed_code_space() + in New()
122 isolate, memory_estimate, std::move(native_module)); in New()
136 module_object->native_module()->wire_bytes(); in ExtractUtf8StringFromModuleBytes()
171 wasm::ModuleWireBytes(module_object->native_module()->wire_bytes()), in GetFunctionNameOrNull()
184 wasm::ModuleWireBytes wire_bytes(native_module()->wire_bytes()); in GetRawFunctionName()
583 wasm::NativeModule* native_module in UpdateDispatchTables() local
100 New( Isolate* isolate, std::shared_ptr<wasm::NativeModule> native_module, Handle<Script> script) New() argument
108 New( Isolate* isolate, std::shared_ptr<wasm::NativeModule> native_module, Handle<Script> script, Handle<FixedArray> export_wrappers) New() argument
1293 wasm::NativeModule* native_module = module_object().native_module(); GetCallTarget() local
1461 wasm::NativeModule* native_module = ImportWasmJSFunctionIntoTable() local
2236 New( Isolate* isolate, std::shared_ptr<wasm::NativeModule> native_module, Handle<FixedArray> export_wrappers, Handle<HeapNumber> uses_bitset) New() argument
[all...]
H A Dwasm-engine.h107 std::shared_ptr<NativeModule> native_module, bool error);
108 void Erase(NativeModule* native_module);
206 void CompileFunction(Isolate* isolate, NativeModule* native_module,
305 // its {native_module} argument and replace it with the existing entry.
308 std::shared_ptr<NativeModule>* native_module,
H A Dwasm-serialization.cc350 NativeModule* native_module = code->native_module(); in WriteCode() local
352 native_module->tiering_budget_array()[declared_function_index( in WriteCode()
353 native_module->module(), code->index())]; in WriteCode()
477 WasmSerializer::WasmSerializer(NativeModule* native_module) in WasmSerializer() argument
478 : native_module_(native_module), in WasmSerializer()
479 code_table_(native_module->SnapshotCodeTable()) {} in WasmSerializer()
643 NativeModuleDeserializer::NativeModuleDeserializer(NativeModule* native_module) in NativeModuleDeserializer() argument
644 : native_module_(native_module) {} in NativeModuleDeserializer()
H A Dmodule-compiler.h59 void RecompileNativeModule(NativeModule* native_module,
71 NativeModule* native_module, Counters* counters,
H A Dwasm-code-manager.h273 NativeModule* native_module() const { return native_module_; } in native_module() function in v8::internal::wasm::final
388 WasmCode(NativeModule* native_module, int index, in WasmCode() argument
397 : native_module_(native_module), in WasmCode()
1136 std::shared_ptr<NativeModule> native_module) in GlobalWasmCodeRef()
1137 : code_(code), native_module_(std::move(native_module)) { in GlobalWasmCodeRef()
1135 GlobalWasmCodeRef(WasmCode* code, std::shared_ptr<NativeModule> native_module) GlobalWasmCodeRef() argument
H A Dwasm-serialization.h24 explicit WasmSerializer(NativeModule* native_module);
H A Dwasm-code-manager.cc226 ModuleWireBytes wire_bytes(native_module()->wire_bytes()); in DebugName()
227 const WasmModule* module = native_module()->module(); in DebugName()
496 dead_code[code->native_module()].push_back(code); in DecrementRefCount()
706 NativeModule* native_module, size_t size) { in AllocateForCode()
707 return AllocateForCodeInRegion(native_module, size, kUnrestrictedRegion); in AllocateForCode()
711 NativeModule* native_module, size_t size, base::AddressRegion region) { in AllocateForCodeInRegion()
729 size, native_module->module()->num_declared_functions, total_reserved); in AllocateForCodeInRegion()
744 code_manager->AssignRange(new_region, native_module); in AllocateForCodeInRegion()
747 native_module->AddCodeSpaceLocked(new_region); in AllocateForCodeInRegion()
1133 new WasmCode{this, // native_module in AddCodeForTesting()
705 AllocateForCode( NativeModule* native_module, size_t size) AllocateForCode() argument
710 AllocateForCodeInRegion( NativeModule* native_module, size_t size, base::AddressRegion region) AllocateForCodeInRegion() argument
1984 AssignRange(base::AddressRegion region, NativeModule* native_module) AssignRange() argument
[all...]
H A Dstreaming-decoder.h106 const std::shared_ptr<NativeModule>& native_module) = 0;
H A Dwasm-objects.h116 inline wasm::NativeModule* native_module() const;
127 Isolate* isolate, std::shared_ptr<wasm::NativeModule> native_module,
130 Isolate* isolate, std::shared_ptr<wasm::NativeModule> native_module,
845 wasm::NativeModule* native_module, const debug::Location& start,
880 Isolate* isolate, std::shared_ptr<wasm::NativeModule> native_module,
H A Dwasm-objects-inl.h91 wasm::NativeModule* WasmModuleObject::native_module() const { in native_module() function in v8::internal::WasmModuleObject
100 return native_module()->module(); in module()
H A Dc-api.cc1151 const i::wasm::NativeModule* native_module = variable
1152 impl(this)->v8_object()->native_module();
1153 const i::wasm::WasmModule* module = native_module->module();
1155 native_module->wire_bytes();
1171 const i::wasm::NativeModule* native_module = module_obj->native_module(); in ExportsImpl() local
1172 const i::wasm::WasmModule* module = native_module->module(); in ExportsImpl()
1174 native_module->wire_bytes(); in ExportsImpl()
1192 i::wasm::NativeModule* native_module = variable
1193 impl(this)->v8_object()->native_module();
[all...]
/third_party/node/deps/v8/src/debug/wasm/gdb-server/
H A Dwasm-module-debug.cc64 int ReturnPc(const NativeModule* native_module, int pc) { in ReturnPc() argument
65 base::Vector<const uint8_t> wire_bytes = native_module->wire_bytes(); in ReturnPc()
124 const NativeModule* native_module = in GetCallStack() local
125 wasm.wasm_instance()->module_object().native_module(); in GetCallStack()
126 offset = ReturnPc(native_module, offset); in GetCallStack()
241 wasm::NativeModule* native_module = module_object->native_module(); in GetWasmLocal() local
242 DebugInfo* debug_info = native_module->GetDebugInfo(); in GetWasmLocal()
274 wasm::NativeModule* native_module = module_object->native_module(); in GetWasmStackValue() local
344 wasm::NativeModule* native_module = module_object->native_module(); GetWasmModuleBytes() local
[all...]
/third_party/node/deps/v8/src/runtime/
H A Druntime-test-wasm.cc161 wasm::ModuleWireBytes(frame->native_module()->wire_bytes()); in RUNTIME_FUNCTION()
327 wasm::NativeModule* native_module = module_obj->native_module(); in RUNTIME_FUNCTION() local
328 DCHECK(!native_module->compilation_state()->failed()); in RUNTIME_FUNCTION()
330 wasm::WasmSerializer wasm_serializer(native_module); in RUNTIME_FUNCTION()
399 module->native_module()->GetNumberOfCodeSpacesForTesting(); in RUNTIME_FUNCTION()
434 auto* native_module = instance->module_object().native_module(); in RUNTIME_FUNCTION() local
435 wasm::GetWasmEngine()->CompileFunction(isolate, native_module, function_index, in RUNTIME_FUNCTION()
437 CHECK(!native_module in RUNTIME_FUNCTION()
462 wasm::NativeModule* native_module = RUNTIME_FUNCTION() local
477 wasm::NativeModule* native_module = RUNTIME_FUNCTION() local
[all...]
H A Druntime-wasm.cc230 auto* native_module = instance->module_object().native_module(); in RUNTIME_FUNCTION() local
231 return Smi::FromInt(native_module->GetJumpTableOffset(func_index)); in RUNTIME_FUNCTION()
317 auto* native_module = instance->module_object().native_module(); in RUNTIME_FUNCTION() local
319 wasm::TriggerTierUp(isolate, native_module, func_index, instance); in RUNTIME_FUNCTION()
564 auto* debug_info = instance->module_object().native_module()->GetDebugInfo(); in RUNTIME_FUNCTION()
/third_party/node/deps/v8/src/debug/
H A Ddebug-interface.cc516 i::wasm::NativeModule* native_module = script->wasm_native_module(); in GetPossibleBreakpoints() local
517 return i::WasmScript::GetPossibleBreakpoints(native_module, start, end, in GetPossibleBreakpoints()
709 i::wasm::NativeModule* native_module = script->wasm_native_module(); in NumFunctions() local
710 const i::wasm::WasmModule* module = native_module->module(); in NumFunctions()
719 i::wasm::NativeModule* native_module = script->wasm_native_module(); in NumImportedFunctions() local
720 const i::wasm::WasmModule* module = native_module->module(); in NumImportedFunctions()
729 i::wasm::NativeModule* native_module = script->wasm_native_module(); in GetFunctionRange() local
730 const i::wasm::WasmModule* module = native_module->module(); in GetFunctionRange()
744 i::wasm::NativeModule* native_module = script->wasm_native_module(); in GetContainingFunction() local
745 const i::wasm::WasmModule* module = native_module in GetContainingFunction()
755 i::wasm::NativeModule* native_module = script->wasm_native_module(); GetFunctionHash() local
771 i::wasm::NativeModule* native_module = script->wasm_native_module(); CodeOffset() local
[all...]
H A Ddebug-wasm-objects.cc43 auto debug_info = instance->module_object().native_module()->GetDebugInfo(); in GetNameFromImportsAndExportsOrNull()
45 instance->module_object().native_module()->wire_bytes()); in GetNameFromImportsAndExportsOrNull()
422 auto debug_info = frame->native_module()->GetDebugInfo(); in Create()
454 auto native_module = in GetName() local
455 WasmModuleObject::cast(values->get(count + 0)).native_module(); in GetName()
457 wasm::ModuleWireBytes module_wire_bytes(native_module->wire_bytes()); in GetName()
459 native_module->GetDebugInfo()->GetLocalName(function_index, index)); in GetName()
475 frame->wasm_instance().module_object().native_module()->GetDebugInfo(); in Create()
866 wasm::NativeModule* native_module = in GetName() local
867 WasmModuleObject::cast(data->get(kModuleIndex)).native_module(); in GetName()
[all...]
/third_party/node/deps/v8/src/diagnostics/
H A Dperf-jit.cc412 code->native_module()->GetWasmSourceMap(); in LogWriteDebugInfo()
414 code->native_module()->module()->functions[code->index()].code; in LogWriteDebugInfo()
H A Ddisassembler.cc272 host.as_wasm_code()->native_module()->GetRuntimeStubId( in PrintRelocInfo()

Completed in 40 milliseconds

12