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()); |
} |