Index: src/gdb-jit.cc |
diff --git a/src/gdb-jit.cc b/src/gdb-jit.cc |
index 1af2784573de6c947298af7f7733362c32dea5b9..ca08f3e17e8583df6d31e18cbe3bbdc1d6dae58f 100644 |
--- a/src/gdb-jit.cc |
+++ b/src/gdb-jit.cc |
@@ -1002,7 +1002,7 @@ class CodeDescription BASE_EMBEDDED { |
} |
int GetScriptLineNumber(int pos) { |
- return GetScriptLineNumberSafe(script_, pos) + 1; |
+ return script_->GetLineNumber(pos) + 1; |
} |
@@ -2003,8 +2003,7 @@ void GDBJITInterface::AddCode(Handle<Name> name, |
CompilationInfo* info) { |
if (!FLAG_gdbjit) return; |
- // Force initialization of line_ends array. |
- GetScriptLineNumber(script, 0); |
+ Script::InitLineEnds(script); |
if (!name.is_null() && name->IsString()) { |
SmartArrayPointer<char> name_cstring = |