Index: src/perf-jit.cc |
diff --git a/src/perf-jit.cc b/src/perf-jit.cc |
index a8c7255396f6529e190a2d6c407c1728ccfb9f46..c6e23dc0986c756cd4e802570e9e991b215bfeb0 100644 |
--- a/src/perf-jit.cc |
+++ b/src/perf-jit.cc |
@@ -299,7 +299,7 @@ void PerfJitLogger::LogWriteDebugInfo(Code* code, SharedFunctionInfo* shared) { |
for (SourcePositionTableIterator iterator(code->source_position_table()); |
!iterator.done(); iterator.Advance()) { |
- int position = iterator.source_position(); |
+ int position = iterator.source_position().ScriptOffset(); |
int line_number = Script::GetLineNumber(script, position); |
// Compute column. |
int relative_line_number = line_number - script_line_offset; |