| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 193 |
| 194 void GenerateCall(intptr_t token_index, | 194 void GenerateCall(intptr_t token_index, |
| 195 const ExternalLabel* ext_label, | 195 const ExternalLabel* ext_label, |
| 196 PcDescriptors::Kind desc_kind); | 196 PcDescriptors::Kind desc_kind); |
| 197 void GenerateCallRuntime(intptr_t node_id, | 197 void GenerateCallRuntime(intptr_t node_id, |
| 198 intptr_t token_index, | 198 intptr_t token_index, |
| 199 const RuntimeEntry& entry); | 199 const RuntimeEntry& entry); |
| 200 | 200 |
| 201 void GenerateInlinedFinallyBlocks(SourceLabel* label); | 201 void GenerateInlinedFinallyBlocks(SourceLabel* label); |
| 202 | 202 |
| 203 void GenerateInlineInstanceof(intptr_t node_id, |
| 204 intptr_t token_index, |
| 205 const AbstractType& type, |
| 206 Label* is_instance_lbl, |
| 207 Label* is_not_instance_lbl); |
| 208 |
| 209 void GenerateInstantiatedTypeWithArgumentsTest(const AbstractType& dst_type, |
| 210 Label* is_instance_lbl, |
| 211 Label* is_not_instance_lbl); |
| 212 void GenerateInstantiatedTypeNoArgumentsTest(intptr_t node_id, |
| 213 intptr_t token_index, |
| 214 const AbstractType& dst_type, |
| 215 Label* is_instance_lbl, |
| 216 Label* is_not_instance_lbl); |
| 217 void GenerateUninstantiatedTypeTest(const AbstractType& dst_type, |
| 218 intptr_t token_index, |
| 219 Label* is_instance_lbl); |
| 220 |
| 203 void HandleBackwardBranch(intptr_t loop_id, intptr_t token_index); | 221 void HandleBackwardBranch(intptr_t loop_id, intptr_t token_index); |
| 204 | 222 |
| 205 void ErrorMsg(intptr_t token_index, const char* format, ...); | 223 void ErrorMsg(intptr_t token_index, const char* format, ...); |
| 206 | 224 |
| 207 int generate_next_try_index() { return try_index_ += 1; } | 225 int generate_next_try_index() { return try_index_ += 1; } |
| 208 | 226 |
| 209 void MarkDeoptPoint(intptr_t node_id, intptr_t token_index); | 227 void MarkDeoptPoint(intptr_t node_id, intptr_t token_index); |
| 210 void AddCurrentDescriptor(PcDescriptors::Kind kind, | 228 void AddCurrentDescriptor(PcDescriptors::Kind kind, |
| 211 intptr_t node_id, | 229 intptr_t node_id, |
| 212 intptr_t token_index); | 230 intptr_t token_index); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 225 // The runtime context level is only incremented when a new context is | 243 // The runtime context level is only incremented when a new context is |
| 226 // allocated and chained to the list of contexts. | 244 // allocated and chained to the list of contexts. |
| 227 intptr_t context_level_; | 245 intptr_t context_level_; |
| 228 | 246 |
| 229 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); | 247 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); |
| 230 }; | 248 }; |
| 231 | 249 |
| 232 } // namespace dart | 250 } // namespace dart |
| 233 | 251 |
| 234 #endif // VM_CODE_GENERATOR_IA32_H_ | 252 #endif // VM_CODE_GENERATOR_IA32_H_ |
| OLD | NEW |