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 1616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1627 __ LoadClassIdMayBeSmi(R1, R0); | 1627 __ LoadClassIdMayBeSmi(R1, R0); |
1628 __ CompareImmediate(R1, kClosureCid); | 1628 __ CompareImmediate(R1, kClosureCid); |
1629 __ b(&fall_through, EQ); // Instance is a closure. | 1629 __ b(&fall_through, EQ); // Instance is a closure. |
1630 __ LoadClassById(R2, R1); | 1630 __ LoadClassById(R2, R1); |
1631 // R2: class of instance (R0). | 1631 // R2: class of instance (R0). |
1632 | 1632 |
1633 __ ldr(R3, FieldAddress(R2, Class::num_type_arguments_offset()), kHalfword); | 1633 __ ldr(R3, FieldAddress(R2, Class::num_type_arguments_offset()), kHalfword); |
1634 __ CompareImmediate(R3, 0); | 1634 __ CompareImmediate(R3, 0); |
1635 __ b(&fall_through, NE); | 1635 __ b(&fall_through, NE); |
1636 | 1636 |
1637 __ ldr(R0, FieldAddress(R2, Class::canonical_types_offset())); | 1637 __ ldr(R0, FieldAddress(R2, Class::canonical_type_offset())); |
1638 __ CompareObject(R0, Object::null_object()); | 1638 __ CompareObject(R0, Object::null_object()); |
1639 __ b(&fall_through, EQ); | 1639 __ b(&fall_through, EQ); |
1640 __ ret(); | 1640 __ ret(); |
1641 | 1641 |
1642 __ Bind(&fall_through); | 1642 __ Bind(&fall_through); |
1643 } | 1643 } |
1644 | 1644 |
1645 | 1645 |
1646 void Intrinsifier::String_getHashCode(Assembler* assembler) { | 1646 void Intrinsifier::String_getHashCode(Assembler* assembler) { |
1647 Label fall_through; | 1647 Label fall_through; |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2174 | 2174 |
2175 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { | 2175 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { |
2176 __ LoadIsolate(R0); | 2176 __ LoadIsolate(R0); |
2177 __ ldr(R0, Address(R0, Isolate::current_tag_offset())); | 2177 __ ldr(R0, Address(R0, Isolate::current_tag_offset())); |
2178 __ ret(); | 2178 __ ret(); |
2179 } | 2179 } |
2180 | 2180 |
2181 } // namespace dart | 2181 } // namespace dart |
2182 | 2182 |
2183 #endif // defined TARGET_ARCH_ARM64 | 2183 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |