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

Unified Diff: src/log.cc

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: addressed comments Created 4 years, 1 month 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
Index: src/log.cc
diff --git a/src/log.cc b/src/log.cc
index 004d5176b12802d4497c551b510479f52dedbcd2..13f6037f562ccb0435596e4d81a1d7206a207ec2 100644
--- a/src/log.cc
+++ b/src/log.cc
@@ -1148,12 +1148,13 @@ void Logger::CodeLinePosInfoRecordEvent(AbstractCode* code,
iter.Advance()) {
if (iter.is_statement()) {
jit_logger_->AddCodeLinePosInfoEvent(
- jit_handler_data, iter.code_offset(), iter.source_position(),
+ jit_handler_data, iter.code_offset(),
+ iter.source_position().ScriptOffset(),
JitCodeEvent::STATEMENT_POSITION);
}
- jit_logger_->AddCodeLinePosInfoEvent(jit_handler_data, iter.code_offset(),
- iter.source_position(),
- JitCodeEvent::POSITION);
+ jit_logger_->AddCodeLinePosInfoEvent(
+ jit_handler_data, iter.code_offset(),
+ iter.source_position().ScriptOffset(), JitCodeEvent::POSITION);
}
jit_logger_->EndCodePosInfoEvent(code, jit_handler_data);
}

Powered by Google App Engine
This is Rietveld 408576698