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/intrinsifier.h" | 8 #include "vm/intrinsifier.h" |
9 | 9 |
10 #include "vm/assembler.h" | 10 #include "vm/assembler.h" |
(...skipping 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1628 __ LoadClassIdMayBeSmi(R1, R0); | 1628 __ LoadClassIdMayBeSmi(R1, R0); |
1629 __ CompareImmediate(R1, kClosureCid); | 1629 __ CompareImmediate(R1, kClosureCid); |
1630 __ b(&fall_through, EQ); // Instance is a closure. | 1630 __ b(&fall_through, EQ); // Instance is a closure. |
1631 __ LoadClassById(R2, R1); | 1631 __ LoadClassById(R2, R1); |
1632 // R2: class of instance (R0). | 1632 // R2: class of instance (R0). |
1633 | 1633 |
1634 __ ldr(R3, FieldAddress(R2, Class::num_type_arguments_offset()), kHalfword); | 1634 __ ldr(R3, FieldAddress(R2, Class::num_type_arguments_offset()), kHalfword); |
1635 __ CompareImmediate(R3, 0); | 1635 __ CompareImmediate(R3, 0); |
1636 __ b(&fall_through, NE); | 1636 __ b(&fall_through, NE); |
1637 | 1637 |
1638 __ ldr(R0, FieldAddress(R2, Class::canonical_types_offset())); | 1638 __ ldr(R0, FieldAddress(R2, Class::canonical_type_offset())); |
1639 __ CompareObject(R0, Object::null_object()); | 1639 __ CompareObject(R0, Object::null_object()); |
1640 __ b(&fall_through, EQ); | 1640 __ b(&fall_through, EQ); |
1641 __ ret(); | 1641 __ ret(); |
1642 | 1642 |
1643 __ Bind(&fall_through); | 1643 __ Bind(&fall_through); |
1644 } | 1644 } |
1645 | 1645 |
1646 | 1646 |
1647 void Intrinsifier::String_getHashCode(Assembler* assembler) { | 1647 void Intrinsifier::String_getHashCode(Assembler* assembler) { |
1648 Label fall_through; | 1648 Label fall_through; |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2198 __ ret(); | 2198 __ ret(); |
2199 // Enabled. | 2199 // Enabled. |
2200 __ Bind(&true_label); | 2200 __ Bind(&true_label); |
2201 __ LoadObject(R0, Bool::True()); | 2201 __ LoadObject(R0, Bool::True()); |
2202 __ ret(); | 2202 __ ret(); |
2203 } | 2203 } |
2204 | 2204 |
2205 } // namespace dart | 2205 } // namespace dart |
2206 | 2206 |
2207 #endif // defined TARGET_ARCH_ARM64 | 2207 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |