v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
local-logger.cc
Go to the documentation of this file.
1// Copyright 2020 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
6
8#include "src/objects/map.h"
9
10namespace v8 {
11namespace internal {
12
13// TODO(leszeks): Add support for logging from off-thread.
15 : v8_file_logger_(isolate->v8_file_logger()),
16 is_logging_(v8_file_logger_->is_logging()),
17 is_listening_to_code_events_(
18 v8_file_logger_->is_listening_to_code_events()) {}
19
23void LocalLogger::ScriptEvent(ScriptEventType type, int script_id) {
24 v8_file_logger_->ScriptEvent(type, script_id);
25}
27 Address code_start, Tagged<TrustedByteArray> source_position_table,
28 JitCodeEvent::CodeType code_type) {
29 v8_file_logger_->CodeLinePosInfoRecordEvent(code_start, source_position_table,
30 code_type);
31}
32
36
40
41} // namespace internal
42} // namespace v8
void MapDetails(Tagged< Map > map)
V8FileLogger * v8_file_logger_
void MapCreate(Tagged< Map > map)
LocalLogger(Isolate *isolate)
void CodeLinePosInfoRecordEvent(Address code_start, Tagged< TrustedByteArray > source_position_table, JitCodeEvent::CodeType code_type)
void ScriptEvent(ScriptEventType type, int script_id)
void ScriptDetails(Tagged< Script > script)
void MapCreate(Tagged< Map > map)
Definition log.cc:2058
void MapDetails(Tagged< Map > map)
Definition log.cc:2067
void ScriptEvent(ScriptEventType type, int script_id)
Definition log.cc:1876
void CodeLinePosInfoRecordEvent(Address code_start, Tagged< TrustedByteArray > source_position_table, JitCodeEvent::CodeType code_type)
Definition log.cc:1777
void ScriptDetails(Tagged< Script > script)
Definition log.cc:1905