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

Unified Diff: src/full-codegen/full-codegen.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/full-codegen/full-codegen.cc
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc
index cd32c4db21df55080243eae3d419a9436fb8c5f6..2ce6eece1b6b68a94611ee70df354be83fedf0c0 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);
}

Powered by Google App Engine
This is Rietveld 408576698