OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef VM_PARSER_H_ | 5 #ifndef VM_PARSER_H_ |
6 #define VM_PARSER_H_ | 6 #define VM_PARSER_H_ |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
9 | 9 |
10 #include "platform/assert.h" | 10 #include "platform/assert.h" |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 bool have_seen_await() const { return have_seen_await_expr_; } | 223 bool have_seen_await() const { return have_seen_await_expr_; } |
224 | 224 |
225 Thread* thread() const { return thread_; } | 225 Thread* thread() const { return thread_; } |
226 Isolate* isolate() const { return thread_->isolate(); } | 226 Isolate* isolate() const { return thread_->isolate(); } |
227 Zone* zone() const { return thread_->zone(); } | 227 Zone* zone() const { return thread_->zone(); } |
228 | 228 |
229 // Adds only relevant fields: field must be unique and its guarded_cid() | 229 // Adds only relevant fields: field must be unique and its guarded_cid() |
230 // relevant. | 230 // relevant. |
231 void AddToGuardedFields(const Field* field) const; | 231 void AddToGuardedFields(const Field* field) const; |
232 | 232 |
| 233 void Bailout(const char* origin, const char* reason) const; |
| 234 |
233 private: | 235 private: |
234 Thread* thread_; | 236 Thread* thread_; |
235 const Function& function_; | 237 const Function& function_; |
236 Code& code_; | 238 Code& code_; |
237 SequenceNode* node_sequence_; | 239 SequenceNode* node_sequence_; |
238 RegExpCompileData* regexp_compile_data_; | 240 RegExpCompileData* regexp_compile_data_; |
239 LocalVariable* instantiator_; | 241 LocalVariable* instantiator_; |
240 LocalVariable* current_context_var_; | 242 LocalVariable* current_context_var_; |
241 LocalVariable* expression_temp_var_; | 243 LocalVariable* expression_temp_var_; |
242 LocalVariable* finally_return_temp_var_; | 244 LocalVariable* finally_return_temp_var_; |
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
979 | 981 |
980 intptr_t recursion_counter_; | 982 intptr_t recursion_counter_; |
981 friend class RecursionChecker; | 983 friend class RecursionChecker; |
982 | 984 |
983 DISALLOW_COPY_AND_ASSIGN(Parser); | 985 DISALLOW_COPY_AND_ASSIGN(Parser); |
984 }; | 986 }; |
985 | 987 |
986 } // namespace dart | 988 } // namespace dart |
987 | 989 |
988 #endif // VM_PARSER_H_ | 990 #endif // VM_PARSER_H_ |
OLD | NEW |