Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Unified Diff: src/log.cc

Issue 2111793002: Simplify JIT event logging. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix forward declaration Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/log.h ('k') | src/source-position-table.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/log.cc
diff --git a/src/log.cc b/src/log.cc
index 3e7677edf1955400cae41889f69e06544b8e7301..9f85213c3b7ea206705632a1640c302f62dec836 100644
--- a/src/log.cc
+++ b/src/log.cc
@@ -1241,11 +1241,9 @@ void Logger::CodeLinePosInfoAddStatementPositionEvent(void* jit_handler_data,
JitCodeEvent::STATEMENT_POSITION));
}
-
-void Logger::CodeStartLinePosInfoRecordEvent(PositionsRecorder* pos_recorder) {
- if (jit_logger_ != NULL) {
- pos_recorder->AttachJITHandlerData(jit_logger_->StartCodePosInfoEvent());
- }
+void Logger::CodeStartLinePosInfoRecordEvent(void** jit_handler_data_out) {
+ *jit_handler_data_out =
+ (jit_logger_ == NULL) ? NULL : jit_logger_->StartCodePosInfoEvent();
}
void Logger::CodeEndLinePosInfoRecordEvent(AbstractCode* code,
« no previous file with comments | « src/log.h ('k') | src/source-position-table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698