Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 05ca9bb349757fa9d1759d2112209c91bdd69e9c..b308defb700fd97263597ddf5f475b5c3d2f6016 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -1280,6 +1280,7 @@ MaybeHandle<JSFunction> Compiler::GetFunctionFromEval( |
Handle<Script> script; |
if (!maybe_shared_info.ToHandle(&shared_info)) { |
script = isolate->factory()->NewScript(source); |
+ if (FLAG_trace_deopt) Script::InitLineEnds(script); |
if (!script_name.is_null()) { |
script->set_name(*script_name); |
script->set_line_offset(line_offset); |
@@ -1439,6 +1440,7 @@ Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfoForScript( |
// Create a script object describing the script to be compiled. |
Handle<Script> script = isolate->factory()->NewScript(source); |
+ if (FLAG_trace_deopt) Script::InitLineEnds(script); |
if (natives == NATIVES_CODE) { |
script->set_type(Script::TYPE_NATIVE); |
script->set_hide_source(true); |