| 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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 // Fallthrough. | 346 // Fallthrough. |
| 347 return true; | 347 return true; |
| 348 } | 348 } |
| 349 const Class& type_class = Class::Handle(zone(), type.type_class()); | 349 const Class& type_class = Class::Handle(zone(), type.type_class()); |
| 350 ASSERT(type_class.NumTypeArguments() == 0); | 350 ASSERT(type_class.NumTypeArguments() == 0); |
| 351 | 351 |
| 352 const Register kInstanceReg = R0; | 352 const Register kInstanceReg = R0; |
| 353 __ tst(kInstanceReg, Operand(kSmiTagMask)); | 353 __ tst(kInstanceReg, Operand(kSmiTagMask)); |
| 354 // If instance is Smi, check directly. | 354 // If instance is Smi, check directly. |
| 355 const Class& smi_class = Class::Handle(zone(), Smi::Class()); | 355 const Class& smi_class = Class::Handle(zone(), Smi::Class()); |
| 356 if (smi_class.IsSubtypeOf(TypeArguments::Handle(zone()), type_class, | 356 if (smi_class.IsSubtypeOf(Object::null_type_arguments(), type_class, |
| 357 TypeArguments::Handle(zone()), NULL, NULL, | 357 Object::null_type_arguments(), NULL, NULL, |
| 358 Heap::kOld)) { | 358 Heap::kOld)) { |
| 359 __ b(is_instance_lbl, EQ); | 359 __ b(is_instance_lbl, EQ); |
| 360 } else { | 360 } else { |
| 361 __ b(is_not_instance_lbl, EQ); | 361 __ b(is_not_instance_lbl, EQ); |
| 362 } | 362 } |
| 363 const Register kClassIdReg = R2; | 363 const Register kClassIdReg = R2; |
| 364 __ LoadClassId(kClassIdReg, kInstanceReg); | 364 __ LoadClassId(kClassIdReg, kInstanceReg); |
| 365 // See ClassFinalizer::ResolveSuperTypeAndInterfaces for list of restricted | 365 // See ClassFinalizer::ResolveSuperTypeAndInterfaces for list of restricted |
| 366 // interfaces. | 366 // interfaces. |
| 367 // Bool interface can be implemented only by core class Bool. | 367 // Bool interface can be implemented only by core class Bool. |
| (...skipping 1523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1891 DRegister dreg = EvenDRegisterOf(reg); | 1891 DRegister dreg = EvenDRegisterOf(reg); |
| 1892 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1892 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
| 1893 } | 1893 } |
| 1894 | 1894 |
| 1895 | 1895 |
| 1896 #undef __ | 1896 #undef __ |
| 1897 | 1897 |
| 1898 } // namespace dart | 1898 } // namespace dart |
| 1899 | 1899 |
| 1900 #endif // defined TARGET_ARCH_ARM | 1900 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |