Chromium Code Reviews| Index: src/parsing/parse-info.cc |
| diff --git a/src/parsing/parse-info.cc b/src/parsing/parse-info.cc |
| index f002ad4d3144b20acdf879b07f708ed2080d37e2..70dc53747a3d432fed3f4446bf81dfcea237e570 100644 |
| --- a/src/parsing/parse-info.cc |
| +++ b/src/parsing/parse-info.cc |
| @@ -38,6 +38,7 @@ ParseInfo::ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared) |
| : ParseInfo(zone) { |
| isolate_ = shared->GetIsolate(); |
| + if (shared->is_toplevel()) set_toplevel(); |
| set_allow_lazy_parsing(FLAG_lazy_inner_functions); |
| set_hash_seed(isolate_->heap()->HashSeed()); |
| set_is_named_expression(shared->is_named_expression()); |
| @@ -66,6 +67,7 @@ ParseInfo::ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared) |
| ParseInfo::ParseInfo(Zone* zone, Handle<Script> script) : ParseInfo(zone) { |
| isolate_ = script->GetIsolate(); |
| + set_toplevel(); |
|
marja
2016/10/12 11:58:57
... and then this can go away since it's set in th
|
| set_hash_seed(isolate_->heap()->HashSeed()); |
| set_stack_limit(isolate_->stack_guard()->real_climit()); |
| set_unicode_cache(isolate_->unicode_cache()); |