| 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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 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 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 SubtypeTestCache::ZoneHandle(zone(), | 509 SubtypeTestCache::ZoneHandle(zone(), |
| 510 GenerateCallSubtypeTestStub(kTestTypeThreeArgs, | 510 GenerateCallSubtypeTestStub(kTestTypeThreeArgs, |
| 511 kInstanceReg, | 511 kInstanceReg, |
| 512 kTypeArgumentsReg, | 512 kTypeArgumentsReg, |
| 513 kTempReg, | 513 kTempReg, |
| 514 is_instance_lbl, | 514 is_instance_lbl, |
| 515 is_not_instance_lbl)); | 515 is_not_instance_lbl)); |
| 516 __ Bind(&fall_through); | 516 __ Bind(&fall_through); |
| 517 return type_test_cache.raw(); | 517 return type_test_cache.raw(); |
| 518 } | 518 } |
| 519 if (type.IsType() || type.IsFunctionType()) { | 519 if (type.IsType()) { |
| 520 const Register kInstanceReg = R0; | 520 const Register kInstanceReg = R0; |
| 521 const Register kTypeArgumentsReg = R1; | 521 const Register kTypeArgumentsReg = R1; |
| 522 __ tst(kInstanceReg, Operand(kSmiTagMask)); // Is instance Smi? | 522 __ tst(kInstanceReg, Operand(kSmiTagMask)); // Is instance Smi? |
| 523 __ b(is_not_instance_lbl, EQ); | 523 __ b(is_not_instance_lbl, EQ); |
| 524 __ ldr(kTypeArgumentsReg, Address(SP, 0)); // Instantiator type args. | 524 __ ldr(kTypeArgumentsReg, Address(SP, 0)); // Instantiator type args. |
| 525 // Uninstantiated type class is known at compile time, but the type | 525 // Uninstantiated type class is known at compile time, but the type |
| 526 // arguments are determined at runtime by the instantiator. | 526 // arguments are determined at runtime by the instantiator. |
| 527 const Register kTempReg = kNoRegister; | 527 const Register kTempReg = kNoRegister; |
| 528 return GenerateCallSubtypeTestStub(kTestTypeThreeArgs, | 528 return GenerateCallSubtypeTestStub(kTestTypeThreeArgs, |
| 529 kInstanceReg, | 529 kInstanceReg, |
| (...skipping 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1977 DRegister dreg = EvenDRegisterOf(reg); | 1977 DRegister dreg = EvenDRegisterOf(reg); |
| 1978 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1978 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
| 1979 } | 1979 } |
| 1980 | 1980 |
| 1981 | 1981 |
| 1982 #undef __ | 1982 #undef __ |
| 1983 | 1983 |
| 1984 } // namespace dart | 1984 } // namespace dart |
| 1985 | 1985 |
| 1986 #endif // defined TARGET_ARCH_ARM | 1986 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |