Chromium Code Reviews| Index: src/factory.cc |
| diff --git a/src/factory.cc b/src/factory.cc |
| index 749188f6bf27fc514b196624e82cf0e5d74a36ab..6aef6a87bca2fd884070f6e72f335178da01dbe4 100644 |
| --- a/src/factory.cc |
| +++ b/src/factory.cc |
| @@ -1032,6 +1032,7 @@ Handle<Script> Factory::NewScript(Handle<String> source) { |
| script->set_type(Script::TYPE_NORMAL); |
| script->set_wrapper(heap->undefined_value()); |
| script->set_line_ends(heap->undefined_value()); |
| + if (FLAG_trace_deopt) Script::InitLineEnds(script); |
|
Yang
2016/11/08 13:32:13
Can we do this at the end so that we have a fully
|
| script->set_eval_from_shared(heap->undefined_value()); |
| script->set_eval_from_position(0); |
| script->set_shared_function_infos(Smi::kZero); |