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_FLOW_GRAPH_COMPILER_IA32_H_ | 5 #ifndef VM_FLOW_GRAPH_COMPILER_IA32_H_ |
6 #define VM_FLOW_GRAPH_COMPILER_IA32_H_ | 6 #define VM_FLOW_GRAPH_COMPILER_IA32_H_ |
7 | 7 |
8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ | 8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ |
9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h. | 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h. |
10 #endif | 10 #endif |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 kTestTypeThreeArgs, | 290 kTestTypeThreeArgs, |
291 }; | 291 }; |
292 | 292 |
293 RawSubtypeTestCache* GenerateCallSubtypeTestStub(TypeTestStubKind test_kind, | 293 RawSubtypeTestCache* GenerateCallSubtypeTestStub(TypeTestStubKind test_kind, |
294 Register instance_reg, | 294 Register instance_reg, |
295 Register type_arguments_reg, | 295 Register type_arguments_reg, |
296 Register temp_reg, | 296 Register temp_reg, |
297 Label* is_instance_lbl, | 297 Label* is_instance_lbl, |
298 Label* is_not_instance_lbl); | 298 Label* is_not_instance_lbl); |
299 | 299 |
| 300 // Returns true if checking against this type is a direct class id comparison. |
| 301 bool TypeCheckAsClassEquality(const AbstractType& type); |
| 302 |
300 void GenerateBoolToJump(Register bool_reg, Label* is_true, Label* is_false); | 303 void GenerateBoolToJump(Register bool_reg, Label* is_true, Label* is_false); |
301 | 304 |
302 void CopyParameters(); | 305 void CopyParameters(); |
303 | 306 |
304 void GenerateInlinedGetter(intptr_t offset); | 307 void GenerateInlinedGetter(intptr_t offset); |
305 void GenerateInlinedSetter(intptr_t offset); | 308 void GenerateInlinedSetter(intptr_t offset); |
306 | 309 |
307 // Perform a greedy local register allocation. Consider all registers free. | 310 // Perform a greedy local register allocation. Consider all registers free. |
308 void AllocateRegistersLocally(Instruction* instr); | 311 void AllocateRegistersLocally(Instruction* instr); |
309 | 312 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 // that should be used when deoptimizing we store it in this variable. | 348 // that should be used when deoptimizing we store it in this variable. |
346 // In future AddDeoptStub should be moved out of the instruction template. | 349 // In future AddDeoptStub should be moved out of the instruction template. |
347 Environment* pending_deoptimization_env_; | 350 Environment* pending_deoptimization_env_; |
348 | 351 |
349 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 352 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
350 }; | 353 }; |
351 | 354 |
352 } // namespace dart | 355 } // namespace dart |
353 | 356 |
354 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ | 357 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ |
OLD | NEW |