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

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

Issue 1965493004: Canonicalize generic types in an isolate specific hash table (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: address-code-review-comments Created 4 years, 7 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 1616 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698