| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 void AllocateVariables(); | 159 void AllocateVariables(); |
| 160 void AllocateIrregexpVariables(intptr_t num_stack_locals); | 160 void AllocateIrregexpVariables(intptr_t num_stack_locals); |
| 161 | 161 |
| 162 void record_await() { have_seen_await_expr_ = true; } | 162 void record_await() { have_seen_await_expr_ = true; } |
| 163 bool have_seen_await() const { return have_seen_await_expr_; } | 163 bool have_seen_await() const { return have_seen_await_expr_; } |
| 164 | 164 |
| 165 Thread* thread() const { return thread_; } | 165 Thread* thread() const { return thread_; } |
| 166 Isolate* isolate() const { return thread_->isolate(); } | 166 Isolate* isolate() const { return thread_->isolate(); } |
| 167 Zone* zone() const { return thread_->zone(); } | 167 Zone* zone() const { return thread_->zone(); } |
| 168 | 168 |
| 169 // Adds only relevant fields: field must be unique and its guarded_cid() |
| 170 // relevant. |
| 171 void AddToGuardedFields(const Field* field) const; |
| 172 |
| 169 private: | 173 private: |
| 170 Thread* thread_; | 174 Thread* thread_; |
| 171 const Function& function_; | 175 const Function& function_; |
| 172 Code& code_; | 176 Code& code_; |
| 173 SequenceNode* node_sequence_; | 177 SequenceNode* node_sequence_; |
| 174 RegExpCompileData* regexp_compile_data_; | 178 RegExpCompileData* regexp_compile_data_; |
| 175 LocalVariable* instantiator_; | 179 LocalVariable* instantiator_; |
| 176 LocalVariable* current_context_var_; | 180 LocalVariable* current_context_var_; |
| 177 LocalVariable* expression_temp_var_; | 181 LocalVariable* expression_temp_var_; |
| 178 LocalVariable* finally_return_temp_var_; | 182 LocalVariable* finally_return_temp_var_; |
| (...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 | 915 |
| 912 intptr_t recursion_counter_; | 916 intptr_t recursion_counter_; |
| 913 friend class RecursionChecker; | 917 friend class RecursionChecker; |
| 914 | 918 |
| 915 DISALLOW_COPY_AND_ASSIGN(Parser); | 919 DISALLOW_COPY_AND_ASSIGN(Parser); |
| 916 }; | 920 }; |
| 917 | 921 |
| 918 } // namespace dart | 922 } // namespace dart |
| 919 | 923 |
| 920 #endif // VM_PARSER_H_ | 924 #endif // VM_PARSER_H_ |
| OLD | NEW |