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

Unified Diff: src/full-codegen/full-codegen.cc

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: fixed gcmole issue 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/full-codegen/full-codegen.cc
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc
index 262620b83064ee0f83447192d5d7510dca1b4425..3c8d10fa9abcf8c583082225e856c64a35c7970d 100644
--- a/src/full-codegen/full-codegen.cc
+++ b/src/full-codegen/full-codegen.cc
@@ -665,12 +665,14 @@ void FullCodeGenerator::EmitHasProperty() {
void FullCodeGenerator::RecordStatementPosition(int pos) {
DCHECK_NE(kNoSourcePosition, pos);
- source_position_table_builder_.AddPosition(masm_->pc_offset(), pos, true);
+ source_position_table_builder_.AddPosition(masm_->pc_offset(),
+ SourcePosition(pos), true);
}
void FullCodeGenerator::RecordPosition(int pos) {
DCHECK_NE(kNoSourcePosition, pos);
- source_position_table_builder_.AddPosition(masm_->pc_offset(), pos, false);
+ source_position_table_builder_.AddPosition(masm_->pc_offset(),
+ SourcePosition(pos), false);
}
« src/crankshaft/hydrogen.cc ('K') | « src/disassembler.cc ('k') | src/ia32/assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698