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/api.h" | 7 #include "src/api.h" |
8 #include "src/ast/ast-value-factory.h" | 8 #include "src/ast/ast-value-factory.h" |
9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
10 #include "src/heap/heap-inl.h" | 10 #include "src/heap/heap-inl.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 extension_(nullptr), | 24 extension_(nullptr), |
25 compile_options_(ScriptCompiler::kNoCompileOptions), | 25 compile_options_(ScriptCompiler::kNoCompileOptions), |
26 script_scope_(nullptr), | 26 script_scope_(nullptr), |
27 asm_function_scope_(nullptr), | 27 asm_function_scope_(nullptr), |
28 unicode_cache_(nullptr), | 28 unicode_cache_(nullptr), |
29 stack_limit_(0), | 29 stack_limit_(0), |
30 hash_seed_(0), | 30 hash_seed_(0), |
31 compiler_hints_(0), | 31 compiler_hints_(0), |
32 start_position_(0), | 32 start_position_(0), |
33 end_position_(0), | 33 end_position_(0), |
| 34 parameters_end_pos_(kNoSourcePosition), |
34 function_literal_id_(FunctionLiteral::kIdTypeInvalid), | 35 function_literal_id_(FunctionLiteral::kIdTypeInvalid), |
35 max_function_literal_id_(FunctionLiteral::kIdTypeInvalid), | 36 max_function_literal_id_(FunctionLiteral::kIdTypeInvalid), |
36 isolate_(nullptr), | 37 isolate_(nullptr), |
37 cached_data_(nullptr), | 38 cached_data_(nullptr), |
38 ast_value_factory_(nullptr), | 39 ast_value_factory_(nullptr), |
39 function_name_(nullptr), | 40 function_name_(nullptr), |
40 literal_(nullptr), | 41 literal_(nullptr), |
41 deferred_handles_(nullptr) {} | 42 deferred_handles_(nullptr) {} |
42 | 43 |
43 ParseInfo::ParseInfo(Handle<SharedFunctionInfo> shared) | 44 ParseInfo::ParseInfo(Handle<SharedFunctionInfo> shared) |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 } | 123 } |
123 | 124 |
124 #ifdef DEBUG | 125 #ifdef DEBUG |
125 bool ParseInfo::script_is_native() const { | 126 bool ParseInfo::script_is_native() const { |
126 return script_->type() == Script::TYPE_NATIVE; | 127 return script_->type() == Script::TYPE_NATIVE; |
127 } | 128 } |
128 #endif // DEBUG | 129 #endif // DEBUG |
129 | 130 |
130 } // namespace internal | 131 } // namespace internal |
131 } // namespace v8 | 132 } // namespace v8 |
OLD | NEW |