| 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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 TokenPosition token_pos, | 427 TokenPosition token_pos, |
| 428 const Class& type_class, | 428 const Class& type_class, |
| 429 Label* is_instance_lbl, | 429 Label* is_instance_lbl, |
| 430 Label* is_not_instance_lbl) { | 430 Label* is_not_instance_lbl) { |
| 431 __ Comment("Subtype1TestCacheLookup"); | 431 __ Comment("Subtype1TestCacheLookup"); |
| 432 const Register kInstanceReg = A0; | 432 const Register kInstanceReg = A0; |
| 433 __ LoadClass(T0, kInstanceReg); | 433 __ LoadClass(T0, kInstanceReg); |
| 434 // T0: instance class. | 434 // T0: instance class. |
| 435 // Check immediate superclass equality. | 435 // Check immediate superclass equality. |
| 436 __ lw(T0, FieldAddress(T0, Class::super_type_offset())); | 436 __ lw(T0, FieldAddress(T0, Class::super_type_offset())); |
| 437 __ lw(T0, FieldAddress(T0, Type::type_class_offset())); | 437 __ lw(T0, FieldAddress(T0, Type::type_class_id_offset())); |
| 438 __ BranchEqual(T0, type_class, is_instance_lbl); | 438 __ BranchEqual(T0, Immediate(Smi::RawValue(type_class.id())), |
| 439 is_instance_lbl); |
| 439 | 440 |
| 440 const Register kTypeArgumentsReg = kNoRegister; | 441 const Register kTypeArgumentsReg = kNoRegister; |
| 441 const Register kTempReg = kNoRegister; | 442 const Register kTempReg = kNoRegister; |
| 442 return GenerateCallSubtypeTestStub(kTestTypeOneArg, | 443 return GenerateCallSubtypeTestStub(kTestTypeOneArg, |
| 443 kInstanceReg, | 444 kInstanceReg, |
| 444 kTypeArgumentsReg, | 445 kTypeArgumentsReg, |
| 445 kTempReg, | 446 kTempReg, |
| 446 is_instance_lbl, | 447 is_instance_lbl, |
| 447 is_not_instance_lbl); | 448 is_not_instance_lbl); |
| 448 } | 449 } |
| (...skipping 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1960 __ AddImmediate(SP, kDoubleSize); | 1961 __ AddImmediate(SP, kDoubleSize); |
| 1961 } | 1962 } |
| 1962 | 1963 |
| 1963 | 1964 |
| 1964 #undef __ | 1965 #undef __ |
| 1965 | 1966 |
| 1966 | 1967 |
| 1967 } // namespace dart | 1968 } // namespace dart |
| 1968 | 1969 |
| 1969 #endif // defined TARGET_ARCH_MIPS | 1970 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |