Index: src/cpu-profiler.cc |
diff --git a/src/cpu-profiler.cc b/src/cpu-profiler.cc |
index 03d70521aeb912d1269e6524c6ab943db7b11327..a8a57d1d67c6679eb61233db32a3a2903fd33810 100644 |
--- a/src/cpu-profiler.cc |
+++ b/src/cpu-profiler.cc |
@@ -277,8 +277,8 @@ void CpuProfiler::CodeCreateEvent(Logger::LogEventsAndTags tag, Code* code, |
int position = static_cast<int>(it.rinfo()->data()); |
if (position >= 0) { |
int pc_offset = static_cast<int>(it.rinfo()->pc() - code->address()); |
- int line_number = script->GetLineNumber(position); |
- line_table->SetPosition(pc_offset, line_number + 1); |
+ int line_number = script->GetLineNumber(position) + 1; |
+ line_table->SetPosition(pc_offset, line_number); |
} |
} |
} |