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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
135 } | 135 } |
136 void AddDeferredPrefix(const LibraryPrefix& prefix); | 136 void AddDeferredPrefix(const LibraryPrefix& prefix); |
137 | 137 |
138 int first_parameter_index() const { return first_parameter_index_; } | 138 int first_parameter_index() const { return first_parameter_index_; } |
139 int first_stack_local_index() const { return first_stack_local_index_; } | 139 int first_stack_local_index() const { return first_stack_local_index_; } |
140 int num_copied_params() const { return num_copied_params_; } | 140 int num_copied_params() const { return num_copied_params_; } |
141 int num_stack_locals() const { return num_stack_locals_; } | 141 int num_stack_locals() const { return num_stack_locals_; } |
142 | 142 |
143 void AllocateVariables(); | 143 void AllocateVariables(); |
144 | 144 |
145 // TODO(jgruber): Refactor this, mostly copied from AllocateVariables. | |
146 // Sets variables required for reserving enough space for local variables. | |
147 void AllocateIrregexpVariables(intptr_t num_stack_locals); | |
Florian Schneider
2014/09/16 11:11:48
Why does AllocateVariables not work?
jgruber1
2014/09/22 18:58:04
AllocateVariables calculates the number of locals,
| |
148 | |
145 void set_await_temps_scope(LocalScope* scope) { | 149 void set_await_temps_scope(LocalScope* scope) { |
146 ASSERT(await_temps_scope_ == NULL); | 150 ASSERT(await_temps_scope_ == NULL); |
147 await_temps_scope_ = scope; | 151 await_temps_scope_ = scope; |
148 } | 152 } |
149 LocalScope* await_temps_scope() const { | 153 LocalScope* await_temps_scope() const { |
150 ASSERT(await_temps_scope_ != NULL); | 154 ASSERT(await_temps_scope_ != NULL); |
151 return await_temps_scope_; | 155 return await_temps_scope_; |
152 } | 156 } |
153 | 157 |
154 void record_await() { | 158 void record_await() { |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
816 int16_t last_used_try_index_; | 820 int16_t last_used_try_index_; |
817 | 821 |
818 bool unregister_pending_function_; | 822 bool unregister_pending_function_; |
819 | 823 |
820 DISALLOW_COPY_AND_ASSIGN(Parser); | 824 DISALLOW_COPY_AND_ASSIGN(Parser); |
821 }; | 825 }; |
822 | 826 |
823 } // namespace dart | 827 } // namespace dart |
824 | 828 |
825 #endif // VM_PARSER_H_ | 829 #endif // VM_PARSER_H_ |
OLD | NEW |