Commit 693354a6 authored by loislo@chromium.org's avatar loislo@chromium.org

Extract JitLogger from Logger class.

Second patch from the set.

BUG=260203
TEST=logic wasn't changed
R=yangguo@chromium.org, yurys@chromium.org

Review URL: https://codereview.chromium.org/19761003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15749 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 05ec5921
This diff is collapsed.
......@@ -151,6 +151,7 @@ class CompilationInfo;
// original tags when writing to the log.
class JitLogger;
class LowLevelLogger;
class Sampler;
......@@ -337,12 +338,8 @@ class Logger {
return logging_nesting_ > 0;
}
bool is_code_event_handler_enabled() {
return code_event_handler_ != NULL;
}
bool is_logging_code_events() {
return is_logging() || code_event_handler_ != NULL;
return is_logging() || jit_logger_ != NULL;
}
// Pause/Resume collection of profiling data.
......@@ -383,19 +380,6 @@ class Logger {
explicit Logger(Isolate* isolate);
~Logger();
// Issue code notifications.
void IssueCodeAddedEvent(Code* code,
Script* script,
const char* name,
size_t name_len);
void IssueCodeMovedEvent(Address from, Address to);
void IssueCodeRemovedEvent(Address from);
void IssueAddCodeLinePosInfoEvent(void* jit_handler_data,
int pc_offset,
int position,
JitCodeEvent::PositionType position_Type);
void* IssueStartCodePosInfoEvent();
void IssueEndCodePosInfoEvent(Code* code, void* jit_handler_data);
// Emits the profiler's first message.
void ProfilerBeginEvent();
......@@ -475,6 +459,7 @@ class Logger {
Log* log_;
LowLevelLogger* ll_logger_;
JitLogger* jit_logger_;
NameBuffer* name_buffer_;
......@@ -484,9 +469,6 @@ class Logger {
// 'true' between SetUp() and TearDown().
bool is_initialized_;
// The code event handler - if any.
JitCodeEventHandler code_event_handler_;
// Support for 'incremental addresses' in compressed logs:
// LogMessageBuilder::AppendAddress(Address addr)
Address last_address_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment