Home
last modified time | relevance | path

Searched refs:WasmCode (Results 1 – 25 of 73) sorted by relevance

123

/third_party/node/deps/v8/src/wasm/
Dwasm-code-manager.h159 class V8_EXPORT_PRIVATE WasmCode final {
329 WasmCode(const WasmCode&) = delete;
330 WasmCode& operator=(const WasmCode&) = delete;
331 ~WasmCode();
371 static void DecrementRefCount(base::Vector<WasmCode* const>);
388 WasmCode(NativeModule* native_module, int index, in WasmCode() function
499 STATIC_ASSERT(sizeof(WasmCode) <= 88);
502 WasmCode::Kind GetCodeKind(const WasmCompilationResult& result);
505 const char* GetWasmCodeKindAsString(WasmCode::Kind);
566 void FreeCode(base::Vector<WasmCode* const>);
[all …]
Dwasm-code-manager.cc151 Address WasmCode::constant_pool() const { in constant_pool()
160 Address WasmCode::handler_table() const { in handler_table()
164 int WasmCode::handler_table_size() const { in handler_table_size()
169 Address WasmCode::code_comments() const { in code_comments()
173 int WasmCode::code_comments_size() const { in code_comments_size()
178 std::unique_ptr<const byte[]> WasmCode::ConcatenateBytes( in ConcatenateBytes()
193 void WasmCode::RegisterTrapHandlerData() { in RegisterTrapHandlerData()
195 if (kind() != WasmCode::kWasmFunction) return; in RegisterTrapHandlerData()
212 bool WasmCode::ShouldBeLogged(Isolate* isolate) { in ShouldBeLogged()
221 std::string WasmCode::DebugName() const { in DebugName()
[all …]
Dwasm-import-wrapper-cache.cc16 WasmCode*& WasmImportWrapperCache::ModificationScope::operator[]( in operator []()
21 WasmCode*& WasmImportWrapperCache::operator[]( in operator []()
26 WasmCode* WasmImportWrapperCache::Get(compiler::WasmImportCallKind kind, in Get()
37 WasmCode* WasmImportWrapperCache::MaybeGet(compiler::WasmImportCallKind kind, in MaybeGet()
49 std::vector<WasmCode*> ptrs; in ~WasmImportWrapperCache()
56 WasmCode::DecrementRefCount(base::VectorOf(ptrs)); in ~WasmImportWrapperCache()
Dwasm-import-wrapper-cache.h22 class WasmCode; variable
65 V8_EXPORT_PRIVATE WasmCode*& operator[](const CacheKey& key);
74 V8_EXPORT_PRIVATE WasmCode*& operator[](const CacheKey& key);
77 V8_EXPORT_PRIVATE WasmCode* Get(compiler::WasmImportCallKind kind,
81 WasmCode* MaybeGet(compiler::WasmImportCallKind kind, const FunctionSig* sig,
88 std::unordered_map<CacheKey, WasmCode*, CacheKeyHash> entry_map_;
Dwasm-serialization.cc207 sizeof(WasmCode::Kind) + // code kind
281 NativeModuleSerializer(const NativeModule*, base::Vector<WasmCode* const>);
289 size_t MeasureCode(const WasmCode*) const;
291 void WriteCode(const WasmCode*, Writer*);
294 const base::Vector<WasmCode* const> code_table_;
301 const NativeModule* module, base::Vector<WasmCode* const> code_table) in NativeModuleSerializer()
308 size_t NativeModuleSerializer::MeasureCode(const WasmCode* code) const { in MeasureCode()
310 DCHECK_EQ(WasmCode::kWasmFunction, code->kind()); in MeasureCode()
321 for (WasmCode* code : code_table_) { in Measure()
335 void NativeModuleSerializer::WriteCode(const WasmCode* code, Writer* writer) { in WriteCode()
[all …]
Dwasm-debug.cc42 Address FindNewPC(WasmFrame* frame, WasmCode* wasm_code, int byte_offset, in FindNewPC()
50 WasmCode* old_code = frame->wasm_code(); in FindNewPC()
245 WasmCode* RecompileLiftoffWithBreakpoints(int func_index, in RecompileLiftoffWithBreakpoints()
295 WasmCode* new_code = native_module_->PublishCode( in RecompileLiftoffWithBreakpoints()
361 WasmCode* new_code; in SetBreakpoint()
389 WasmCode* new_code = RecompileLiftoffWithBreakpoints( in UpdateBreakpoints()
400 WasmCode* new_code = RecompileLiftoffWithBreakpoints( in FloodWithBreakpoints()
409 wasm::WasmCode* code = frame->wasm_code(); in PrepareStep()
418 wasm::WasmCode* code = frame->wasm_code(); in PrepareStepOutTo()
431 WasmCode* new_code = RecompileLiftoffWithBreakpoints( in ClearStepping()
[all …]
Dwasm-engine.cc333 std::unordered_set<WasmCode*> dead_code;
354 : log_codes(WasmCode::ShouldBeLogged(isolate)), in IsolateInfo()
385 std::vector<WasmCode*> code;
433 std::unordered_set<WasmCode*> potentially_dead_code;
437 std::unordered_set<WasmCode*> dead_code;
1068 for (WasmCode* code : module->potentially_dead_code) { in RemoveIsolate()
1082 WasmCode::DecrementRefCount(base::VectorOf(log_entry.second.code)); in RemoveIsolate()
1089 void WasmEngine::LogCode(base::Vector<WasmCode*> code_vec) { in LogCode()
1107 for (WasmCode* code : code_vec) { in LogCode()
1143 bool should_log = WasmCode::ShouldBeLogged(isolate); in LogOutstandingCodesForIsolate()
[all …]
Dwasm-debug.h35 class WasmCode; variable
220 void RemoveDebugSideTables(base::Vector<WasmCode* const>);
224 DebugSideTable* GetDebugSideTableIfExists(const WasmCode*) const;
Dwasm-engine.h266 void LogCode(base::Vector<WasmCode*>);
334 void ReportLiveCodeForGC(Isolate*, base::Vector<WasmCode*>);
342 V8_WARN_UNUSED_RESULT bool AddPotentiallyDeadCode(WasmCode*);
345 using DeadCodeMap = std::unordered_map<NativeModule*, std::vector<WasmCode*>>;
Dmodule-compiler.h49 class WasmCode; variable
70 WasmCode* CompileImportWrapper(
Dwasm-serialization.h52 std::vector<WasmCode*> code_table_;
Dmodule-compiler.cc604 void OnFinishedUnits(base::Vector<WasmCode*>);
610 std::vector<std::unique_ptr<WasmCode>> unpublished_code);
684 std::vector<std::unique_ptr<WasmCode>> unpublished_code);
685 void PublishCode(base::Vector<std::unique_ptr<WasmCode>> codes);
770 std::vector<std::unique_ptr<WasmCode>> publish_queue_;
1217 WasmCode* code; in CompileLazy()
1225 if (WasmCode::ShouldBeLogged(isolate)) { in CompileLazy()
1576 std::vector<std::unique_ptr<WasmCode>> unpublished_code = in ExecuteCompilationUnits()
1603 std::vector<std::unique_ptr<WasmCode>> unpublished_code = in ExecuteCompilationUnits()
3498 base::Vector<WasmCode*> code_vector) { in OnFinishedUnits()
[all …]
/third_party/node/deps/v8/src/codegen/
Dcode-reference.h18 class WasmCode; variable
24 explicit CodeReference(const wasm::WasmCode* wasm_code) in CodeReference()
50 const wasm::WasmCode* as_wasm_code() const { in as_wasm_code()
59 const wasm::WasmCode* wasm_code_;
Dhandler-table.h20 class WasmCode; variable
58 explicit HandlerTable(const wasm::WasmCode* code);
Dsafepoint-table.h22 class WasmCode; variable
96 explicit SafepointTable(const wasm::WasmCode* code);
/third_party/node/deps/v8/src/compiler/
Dloop-analysis.cc617 using WasmCode = v8::internal::wasm::WasmCode; in FindSmallInnermostLoopFromHeader() typedef
620 WasmCode::kWasmStackGuard, in FindSmallInnermostLoopFromHeader()
622 WasmCode::kWasmTableGet, WasmCode::kWasmTableSet, in FindSmallInnermostLoopFromHeader()
623 WasmCode::kWasmTableGrow, in FindSmallInnermostLoopFromHeader()
625 WasmCode::kWasmAtomicNotify, WasmCode::kWasmI32AtomicWait32, in FindSmallInnermostLoopFromHeader()
626 WasmCode::kWasmI32AtomicWait64, WasmCode::kWasmI64AtomicWait32, in FindSmallInnermostLoopFromHeader()
627 WasmCode::kWasmI64AtomicWait64, in FindSmallInnermostLoopFromHeader()
629 WasmCode::kWasmAllocateFixedArray, WasmCode::kWasmThrow, in FindSmallInnermostLoopFromHeader()
630 WasmCode::kWasmRethrow, WasmCode::kWasmRethrowExplicitContext, in FindSmallInnermostLoopFromHeader()
632 WasmCode::kWasmRefFunc}; in FindSmallInnermostLoopFromHeader()
/third_party/node/deps/v8/src/diagnostics/
Dperf-jit.h62 void LogRecordedBuffer(const wasm::WasmCode* code, const char* name,
81 void LogWriteDebugInfo(const wasm::WasmCode* code);
/third_party/node/deps/v8/src/wasm/baseline/
Dliftoff-compiler.cc422 WasmCode::RuntimeStubId stub;
434 WasmCode::RuntimeStubId s, WasmCodePosition pos, in Trap()
460 WasmCode::kWasmStackGuard, // stub in StackCheck()
478 WasmCode::kWasmTriggerTierUp, // stub in TierupCheck()
788 __ CallRuntimeStub(WasmCode::kWasmTraceEnter); in TraceFunctionEntry()
923 const bool is_stack_check = ool->stub == WasmCode::kWasmStackGuard; in GenerateOutOfLineCode()
924 const bool is_tierup = ool->stub == WasmCode::kWasmTriggerTierUp; in GenerateOutOfLineCode()
929 DCHECK_IMPLIES(ool->stub != WasmCode::kThrowWasmTrapMemOutOfBounds, in GenerateOutOfLineCode()
1151 __ CallRuntimeStub(WasmCode::kWasmDebugBreak); in EmitBreakpoint()
1214 CallRuntimeStub(WasmCode::kWasmGetOwnProperty, in GetExceptionProperty()
[all …]
Dliftoff-compiler.h98 const WasmCode*);
/third_party/node/deps/v8/src/logging/
Dcode-events.h27 class WasmCode; variable
88 virtual void CodeCreateEvent(LogEventsAndTags tag, const wasm::WasmCode* code,
180 void CodeCreateEvent(LogEventsAndTags tag, const wasm::WasmCode* code, in CodeCreateEvent()
Dlog.h182 void CodeCreateEvent(LogEventsAndTags tag, const wasm::WasmCode* code,
421 void CodeCreateEvent(LogEventsAndTags tag, const wasm::WasmCode* code,
453 virtual void LogRecordedBuffer(const wasm::WasmCode* code, const char* name,
489 void CodeCreateEvent(LogEventsAndTags tag, const wasm::WasmCode* code,
Dlog.cc113 static const char* ComputeMarker(const wasm::WasmCode* code) { in ComputeMarker()
115 case wasm::WasmCode::kWasmFunction: in ComputeMarker()
269 const wasm::WasmCode* code, in CodeCreateEvent()
314 void LogRecordedBuffer(const wasm::WasmCode* code, const char* name,
376 void PerfBasicLogger::LogRecordedBuffer(const wasm::WasmCode* code, in LogRecordedBuffer()
505 LogEventsAndTags tag, const wasm::WasmCode* code, wasm::WasmName name, in CodeCreateEvent()
561 void LogRecordedBuffer(const wasm::WasmCode* code, const char* name,
661 void LowLevelLogger::LogRecordedBuffer(const wasm::WasmCode* code, in LogRecordedBuffer()
714 void LogRecordedBuffer(const wasm::WasmCode* code, const char* name,
747 void JitLogger::LogRecordedBuffer(const wasm::WasmCode* code, const char* name, in LogRecordedBuffer()
[all …]
/third_party/node/deps/v8/src/execution/
Dframes.cc637 if (wasm::WasmCode* wasm_code = in ComputeType()
640 case wasm::WasmCode::kWasmFunction: in ComputeType()
642 case wasm::WasmCode::kWasmToCapiWrapper: in ComputeType()
644 case wasm::WasmCode::kWasmToJsWrapper: in ComputeType()
1051 wasm_code->kind() != wasm::WasmCode::kWasmFunction && in IterateCompiledFrame()
1052 wasm_code->kind() != wasm::WasmCode::kWasmToCapiWrapper; in IterateCompiledFrame()
1083 wasm::WasmCode* wasm_callee = in IterateCompiledFrame()
1641 Isolate* isolate, Handle<WasmInstanceObject> instance, wasm::WasmCode* code, in WasmFrameSummary()
2077 wasm::WasmCode* WasmFrame::wasm_code() const { in wasm_code()
2110 wasm::WasmCode* code = wasm_code(); in byte_offset()
[all …]
Dframes.h50 class WasmCode; variable
411 WasmFrameSummary(Isolate*, Handle<WasmInstanceObject>, wasm::WasmCode*,
416 wasm::WasmCode* code() const { return code_; } in code()
432 wasm::WasmCode* const code_;
971 wasm::WasmCode* wasm_code() const;
/third_party/node/deps/v8/src/runtime/
Druntime-test-wasm.cc166 wasm::WasmCode* code = frame->wasm_code(); in RUNTIME_FUNCTION()
466 wasm::WasmCode* code = native_module->GetCode(func_index); in RUNTIME_FUNCTION()
481 wasm::WasmCode* code = native_module->GetCode(func_index); in RUNTIME_FUNCTION()

123