| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 7 | 7 |
| 8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 const Register kTempReg = EDI; | 289 const Register kTempReg = EDI; |
| 290 return GenerateCallSubtypeTestStub(kTestTypeOneArg, | 290 return GenerateCallSubtypeTestStub(kTestTypeOneArg, |
| 291 kInstanceReg, | 291 kInstanceReg, |
| 292 kTypeArgumentsReg, | 292 kTypeArgumentsReg, |
| 293 kTempReg, | 293 kTempReg, |
| 294 is_instance_lbl, | 294 is_instance_lbl, |
| 295 is_not_instance_lbl); | 295 is_not_instance_lbl); |
| 296 } | 296 } |
| 297 | 297 |
| 298 | 298 |
| 299 // Generates inlined check if 'type' is a type parameter or type itsef | 299 // Generates inlined check if 'type' is a type parameter or type itself |
| 300 // EAX: instance (preserved). | 300 // EAX: instance (preserved). |
| 301 // Clobbers EDX, EDI, ECX. | 301 // Clobbers EDX, EDI, ECX. |
| 302 RawSubtypeTestCache* FlowGraphCompiler::GenerateUninstantiatedTypeTest( | 302 RawSubtypeTestCache* FlowGraphCompiler::GenerateUninstantiatedTypeTest( |
| 303 intptr_t token_pos, | 303 intptr_t token_pos, |
| 304 const AbstractType& type, | 304 const AbstractType& type, |
| 305 Label* is_instance_lbl, | 305 Label* is_instance_lbl, |
| 306 Label* is_not_instance_lbl) { | 306 Label* is_not_instance_lbl) { |
| 307 __ Comment("UninstantiatedTypeTest"); | 307 __ Comment("UninstantiatedTypeTest"); |
| 308 ASSERT(!type.IsInstantiated()); | 308 ASSERT(!type.IsInstantiated()); |
| 309 // Skip check if destination is a dynamic type. | 309 // Skip check if destination is a dynamic type. |
| (...skipping 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1776 __ movups(reg, Address(ESP, 0)); | 1776 __ movups(reg, Address(ESP, 0)); |
| 1777 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1777 __ addl(ESP, Immediate(kFpuRegisterSize)); |
| 1778 } | 1778 } |
| 1779 | 1779 |
| 1780 | 1780 |
| 1781 #undef __ | 1781 #undef __ |
| 1782 | 1782 |
| 1783 } // namespace dart | 1783 } // namespace dart |
| 1784 | 1784 |
| 1785 #endif // defined TARGET_ARCH_IA32 | 1785 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |