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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 function_name_(nullptr), | 61 function_name_(nullptr), |
62 literal_(nullptr), | 62 literal_(nullptr) {} |
63 scope_(nullptr) {} | |
64 | 63 |
65 ParseInfo::ParseInfo(Zone* zone, Handle<JSFunction> function) | 64 ParseInfo::ParseInfo(Zone* zone, Handle<JSFunction> function) |
66 : ParseInfo(zone, Handle<SharedFunctionInfo>(function->shared())) { | 65 : ParseInfo(zone, Handle<SharedFunctionInfo>(function->shared())) { |
67 set_context(Handle<Context>(function->context())); | 66 set_context(Handle<Context>(function->context())); |
68 } | 67 } |
69 | 68 |
70 | 69 |
71 ParseInfo::ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared) | 70 ParseInfo::ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared) |
72 : ParseInfo(zone) { | 71 : ParseInfo(zone) { |
73 isolate_ = shared->GetIsolate(); | 72 isolate_ = shared->GetIsolate(); |
(...skipping 7091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7165 node->Print(Isolate::Current()); | 7164 node->Print(Isolate::Current()); |
7166 } | 7165 } |
7167 #endif // DEBUG | 7166 #endif // DEBUG |
7168 | 7167 |
7169 #undef CHECK_OK | 7168 #undef CHECK_OK |
7170 #undef CHECK_OK_VOID | 7169 #undef CHECK_OK_VOID |
7171 #undef CHECK_FAILED | 7170 #undef CHECK_FAILED |
7172 | 7171 |
7173 } // namespace internal | 7172 } // namespace internal |
7174 } // namespace v8 | 7173 } // namespace v8 |
OLD | NEW |