/third_party/node/deps/v8/src/wasm/ |
H A D | wasm-engine.h | 102 std::shared_ptr<NativeModule> MaybeGetNativeModule( 106 std::shared_ptr<NativeModule> Update( 107 std::shared_ptr<NativeModule> native_module, bool error); 108 void Erase(NativeModule* native_module); 132 std::map<Key, base::Optional<std::weak_ptr<NativeModule>>> map_; 137 // module. Only one thread will create the {NativeModule}. Other threads 206 void CompileFunction(Isolate* isolate, NativeModule* native_module, 214 std::shared_ptr<NativeModule> ExportNativeModule( 220 Isolate* isolate, std::shared_ptr<NativeModule> shared_module, 264 // access to the NativeModule containin [all...] |
H A D | wasm-code-manager.cc | 580 return NativeModule::kNeedsFarJumpsBetweenCodeSpaces in NumWasmFunctionsInFarJumpTable() 706 NativeModule* native_module, size_t size) { in AllocateForCode() 711 NativeModule* native_module, size_t size, base::AddressRegion region) { in AllocateForCodeInRegion() 974 NativeModule::NativeModule(const WasmFeatures& enabled, in NativeModule() function in NativeModule 979 std::shared_ptr<NativeModule>* shared_this) in NativeModule() 1010 // {NativeModule::AddCodeSpaceLocked}. in NativeModule() 1017 void NativeModule::ReserveCodeTableForTesting(uint32_t max_functions) { in ReserveCodeTableForTesting() 1038 void NativeModule::LogWasmCodes(Isolate* isolate, Script script) { in LogWasmCodes() 1058 CompilationEnv NativeModule [all...] |
H A D | code-space-access.h | 21 class NativeModule; 48 explicit V8_EXPORT_PRIVATE CodeSpaceWriteScope(NativeModule*); 62 // {NativeModule}. 63 static thread_local NativeModule* current_native_module_; 76 NativeModule* const previous_native_module_;
|
H A D | wasm-code-manager.h | 45 class NativeModule; 273 NativeModule* native_module() const { return native_module_; } in native_module() 370 // belonging to different {NativeModule}s. Dead code will be deleted. 386 friend class NativeModule; 388 WasmCode(NativeModule* native_module, int index, in WasmCode() 448 NativeModule* const native_module_ = nullptr; 507 // Manages the code reservations and allocations of a single {NativeModule}. 527 // Call before use, after the {NativeModule} is set up completely. 541 // Hold the {NativeModule}'s {allocation_mutex_} when calling this method. 542 base::Vector<byte> AllocateForCode(NativeModule*, size_ [all...] |
H A D | wasm-engine.cc | 150 // callback because the Script keeps the NativeModule alive. So we expect the 184 std::shared_ptr<NativeModule> NativeModuleCache::MaybeGetNativeModule( in MaybeGetNativeModule() 201 // {NativeModule} is already being created on another thread. in MaybeGetNativeModule() 241 std::shared_ptr<NativeModule> NativeModuleCache::Update( in Update() 242 std::shared_ptr<NativeModule> native_module, bool error) { in Update() 267 key, base::Optional<std::weak_ptr<NativeModule>>(native_module)); in Update() 275 void NativeModuleCache::Erase(NativeModule* native_module) { in Erase() 371 std::unordered_set<NativeModule*> native_modules; 374 std::unordered_map<NativeModule*, WeakScriptHandle> scripts; 420 explicit NativeModuleInfo(std::weak_ptr<NativeModule> native_modul [all...] |
H A D | module-compiler.h | 47 class NativeModule; 53 std::shared_ptr<NativeModule> CompileToNativeModule( 59 void RecompileNativeModule(NativeModule* native_module, 71 NativeModule* native_module, Counters* counters, 81 V8_EXPORT_PRIVATE void TriggerTierUp(Isolate*, NativeModule*, int func_index, 234 std::shared_ptr<NativeModule> native_module_;
|
H A D | compilation-environment.h | 29 class NativeModule; 101 // by the NativeModule. This class abstracts over the storage location. 186 // NativeModule is allowed to call the static {New} method. 187 friend class NativeModule; 189 // The CompilationState keeps a {std::weak_ptr} back to the {NativeModule} 193 const std::shared_ptr<NativeModule>&, std::shared_ptr<Counters>,
|
H A D | streaming-decoder.h | 24 class NativeModule; 91 std::function<void(const std::shared_ptr<NativeModule>&)>; 106 const std::shared_ptr<NativeModule>& native_module) = 0;
|
H A D | code-space-access.cc | 14 thread_local NativeModule* CodeSpaceWriteScope::current_native_module_ = 19 CodeSpaceWriteScope::CodeSpaceWriteScope(NativeModule* native_module) in CodeSpaceWriteScope()
|
H A D | wasm-serialization.h | 19 // Support for serializing WebAssembly {NativeModule} objects. This class takes 24 explicit WasmSerializer(NativeModule* native_module); 29 // Serialize the {NativeModule} into the provided {buffer}. Returns true on 49 NativeModule* native_module_; 55 // Support for deserializing WebAssembly {NativeModule} objects.
|
H A D | module-compiler.cc | 86 explicit BackgroundCompileScope(std::weak_ptr<NativeModule> native_module) in BackgroundCompileScope() 89 NativeModule* native_module() const { in native_module() 99 std::shared_ptr<NativeModule> native_module_; 525 // owning NativeModule, i.e. which functions are left to be compiled. 531 CompilationStateImpl(const std::shared_ptr<NativeModule>& native_module, 539 // the {NativeModule} has been initialized. 664 std::weak_ptr<NativeModule> const native_module_weak() const { in native_module_weak() 670 bool lazy_function, NativeModule* module, 687 NativeModule* const native_module_; 688 std::weak_ptr<NativeModule> cons [all...] |
H A D | streaming-decoder.cc | 47 const std::shared_ptr<NativeModule>& native_module) override; 323 std::weak_ptr<NativeModule> native_module, in CompilationChunkFinishedCallback() 329 if (std::shared_ptr<NativeModule> module = native_module_.lock()) { in CompilationChunkFinishedCallback() 341 if (std::shared_ptr<NativeModule> native_module = native_module_.lock()) { 352 const std::weak_ptr<NativeModule> native_module_; 360 const std::shared_ptr<NativeModule>& native_module) { in NotifyNativeModuleCreated()
|
H A D | function-compiler.h | 31 class NativeModule; 78 static void CompileWasmFunction(Isolate*, NativeModule*,
|
H A D | wasm-serialization.cc | 281 NativeModuleSerializer(const NativeModule*, base::Vector<WasmCode* const>); 293 const NativeModule* const native_module_; 301 const NativeModule* module, base::Vector<WasmCode* const> code_table) in NativeModuleSerializer() 350 NativeModule* native_module = code->native_module(); in WriteCode() 477 WasmSerializer::WasmSerializer(NativeModule* native_module) in WasmSerializer() 504 NativeModule::JumpTablesRef jump_tables; 548 explicit NativeModuleDeserializer(NativeModule*); 570 NativeModule* const native_module_; 578 NativeModule::JumpTablesRef current_jump_tables_; 643 NativeModuleDeserializer::NativeModuleDeserializer(NativeModule* native_modul [all...] |
H A D | wasm-debug.h | 34 class NativeModule; 166 // Debug info per NativeModule, created lazily on demand. 170 explicit DebugInfo(NativeModule*);
|
H A D | wasm-objects.h | 33 class NativeModule; 116 inline wasm::NativeModule* native_module() const; 117 inline const std::shared_ptr<wasm::NativeModule>& shared_native_module() 124 // Creates a new {WasmModuleObject} for an existing {NativeModule} that is 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 D | wasm-debug.cc | 117 explicit DebugInfoImpl(NativeModule* native_module) in DebugInfoImpl() 557 // debug side table, because compilation takes the {NativeModule} lock. in GetDebugSideTable() 720 NativeModule* native_module = in IsAtReturn() 742 NativeModule* const native_module_; 785 DebugInfo::DebugInfo(NativeModule* native_module) in DebugInfo() 879 int FindNextBreakablePosition(wasm::NativeModule* native_module, int func_index, in FindNextBreakablePosition() 969 wasm::NativeModule* native_module = script->wasm_native_module(); in SetBreakPointForFunction() 1048 wasm::NativeModule* native_module = script->wasm_native_module(); in ClearBreakPoint() 1151 wasm::NativeModule* native_module, const v8::debug::Location& start, in GetPossibleBreakpoints()
|
H A D | sync-streaming-decoder.cc | 85 const std::shared_ptr<NativeModule>&) override {
|
/third_party/node/deps/v8/include/v8-include/ |
H A D | v8-wasm.h | 24 class NativeModule; 61 explicit CompiledWasmModule(std::shared_ptr<internal::wasm::NativeModule>, 64 const std::shared_ptr<internal::wasm::NativeModule> native_module_;
|
/third_party/node/deps/v8/include/ |
H A D | v8-wasm.h | 23 class NativeModule; 60 explicit CompiledWasmModule(std::shared_ptr<internal::wasm::NativeModule>, 63 const std::shared_ptr<internal::wasm::NativeModule> native_module_;
|
/third_party/node/deps/v8/src/debug/wasm/gdb-server/ |
H A D | wasm-module-debug.cc | 64 int ReturnPc(const NativeModule* native_module, int pc) { in ReturnPc() 124 const NativeModule* native_module = in GetCallStack() 241 wasm::NativeModule* native_module = module_object->native_module(); in GetWasmLocal() 274 wasm::NativeModule* native_module = module_object->native_module(); in GetWasmStackValue() 344 wasm::NativeModule* native_module = module_object->native_module(); in GetWasmModuleBytes()
|
/third_party/node/deps/v8/src/objects/ |
H A D | script.h | 28 class NativeModule; 105 // [wasm_native_module]: the wasm {NativeModule} this script belongs to. 108 inline wasm::NativeModule* wasm_native_module() const;
|
H A D | script-inl.h | 127 wasm::NativeModule* Script::wasm_native_module() const { in wasm_native_module() 128 return Managed<wasm::NativeModule>::cast(wasm_managed_native_module()).raw(); in wasm_native_module()
|
/third_party/node/deps/v8/src/runtime/ |
H A D | runtime-test-wasm.cc | 327 wasm::NativeModule* native_module = module_obj->native_module(); in RUNTIME_FUNCTION() 462 wasm::NativeModule* native_module = in RUNTIME_FUNCTION() 477 wasm::NativeModule* native_module = in RUNTIME_FUNCTION()
|
/third_party/node/deps/v8/src/debug/ |
H A D | debug-interface.cc | 375 i::Managed<i::wasm::NativeModule>::cast(*source).raw()->wire_bytes(); in WasmBytecode() 516 i::wasm::NativeModule* native_module = script->wasm_native_module(); in GetPossibleBreakpoints() 709 i::wasm::NativeModule* native_module = script->wasm_native_module(); in NumFunctions() 719 i::wasm::NativeModule* native_module = script->wasm_native_module(); in NumImportedFunctions() 729 i::wasm::NativeModule* native_module = script->wasm_native_module(); in GetFunctionRange() 744 i::wasm::NativeModule* native_module = script->wasm_native_module(); in GetContainingFunction() 755 i::wasm::NativeModule* native_module = script->wasm_native_module(); in GetFunctionHash() 771 i::wasm::NativeModule* native_module = script->wasm_native_module(); in CodeOffset()
|