OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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_CODE_GENERATOR_IA32_H_ | 5 #ifndef VM_CODE_GENERATOR_IA32_H_ |
6 #define VM_CODE_GENERATOR_IA32_H_ | 6 #define VM_CODE_GENERATOR_IA32_H_ |
7 | 7 |
8 #ifndef VM_CODE_GENERATOR_H_ | 8 #ifndef VM_CODE_GENERATOR_H_ |
9 #error Do not include code_generator_ia32.h directly; use code_generator.h. | 9 #error Do not include code_generator_ia32.h directly; use code_generator.h. |
10 #endif | 10 #endif |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 void GenerateTypeArguments(ConstructorCallNode* node, | 194 void GenerateTypeArguments(ConstructorCallNode* node, |
195 bool is_cls_parameterized); | 195 bool is_cls_parameterized); |
196 | 196 |
197 void TestClassAndJump(const Class& cls, Label *label); | 197 void TestClassAndJump(const Class& cls, Label *label); |
198 | 198 |
199 intptr_t locals_space_size() const { return locals_space_size_; } | 199 intptr_t locals_space_size() const { return locals_space_size_; } |
200 void set_locals_space_size(intptr_t value) { locals_space_size_ = value; } | 200 void set_locals_space_size(intptr_t value) { locals_space_size_ = value; } |
201 | 201 |
202 bool IsResultNeeded(AstNode* node) const; | 202 bool IsResultNeeded(AstNode* node) const; |
203 | 203 |
204 void GenerateCall(intptr_t token_index, const ExternalLabel* ext_label); | 204 void GenerateCall(intptr_t token_index, |
| 205 const ExternalLabel* ext_label, |
| 206 PcDescriptors::Kind desc_kind); |
205 void GenerateCallRuntime(intptr_t node_id, | 207 void GenerateCallRuntime(intptr_t node_id, |
206 intptr_t token_index, | 208 intptr_t token_index, |
207 const RuntimeEntry& entry); | 209 const RuntimeEntry& entry); |
208 | 210 |
209 void GenerateInlinedFinallyBlocks(SourceLabel* label); | 211 void GenerateInlinedFinallyBlocks(SourceLabel* label); |
210 | 212 |
211 void ErrorMsg(intptr_t token_index, const char* format, ...); | 213 void ErrorMsg(intptr_t token_index, const char* format, ...); |
212 | 214 |
213 int generate_next_try_index() { return try_index_ += 1; } | 215 int generate_next_try_index() { return try_index_ += 1; } |
214 | 216 |
215 void MarkDeoptPoint(intptr_t node_id, intptr_t token_index); | 217 void MarkDeoptPoint(intptr_t node_id, intptr_t token_index); |
216 void AddCurrentDescriptor(PcDescriptors::Kind kind, | 218 void AddCurrentDescriptor(PcDescriptors::Kind kind, |
217 intptr_t node_id, | 219 intptr_t node_id, |
218 intptr_t token_index); | 220 intptr_t token_index); |
219 | 221 |
220 Assembler* assembler_; | 222 Assembler* assembler_; |
221 const ParsedFunction& parsed_function_; | 223 const ParsedFunction& parsed_function_; |
222 intptr_t locals_space_size_; | 224 intptr_t locals_space_size_; |
223 CodeGeneratorState* state_; | 225 CodeGeneratorState* state_; |
224 DescriptorList* pc_descriptors_list_; | 226 DescriptorList* pc_descriptors_list_; |
225 HandlerList* exception_handlers_list_; | 227 HandlerList* exception_handlers_list_; |
226 int try_index_; | 228 int try_index_; |
227 | 229 |
228 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); | 230 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); |
229 }; | 231 }; |
230 | 232 |
231 } // namespace dart | 233 } // namespace dart |
232 | 234 |
233 #endif // VM_CODE_GENERATOR_IA32_H_ | 235 #endif // VM_CODE_GENERATOR_IA32_H_ |
OLD | NEW |