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

Side by Side Diff: runtime/vm/intrinsifier_mips.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) 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/intrinsifier.h" 8 #include "vm/intrinsifier.h"
9 9
10 #include "vm/assembler.h" 10 #include "vm/assembler.h"
(...skipping 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after
1668 __ lw(T1, Address(SP, 1 * kWordSize)); 1668 __ lw(T1, Address(SP, 1 * kWordSize));
1669 __ beq(T0, T1, &is_true); 1669 __ beq(T0, T1, &is_true);
1670 __ LoadObject(V0, Bool::False()); 1670 __ LoadObject(V0, Bool::False());
1671 __ Ret(); 1671 __ Ret();
1672 __ Bind(&is_true); 1672 __ Bind(&is_true);
1673 __ LoadObject(V0, Bool::True()); 1673 __ LoadObject(V0, Bool::True());
1674 __ Ret(); 1674 __ Ret();
1675 } 1675 }
1676 1676
1677 1677
1678 // Return type quickly for non-paramtrized types.
regis 2015/06/30 23:28:32 ditto
srdjan 2015/07/01 00:35:41 Will be replaced once implemented.
1679 void Intrinsifier::ObjectRuntimeType(Assembler* assembler) {
1680 }
1681
1682
1678 void Intrinsifier::String_getHashCode(Assembler* assembler) { 1683 void Intrinsifier::String_getHashCode(Assembler* assembler) {
1679 Label fall_through; 1684 Label fall_through;
1680 __ lw(T0, Address(SP, 0 * kWordSize)); 1685 __ lw(T0, Address(SP, 0 * kWordSize));
1681 __ lw(V0, FieldAddress(T0, String::hash_offset())); 1686 __ lw(V0, FieldAddress(T0, String::hash_offset()));
1682 __ beq(V0, ZR, &fall_through); 1687 __ beq(V0, ZR, &fall_through);
1683 __ Ret(); 1688 __ Ret();
1684 __ Bind(&fall_through); // Hash not yet computed. 1689 __ Bind(&fall_through); // Hash not yet computed.
1685 } 1690 }
1686 1691
1687 1692
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
2142 Isolate* isolate = Isolate::Current(); 2147 Isolate* isolate = Isolate::Current();
2143 __ LoadImmediate(V0, reinterpret_cast<uword>(isolate)); 2148 __ LoadImmediate(V0, reinterpret_cast<uword>(isolate));
2144 // Set return value. 2149 // Set return value.
2145 __ Ret(); 2150 __ Ret();
2146 __ delay_slot()->lw(V0, Address(V0, Isolate::current_tag_offset())); 2151 __ delay_slot()->lw(V0, Address(V0, Isolate::current_tag_offset()));
2147 } 2152 }
2148 2153
2149 } // namespace dart 2154 } // namespace dart
2150 2155
2151 #endif // defined TARGET_ARCH_MIPS 2156 #endif // defined TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698