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

Side by Side Diff: runtime/vm/intrinsifier_arm.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
« no previous file with comments | « no previous file | runtime/vm/intrinsifier_arm64.cc » ('j') | runtime/vm/intrinsifier_arm64.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1563 void Intrinsifier::ObjectEquals(Assembler* assembler) { 1563 void Intrinsifier::ObjectEquals(Assembler* assembler) {
1564 __ ldr(R0, Address(SP, 0 * kWordSize)); 1564 __ ldr(R0, Address(SP, 0 * kWordSize));
1565 __ ldr(R1, Address(SP, 1 * kWordSize)); 1565 __ ldr(R1, Address(SP, 1 * kWordSize));
1566 __ cmp(R0, Operand(R1)); 1566 __ cmp(R0, Operand(R1));
1567 __ LoadObject(R0, Bool::False(), NE); 1567 __ LoadObject(R0, Bool::False(), NE);
1568 __ LoadObject(R0, Bool::True(), EQ); 1568 __ LoadObject(R0, Bool::True(), EQ);
1569 __ Ret(); 1569 __ Ret();
1570 } 1570 }
1571 1571
1572 1572
1573 // Return type quickly for non-paramtrized types.
regis 2015/06/30 23:28:32 paramtrized -> parameterized
srdjan 2015/07/01 00:35:41 Comment will be replaced once implemented.
1574 void Intrinsifier::ObjectRuntimeType(Assembler* assembler) {
1575 }
1576
1577
1573 void Intrinsifier::String_getHashCode(Assembler* assembler) { 1578 void Intrinsifier::String_getHashCode(Assembler* assembler) {
1574 __ ldr(R0, Address(SP, 0 * kWordSize)); 1579 __ ldr(R0, Address(SP, 0 * kWordSize));
1575 __ ldr(R0, FieldAddress(R0, String::hash_offset())); 1580 __ ldr(R0, FieldAddress(R0, String::hash_offset()));
1576 __ cmp(R0, Operand(0)); 1581 __ cmp(R0, Operand(0));
1577 __ bx(LR, NE); // Hash not yet computed. 1582 __ bx(LR, NE); // Hash not yet computed.
1578 } 1583 }
1579 1584
1580 1585
1581 void Intrinsifier::StringBaseCodeUnitAt(Assembler* assembler) { 1586 void Intrinsifier::StringBaseCodeUnitAt(Assembler* assembler) {
1582 Label fall_through, try_two_byte_string; 1587 Label fall_through, try_two_byte_string;
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
2027 Isolate* isolate = Isolate::Current(); 2032 Isolate* isolate = Isolate::Current();
2028 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate)); 2033 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate));
2029 // Set return value to Isolate::current_tag_. 2034 // Set return value to Isolate::current_tag_.
2030 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); 2035 __ ldr(R0, Address(R1, Isolate::current_tag_offset()));
2031 __ Ret(); 2036 __ Ret();
2032 } 2037 }
2033 2038
2034 } // namespace dart 2039 } // namespace dart
2035 2040
2036 #endif // defined TARGET_ARCH_ARM 2041 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intrinsifier_arm64.cc » ('j') | runtime/vm/intrinsifier_arm64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698