| 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_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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 | 203 |
| 204 void GenerateCall(intptr_t token_index, | 204 void GenerateCall(intptr_t token_index, |
| 205 const ExternalLabel* ext_label, | 205 const ExternalLabel* ext_label, |
| 206 PcDescriptors::Kind desc_kind); | 206 PcDescriptors::Kind desc_kind); |
| 207 void GenerateCallRuntime(intptr_t node_id, | 207 void GenerateCallRuntime(intptr_t node_id, |
| 208 intptr_t token_index, | 208 intptr_t token_index, |
| 209 const RuntimeEntry& entry); | 209 const RuntimeEntry& entry); |
| 210 | 210 |
| 211 void GenerateInlinedFinallyBlocks(SourceLabel* label); | 211 void GenerateInlinedFinallyBlocks(SourceLabel* label); |
| 212 | 212 |
| 213 void HandleBackwardBranch(intptr_t loop_id, intptr_t token_index); |
| 214 |
| 213 void ErrorMsg(intptr_t token_index, const char* format, ...); | 215 void ErrorMsg(intptr_t token_index, const char* format, ...); |
| 214 | 216 |
| 215 int generate_next_try_index() { return try_index_ += 1; } | 217 int generate_next_try_index() { return try_index_ += 1; } |
| 216 | 218 |
| 217 void MarkDeoptPoint(intptr_t node_id, intptr_t token_index); | 219 void MarkDeoptPoint(intptr_t node_id, intptr_t token_index); |
| 218 void AddCurrentDescriptor(PcDescriptors::Kind kind, | 220 void AddCurrentDescriptor(PcDescriptors::Kind kind, |
| 219 intptr_t node_id, | 221 intptr_t node_id, |
| 220 intptr_t token_index); | 222 intptr_t token_index); |
| 221 | 223 |
| 222 Assembler* assembler_; | 224 Assembler* assembler_; |
| 223 const ParsedFunction& parsed_function_; | 225 const ParsedFunction& parsed_function_; |
| 224 intptr_t locals_space_size_; | 226 intptr_t locals_space_size_; |
| 225 CodeGeneratorState* state_; | 227 CodeGeneratorState* state_; |
| 226 DescriptorList* pc_descriptors_list_; | 228 DescriptorList* pc_descriptors_list_; |
| 227 HandlerList* exception_handlers_list_; | 229 HandlerList* exception_handlers_list_; |
| 228 int try_index_; | 230 int try_index_; |
| 229 | 231 |
| 230 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); | 232 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); |
| 231 }; | 233 }; |
| 232 | 234 |
| 233 } // namespace dart | 235 } // namespace dart |
| 234 | 236 |
| 235 #endif // VM_CODE_GENERATOR_IA32_H_ | 237 #endif // VM_CODE_GENERATOR_IA32_H_ |
| OLD | NEW |