diff options
Diffstat (limited to 'deps/v8/src/logging/log.cc')
-rw-r--r-- | deps/v8/src/logging/log.cc | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/deps/v8/src/logging/log.cc b/deps/v8/src/logging/log.cc index 4f6aa856d7..022d0e9c57 100644 --- a/deps/v8/src/logging/log.cc +++ b/deps/v8/src/logging/log.cc @@ -9,6 +9,7 @@ #include <memory> #include <sstream> +#include "include/v8-locker.h" #include "src/api/api-inl.h" #include "src/base/platform/mutex.h" #include "src/base/platform/platform.h" @@ -614,6 +615,8 @@ void LowLevelLogger::LogCodeInfo() { const char arch[] = "ppc64"; #elif V8_TARGET_ARCH_MIPS const char arch[] = "mips"; +#elif V8_TARGET_ARCH_LOONG64 + const char arch[] = "loong64"; #elif V8_TARGET_ARCH_ARM64 const char arch[] = "arm64"; #elif V8_TARGET_ARCH_S390 @@ -730,7 +733,7 @@ void JitLogger::LogRecordedBuffer(const wasm::WasmCode* code, const char* name, int length) { JitCodeEvent event = {}; event.type = JitCodeEvent::CODE_ADDED; - event.code_type = JitCodeEvent::JIT_CODE; + event.code_type = JitCodeEvent::WASM_CODE; event.code_start = code->instructions().begin(); event.code_len = code->instructions().length(); event.name.str = name; @@ -1558,12 +1561,14 @@ void Logger::CodeLinePosInfoRecordEvent(Address code_start, CodeLinePosEvent(*jit_logger_, code_start, iter, code_type); } -void Logger::CodeLinePosInfoRecordEvent( +#if V8_ENABLE_WEBASSEMBLY +void Logger::WasmCodeLinePosInfoRecordEvent( Address code_start, base::Vector<const byte> source_position_table) { if (!jit_logger_) return; SourcePositionTableIterator iter(source_position_table); - CodeLinePosEvent(*jit_logger_, code_start, iter, JitCodeEvent::JIT_CODE); + CodeLinePosEvent(*jit_logger_, code_start, iter, JitCodeEvent::WASM_CODE); } +#endif // V8_ENABLE_WEBASSEMBLY void Logger::CodeNameEvent(Address addr, int pos, const char* code_name) { if (code_name == nullptr) return; // Not a code object. @@ -2217,12 +2222,11 @@ void ExistingCodeLogger::LogCompiledFunctions() { Handle<AbstractCode>( AbstractCode::cast(shared->InterpreterTrampoline()), isolate_)); } - if (shared->HasBaselineData()) { + if (shared->HasBaselineCode()) { LogExistingFunction( - shared, - Handle<AbstractCode>( - AbstractCode::cast(shared->baseline_data().baseline_code()), - isolate_)); + shared, Handle<AbstractCode>( + AbstractCode::cast(shared->baseline_code(kAcquireLoad)), + isolate_)); } if (pair.second.is_identical_to(BUILTIN_CODE(isolate_, CompileLazy))) continue; |