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

Unified Diff: src/debug/liveedit.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/debug/liveedit.cc
diff --git a/src/debug/liveedit.cc b/src/debug/liveedit.cc
index 8ef03c74a7bd3fd079f46c8ac1d2452f1762baba..ace829739faeb6dd93286dd27eeb27bc75980889 100644
--- a/src/debug/liveedit.cc
+++ b/src/debug/liveedit.cc
@@ -1111,9 +1111,10 @@ void TranslateSourcePositionTable(Handle<AbstractCode> code,
Handle<ByteArray> source_position_table(code->source_position_table());
for (SourcePositionTableIterator iterator(*source_position_table);
!iterator.done(); iterator.Advance()) {
- int position = iterator.source_position();
- int new_position = TranslatePosition(position, position_change_array);
- builder.AddPosition(iterator.code_offset(), new_position,
+ SourcePosition position = iterator.source_position();
+ position.SetScriptOffset(
+ TranslatePosition(position.ScriptOffset(), position_change_array));
+ builder.AddPosition(iterator.code_offset(), position,
iterator.is_statement());
}
« src/crankshaft/hydrogen.cc ('K') | « src/debug/debug.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698