OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/parser.h" | 5 #include "src/parsing/parser.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "src/api.h" | 9 #include "src/api.h" |
10 #include "src/ast/ast.h" | 10 #include "src/ast/ast.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 script_scope_(nullptr), | 51 script_scope_(nullptr), |
52 unicode_cache_(nullptr), | 52 unicode_cache_(nullptr), |
53 stack_limit_(0), | 53 stack_limit_(0), |
54 hash_seed_(0), | 54 hash_seed_(0), |
55 compiler_hints_(0), | 55 compiler_hints_(0), |
56 start_position_(0), | 56 start_position_(0), |
57 end_position_(0), | 57 end_position_(0), |
58 isolate_(nullptr), | 58 isolate_(nullptr), |
59 cached_data_(nullptr), | 59 cached_data_(nullptr), |
60 ast_value_factory_(nullptr), | 60 ast_value_factory_(nullptr), |
61 literal_(nullptr) {} | 61 literal_(nullptr), |
| 62 scope_(nullptr) {} |
62 | 63 |
63 ParseInfo::ParseInfo(Zone* zone, Handle<JSFunction> function) | 64 ParseInfo::ParseInfo(Zone* zone, Handle<JSFunction> function) |
64 : ParseInfo(zone, Handle<SharedFunctionInfo>(function->shared())) { | 65 : ParseInfo(zone, Handle<SharedFunctionInfo>(function->shared())) { |
65 set_context(Handle<Context>(function->context())); | 66 set_context(Handle<Context>(function->context())); |
66 } | 67 } |
67 | 68 |
68 | 69 |
69 ParseInfo::ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared) | 70 ParseInfo::ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared) |
70 : ParseInfo(zone) { | 71 : ParseInfo(zone) { |
71 isolate_ = shared->GetIsolate(); | 72 isolate_ = shared->GetIsolate(); |
(...skipping 7087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7159 node->Print(Isolate::Current()); | 7160 node->Print(Isolate::Current()); |
7160 } | 7161 } |
7161 #endif // DEBUG | 7162 #endif // DEBUG |
7162 | 7163 |
7163 #undef CHECK_OK | 7164 #undef CHECK_OK |
7164 #undef CHECK_OK_VOID | 7165 #undef CHECK_OK_VOID |
7165 #undef CHECK_FAILED | 7166 #undef CHECK_FAILED |
7166 | 7167 |
7167 } // namespace internal | 7168 } // namespace internal |
7168 } // namespace v8 | 7169 } // namespace v8 |
OLD | NEW |