| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
| 6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
| 7 | 7 |
| 8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "vm/ast_printer.h" | 10 #include "vm/ast_printer.h" |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 TokenPosition token_pos, | 430 TokenPosition token_pos, |
| 431 const Class& type_class, | 431 const Class& type_class, |
| 432 Label* is_instance_lbl, | 432 Label* is_instance_lbl, |
| 433 Label* is_not_instance_lbl) { | 433 Label* is_not_instance_lbl) { |
| 434 __ Comment("Subtype1TestCacheLookup"); | 434 __ Comment("Subtype1TestCacheLookup"); |
| 435 const Register kInstanceReg = R0; | 435 const Register kInstanceReg = R0; |
| 436 __ LoadClass(R1, kInstanceReg); | 436 __ LoadClass(R1, kInstanceReg); |
| 437 // R1: instance class. | 437 // R1: instance class. |
| 438 // Check immediate superclass equality. | 438 // Check immediate superclass equality. |
| 439 __ LoadFieldFromOffset(R2, R1, Class::super_type_offset()); | 439 __ LoadFieldFromOffset(R2, R1, Class::super_type_offset()); |
| 440 __ LoadFieldFromOffset(R2, R2, Type::type_class_offset()); | 440 __ LoadFieldFromOffset(R2, R2, Type::type_class_id_offset()); |
| 441 __ CompareObject(R2, type_class); | 441 __ CompareImmediate(R2, Smi::RawValue(type_class.id())); |
| 442 __ b(is_instance_lbl, EQ); | 442 __ b(is_instance_lbl, EQ); |
| 443 | 443 |
| 444 const Register kTypeArgumentsReg = kNoRegister; | 444 const Register kTypeArgumentsReg = kNoRegister; |
| 445 const Register kTempReg = kNoRegister; | 445 const Register kTempReg = kNoRegister; |
| 446 return GenerateCallSubtypeTestStub(kTestTypeOneArg, | 446 return GenerateCallSubtypeTestStub(kTestTypeOneArg, |
| 447 kInstanceReg, | 447 kInstanceReg, |
| 448 kTypeArgumentsReg, | 448 kTypeArgumentsReg, |
| 449 kTempReg, | 449 kTempReg, |
| 450 is_instance_lbl, | 450 is_instance_lbl, |
| 451 is_not_instance_lbl); | 451 is_not_instance_lbl); |
| (...skipping 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1936 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { | 1936 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { |
| 1937 __ PopDouble(reg); | 1937 __ PopDouble(reg); |
| 1938 } | 1938 } |
| 1939 | 1939 |
| 1940 | 1940 |
| 1941 #undef __ | 1941 #undef __ |
| 1942 | 1942 |
| 1943 } // namespace dart | 1943 } // namespace dart |
| 1944 | 1944 |
| 1945 #endif // defined TARGET_ARCH_ARM64 | 1945 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |