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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 } | 163 } |
163 | 164 |
164 #ifdef DEBUG | 165 #ifdef DEBUG |
165 bool ParseInfo::script_is_native() const { | 166 bool ParseInfo::script_is_native() const { |
166 return script_->type() == Script::TYPE_NATIVE; | 167 return script_->type() == Script::TYPE_NATIVE; |
167 } | 168 } |
168 #endif // DEBUG | 169 #endif // DEBUG |
169 | 170 |
170 } // namespace internal | 171 } // namespace internal |
171 } // namespace v8 | 172 } // namespace v8 |
OLD | NEW |