Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 32 literal_(nullptr) {} | 32 literal_(nullptr) {} |
| 33 | 33 |
| 34 ParseInfo::ParseInfo(Zone* zone, Handle<JSFunction> function) | 34 ParseInfo::ParseInfo(Zone* zone, Handle<JSFunction> function) |
| 35 : ParseInfo(zone, Handle<SharedFunctionInfo>(function->shared())) {} | 35 : ParseInfo(zone, Handle<SharedFunctionInfo>(function->shared())) {} |
| 36 | 36 |
| 37 ParseInfo::ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared) | 37 ParseInfo::ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared) |
| 38 : ParseInfo(zone) { | 38 : ParseInfo(zone) { |
| 39 isolate_ = shared->GetIsolate(); | 39 isolate_ = shared->GetIsolate(); |
| 40 | 40 |
| 41 set_lazy(); | 41 set_lazy(); |
| 42 set_allow_lazy_parsing(true); | |
|
jochen (gone - plz use gerrit)
2016/10/10 12:33:25
what's the difference between set_lazy and set_all
Toon Verwaest
2016/10/10 14:18:52
is_lazy is a misnomer. It should be called "eager_
| |
| 42 set_hash_seed(isolate_->heap()->HashSeed()); | 43 set_hash_seed(isolate_->heap()->HashSeed()); |
| 43 set_is_named_expression(shared->is_named_expression()); | 44 set_is_named_expression(shared->is_named_expression()); |
| 44 set_calls_eval(shared->scope_info()->CallsEval()); | 45 set_calls_eval(shared->scope_info()->CallsEval()); |
| 45 set_compiler_hints(shared->compiler_hints()); | 46 set_compiler_hints(shared->compiler_hints()); |
| 46 set_start_position(shared->start_position()); | 47 set_start_position(shared->start_position()); |
| 47 set_end_position(shared->end_position()); | 48 set_end_position(shared->end_position()); |
| 48 set_stack_limit(isolate_->stack_guard()->real_climit()); | 49 set_stack_limit(isolate_->stack_guard()->real_climit()); |
| 49 set_unicode_cache(isolate_->unicode_cache()); | 50 set_unicode_cache(isolate_->unicode_cache()); |
| 50 set_language_mode(shared->language_mode()); | 51 set_language_mode(shared->language_mode()); |
| 51 set_shared_info(shared); | 52 set_shared_info(shared); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 104 } | 105 } |
| 105 | 106 |
| 106 #ifdef DEBUG | 107 #ifdef DEBUG |
| 107 bool ParseInfo::script_is_native() const { | 108 bool ParseInfo::script_is_native() const { |
| 108 return script_->type() == Script::TYPE_NATIVE; | 109 return script_->type() == Script::TYPE_NATIVE; |
| 109 } | 110 } |
| 110 #endif // DEBUG | 111 #endif // DEBUG |
| 111 | 112 |
| 112 } // namespace internal | 113 } // namespace internal |
| 113 } // namespace v8 | 114 } // namespace v8 |
| OLD | NEW |