| 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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 SubtypeTestCache::ZoneHandle(zone(), | 501 SubtypeTestCache::ZoneHandle(zone(), |
| 502 GenerateCallSubtypeTestStub(kTestTypeThreeArgs, | 502 GenerateCallSubtypeTestStub(kTestTypeThreeArgs, |
| 503 kInstanceReg, | 503 kInstanceReg, |
| 504 kTypeArgumentsReg, | 504 kTypeArgumentsReg, |
| 505 kTempReg, | 505 kTempReg, |
| 506 is_instance_lbl, | 506 is_instance_lbl, |
| 507 is_not_instance_lbl)); | 507 is_not_instance_lbl)); |
| 508 __ Bind(&fall_through); | 508 __ Bind(&fall_through); |
| 509 return type_test_cache.raw(); | 509 return type_test_cache.raw(); |
| 510 } | 510 } |
| 511 if (type.IsType() || type.IsFunctionType()) { | 511 if (type.IsType()) { |
| 512 const Register kInstanceReg = R0; | 512 const Register kInstanceReg = R0; |
| 513 const Register kTypeArgumentsReg = R1; | 513 const Register kTypeArgumentsReg = R1; |
| 514 __ tsti(kInstanceReg, Immediate(kSmiTagMask)); // Is instance Smi? | 514 __ tsti(kInstanceReg, Immediate(kSmiTagMask)); // Is instance Smi? |
| 515 __ b(is_not_instance_lbl, EQ); | 515 __ b(is_not_instance_lbl, EQ); |
| 516 __ ldr(kTypeArgumentsReg, Address(SP)); // Instantiator type args. | 516 __ ldr(kTypeArgumentsReg, Address(SP)); // Instantiator type args. |
| 517 // Uninstantiated type class is known at compile time, but the type | 517 // Uninstantiated type class is known at compile time, but the type |
| 518 // arguments are determined at runtime by the instantiator. | 518 // arguments are determined at runtime by the instantiator. |
| 519 const Register kTempReg = kNoRegister; | 519 const Register kTempReg = kNoRegister; |
| 520 return GenerateCallSubtypeTestStub(kTestTypeThreeArgs, | 520 return GenerateCallSubtypeTestStub(kTestTypeThreeArgs, |
| 521 kInstanceReg, | 521 kInstanceReg, |
| (...skipping 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1914 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { | 1914 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { |
| 1915 __ PopDouble(reg); | 1915 __ PopDouble(reg); |
| 1916 } | 1916 } |
| 1917 | 1917 |
| 1918 | 1918 |
| 1919 #undef __ | 1919 #undef __ |
| 1920 | 1920 |
| 1921 } // namespace dart | 1921 } // namespace dart |
| 1922 | 1922 |
| 1923 #endif // defined TARGET_ARCH_ARM64 | 1923 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |