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/intrinsifier.h" | 8 #include "vm/intrinsifier.h" |
9 | 9 |
10 #include "vm/assembler.h" | 10 #include "vm/assembler.h" |
(...skipping 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1550 __ LoadClassIdMayBeSmi(R1, R0); | 1550 __ LoadClassIdMayBeSmi(R1, R0); |
1551 __ CompareImmediate(R1, kClosureCid); | 1551 __ CompareImmediate(R1, kClosureCid); |
1552 __ b(&fall_through, EQ); // Instance is a closure. | 1552 __ b(&fall_through, EQ); // Instance is a closure. |
1553 __ LoadClassById(R2, R1); | 1553 __ LoadClassById(R2, R1); |
1554 // R2: class of instance (R0). | 1554 // R2: class of instance (R0). |
1555 | 1555 |
1556 __ ldrh(R3, FieldAddress(R2, Class::num_type_arguments_offset())); | 1556 __ ldrh(R3, FieldAddress(R2, Class::num_type_arguments_offset())); |
1557 __ CompareImmediate(R3, 0); | 1557 __ CompareImmediate(R3, 0); |
1558 __ b(&fall_through, NE); | 1558 __ b(&fall_through, NE); |
1559 | 1559 |
1560 __ ldr(R0, FieldAddress(R2, Class::canonical_types_offset())); | 1560 __ ldr(R0, FieldAddress(R2, Class::canonical_type_offset())); |
1561 __ CompareObject(R0, Object::null_object()); | 1561 __ CompareObject(R0, Object::null_object()); |
1562 __ b(&fall_through, EQ); | 1562 __ b(&fall_through, EQ); |
1563 __ Ret(); | 1563 __ Ret(); |
1564 | 1564 |
1565 __ Bind(&fall_through); | 1565 __ Bind(&fall_through); |
1566 } | 1566 } |
1567 | 1567 |
1568 | 1568 |
1569 void Intrinsifier::String_getHashCode(Assembler* assembler) { | 1569 void Intrinsifier::String_getHashCode(Assembler* assembler) { |
1570 __ ldr(R0, Address(SP, 0 * kWordSize)); | 1570 __ ldr(R0, Address(SP, 0 * kWordSize)); |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2100 | 2100 |
2101 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { | 2101 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { |
2102 __ LoadIsolate(R0); | 2102 __ LoadIsolate(R0); |
2103 __ ldr(R0, Address(R0, Isolate::current_tag_offset())); | 2103 __ ldr(R0, Address(R0, Isolate::current_tag_offset())); |
2104 __ Ret(); | 2104 __ Ret(); |
2105 } | 2105 } |
2106 | 2106 |
2107 } // namespace dart | 2107 } // namespace dart |
2108 | 2108 |
2109 #endif // defined TARGET_ARCH_ARM | 2109 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |