Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(958)

Side by Side Diff: runtime/vm/intrinsifier_arm64.cc

Issue 1217323002: Intrinsic version of Object.runtimeType (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1628 matching lines...) Expand 10 before | Expand all | Expand 10 after
1639 __ ldr(R0, Address(SP, 0 * kWordSize)); 1639 __ ldr(R0, Address(SP, 0 * kWordSize));
1640 __ ldr(R1, Address(SP, 1 * kWordSize)); 1640 __ ldr(R1, Address(SP, 1 * kWordSize));
1641 __ cmp(R0, Operand(R1)); 1641 __ cmp(R0, Operand(R1));
1642 __ LoadObject(R0, Bool::False(), PP); 1642 __ LoadObject(R0, Bool::False(), PP);
1643 __ LoadObject(TMP, Bool::True(), PP); 1643 __ LoadObject(TMP, Bool::True(), PP);
1644 __ csel(R0, TMP, R0, EQ); 1644 __ csel(R0, TMP, R0, EQ);
1645 __ ret(); 1645 __ ret();
1646 } 1646 }
1647 1647
1648 1648
1649 // Return type quickly for non-paramtrized types.
regis 2015/06/30 23:28:32 ditto
srdjan 2015/07/01 00:35:41 ditto
1650 void Intrinsifier::ObjectRuntimeType(Assembler* assembler) {
1651 }
1652
1653
1649 void Intrinsifier::String_getHashCode(Assembler* assembler) { 1654 void Intrinsifier::String_getHashCode(Assembler* assembler) {
1650 Label fall_through; 1655 Label fall_through;
1651 __ ldr(R0, Address(SP, 0 * kWordSize)); 1656 __ ldr(R0, Address(SP, 0 * kWordSize));
1652 __ ldr(R0, FieldAddress(R0, String::hash_offset())); 1657 __ ldr(R0, FieldAddress(R0, String::hash_offset()));
1653 __ CompareRegisters(R0, ZR); 1658 __ CompareRegisters(R0, ZR);
1654 __ b(&fall_through, EQ); 1659 __ b(&fall_through, EQ);
1655 __ ret(); 1660 __ ret();
1656 // Hash not yet computed. 1661 // Hash not yet computed.
1657 __ Bind(&fall_through); 1662 __ Bind(&fall_through);
1658 } 1663 }
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
2109 Isolate* isolate = Isolate::Current(); 2114 Isolate* isolate = Isolate::Current();
2110 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate), kNoPP); 2115 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate), kNoPP);
2111 // Set return value to Isolate::current_tag_. 2116 // Set return value to Isolate::current_tag_.
2112 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); 2117 __ ldr(R0, Address(R1, Isolate::current_tag_offset()));
2113 __ ret(); 2118 __ ret();
2114 } 2119 }
2115 2120
2116 } // namespace dart 2121 } // namespace dart
2117 2122
2118 #endif // defined TARGET_ARCH_ARM64 2123 #endif // defined TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698