Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2291)

Side by Side Diff: src/parsing/parse-info.cc

Issue 2618553004: [compiler] Collect eager inner functions for compilation during renumbering. (Closed)
Patch Set: Remove unused variable Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/parsing/parse-info.h" 5 #include "src/parsing/parse-info.h"
6 6
7 #include "src/ast/ast-value-factory.h" 7 #include "src/ast/ast-value-factory.h"
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/objects-inl.h" 9 #include "src/objects-inl.h"
10 10
(...skipping 15 matching lines...) Expand all
26 hash_seed_(0), 26 hash_seed_(0),
27 compiler_hints_(0), 27 compiler_hints_(0),
28 start_position_(0), 28 start_position_(0),
29 end_position_(0), 29 end_position_(0),
30 function_literal_id_(FunctionLiteral::kIdTypeInvalid), 30 function_literal_id_(FunctionLiteral::kIdTypeInvalid),
31 max_function_literal_id_(FunctionLiteral::kIdTypeInvalid), 31 max_function_literal_id_(FunctionLiteral::kIdTypeInvalid),
32 isolate_(nullptr), 32 isolate_(nullptr),
33 cached_data_(nullptr), 33 cached_data_(nullptr),
34 ast_value_factory_(nullptr), 34 ast_value_factory_(nullptr),
35 function_name_(nullptr), 35 function_name_(nullptr),
36 literal_(nullptr) {} 36 literal_(nullptr),
37 eager_inner_function_literals_(zone) {}
37 38
38 ParseInfo::ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared) 39 ParseInfo::ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared)
39 : ParseInfo(zone) { 40 : ParseInfo(zone) {
40 isolate_ = shared->GetIsolate(); 41 isolate_ = shared->GetIsolate();
41 42
42 set_toplevel(shared->is_toplevel()); 43 set_toplevel(shared->is_toplevel());
43 set_allow_lazy_parsing(FLAG_lazy_inner_functions); 44 set_allow_lazy_parsing(FLAG_lazy_inner_functions);
44 set_hash_seed(isolate_->heap()->HashSeed()); 45 set_hash_seed(isolate_->heap()->HashSeed());
45 set_is_named_expression(shared->is_named_expression()); 46 set_is_named_expression(shared->is_named_expression());
46 set_calls_eval(shared->scope_info()->CallsEval()); 47 set_calls_eval(shared->scope_info()->CallsEval());
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 109 }
109 110
110 #ifdef DEBUG 111 #ifdef DEBUG
111 bool ParseInfo::script_is_native() const { 112 bool ParseInfo::script_is_native() const {
112 return script_->type() == Script::TYPE_NATIVE; 113 return script_->type() == Script::TYPE_NATIVE;
113 } 114 }
114 #endif // DEBUG 115 #endif // DEBUG
115 116
116 } // namespace internal 117 } // namespace internal
117 } // namespace v8 118 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698