| 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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 SubtypeTestCache::ZoneHandle(zone(), | 497 SubtypeTestCache::ZoneHandle(zone(), |
| 498 GenerateCallSubtypeTestStub(kTestTypeThreeArgs, | 498 GenerateCallSubtypeTestStub(kTestTypeThreeArgs, |
| 499 kInstanceReg, | 499 kInstanceReg, |
| 500 kTypeArgumentsReg, | 500 kTypeArgumentsReg, |
| 501 kTempReg, | 501 kTempReg, |
| 502 is_instance_lbl, | 502 is_instance_lbl, |
| 503 is_not_instance_lbl)); | 503 is_not_instance_lbl)); |
| 504 __ Bind(&fall_through); | 504 __ Bind(&fall_through); |
| 505 return type_test_cache.raw(); | 505 return type_test_cache.raw(); |
| 506 } | 506 } |
| 507 if (type.IsType() || type.IsFunctionType()) { | 507 if (type.IsType()) { |
| 508 const Register kInstanceReg = A0; | 508 const Register kInstanceReg = A0; |
| 509 const Register kTypeArgumentsReg = A1; | 509 const Register kTypeArgumentsReg = A1; |
| 510 __ andi(CMPRES1, kInstanceReg, Immediate(kSmiTagMask)); | 510 __ andi(CMPRES1, kInstanceReg, Immediate(kSmiTagMask)); |
| 511 __ beq(CMPRES1, ZR, is_not_instance_lbl); // Is instance Smi? | 511 __ beq(CMPRES1, ZR, is_not_instance_lbl); // Is instance Smi? |
| 512 __ lw(kTypeArgumentsReg, Address(SP, 0)); // Instantiator type args. | 512 __ lw(kTypeArgumentsReg, Address(SP, 0)); // Instantiator type args. |
| 513 // Uninstantiated type class is known at compile time, but the type | 513 // Uninstantiated type class is known at compile time, but the type |
| 514 // arguments are determined at runtime by the instantiator. | 514 // arguments are determined at runtime by the instantiator. |
| 515 const Register kTempReg = kNoRegister; | 515 const Register kTempReg = kNoRegister; |
| 516 return GenerateCallSubtypeTestStub(kTestTypeThreeArgs, | 516 return GenerateCallSubtypeTestStub(kTestTypeThreeArgs, |
| 517 kInstanceReg, | 517 kInstanceReg, |
| (...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1942 __ AddImmediate(SP, kDoubleSize); | 1942 __ AddImmediate(SP, kDoubleSize); |
| 1943 } | 1943 } |
| 1944 | 1944 |
| 1945 | 1945 |
| 1946 #undef __ | 1946 #undef __ |
| 1947 | 1947 |
| 1948 | 1948 |
| 1949 } // namespace dart | 1949 } // namespace dart |
| 1950 | 1950 |
| 1951 #endif // defined TARGET_ARCH_MIPS | 1951 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |