| 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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 const Register kTempReg = R10; | 288 const Register kTempReg = R10; |
| 289 return GenerateCallSubtypeTestStub(kTestTypeOneArg, | 289 return GenerateCallSubtypeTestStub(kTestTypeOneArg, |
| 290 kInstanceReg, | 290 kInstanceReg, |
| 291 kTypeArgumentsReg, | 291 kTypeArgumentsReg, |
| 292 kTempReg, | 292 kTempReg, |
| 293 is_instance_lbl, | 293 is_instance_lbl, |
| 294 is_not_instance_lbl); | 294 is_not_instance_lbl); |
| 295 } | 295 } |
| 296 | 296 |
| 297 | 297 |
| 298 // Generates inlined check if 'type' is a type parameter or type itsef | 298 // Generates inlined check if 'type' is a type parameter or type itself |
| 299 // RAX: instance (preserved). | 299 // RAX: instance (preserved). |
| 300 // Clobbers RDI, RDX, R10. | 300 // Clobbers RDI, RDX, R10. |
| 301 RawSubtypeTestCache* FlowGraphCompiler::GenerateUninstantiatedTypeTest( | 301 RawSubtypeTestCache* FlowGraphCompiler::GenerateUninstantiatedTypeTest( |
| 302 intptr_t token_pos, | 302 intptr_t token_pos, |
| 303 const AbstractType& type, | 303 const AbstractType& type, |
| 304 Label* is_instance_lbl, | 304 Label* is_instance_lbl, |
| 305 Label* is_not_instance_lbl) { | 305 Label* is_not_instance_lbl) { |
| 306 __ Comment("UninstantiatedTypeTest"); | 306 __ Comment("UninstantiatedTypeTest"); |
| 307 ASSERT(!type.IsInstantiated()); | 307 ASSERT(!type.IsInstantiated()); |
| 308 // Skip check if destination is a dynamic type. | 308 // Skip check if destination is a dynamic type. |
| (...skipping 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1760 __ movups(reg, Address(RSP, 0)); | 1760 __ movups(reg, Address(RSP, 0)); |
| 1761 __ addq(RSP, Immediate(kFpuRegisterSize)); | 1761 __ addq(RSP, Immediate(kFpuRegisterSize)); |
| 1762 } | 1762 } |
| 1763 | 1763 |
| 1764 | 1764 |
| 1765 #undef __ | 1765 #undef __ |
| 1766 | 1766 |
| 1767 } // namespace dart | 1767 } // namespace dart |
| 1768 | 1768 |
| 1769 #endif // defined TARGET_ARCH_X64 | 1769 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |