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

Side by Side Diff: runtime/vm/intrinsifier_ia32.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-merge-conflicts 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
« no previous file with comments | « runtime/vm/intrinsifier_arm64.cc ('k') | runtime/vm/intrinsifier_mips.cc » ('j') | no next file with comments »
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 // The intrinsic code below is executed before a method has built its frame. 5 // The intrinsic code below is executed before a method has built its frame.
6 // The return address is on the stack and the arguments below it. 6 // The return address is on the stack and the arguments below it.
7 // Registers EDX (arguments descriptor) and ECX (function) must be preserved. 7 // Registers EDX (arguments descriptor) and ECX (function) must be preserved.
8 // Each intrinsification method returns true if the corresponding 8 // Each intrinsification method returns true if the corresponding
9 // Dart method was intrinsified. 9 // Dart method was intrinsified.
10 10
(...skipping 1680 matching lines...) Expand 10 before | Expand all | Expand 10 after
1691 __ movl(EAX, Address(ESP, + 1 * kWordSize)); 1691 __ movl(EAX, Address(ESP, + 1 * kWordSize));
1692 __ LoadClassIdMayBeSmi(EDI, EAX); 1692 __ LoadClassIdMayBeSmi(EDI, EAX);
1693 __ cmpl(EDI, Immediate(kClosureCid)); 1693 __ cmpl(EDI, Immediate(kClosureCid));
1694 __ j(EQUAL, &fall_through, Assembler::kNearJump); // Instance is a closure. 1694 __ j(EQUAL, &fall_through, Assembler::kNearJump); // Instance is a closure.
1695 __ LoadClassById(EBX, EDI); 1695 __ LoadClassById(EBX, EDI);
1696 // EBX: class of instance (EAX). 1696 // EBX: class of instance (EAX).
1697 1697
1698 __ movzxw(EDI, FieldAddress(EBX, Class::num_type_arguments_offset())); 1698 __ movzxw(EDI, FieldAddress(EBX, Class::num_type_arguments_offset()));
1699 __ cmpl(EDI, Immediate(0)); 1699 __ cmpl(EDI, Immediate(0));
1700 __ j(NOT_EQUAL, &fall_through, Assembler::kNearJump); 1700 __ j(NOT_EQUAL, &fall_through, Assembler::kNearJump);
1701 __ movl(EAX, FieldAddress(EBX, Class::canonical_types_offset())); 1701 __ movl(EAX, FieldAddress(EBX, Class::canonical_type_offset()));
1702 __ CompareObject(EAX, Object::null_object()); 1702 __ CompareObject(EAX, Object::null_object());
1703 __ j(EQUAL, &fall_through, Assembler::kNearJump); // Not yet set. 1703 __ j(EQUAL, &fall_through, Assembler::kNearJump); // Not yet set.
1704 __ ret(); 1704 __ ret();
1705 1705
1706 __ Bind(&fall_through); 1706 __ Bind(&fall_through);
1707 } 1707 }
1708 1708
1709 1709
1710 void Intrinsifier::String_getHashCode(Assembler* assembler) { 1710 void Intrinsifier::String_getHashCode(Assembler* assembler) {
1711 Label fall_through; 1711 Label fall_through;
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
2153 __ Bind(&true_label); 2153 __ Bind(&true_label);
2154 __ LoadObject(EAX, Bool::True()); 2154 __ LoadObject(EAX, Bool::True());
2155 __ ret(); 2155 __ ret();
2156 } 2156 }
2157 2157
2158 #undef __ 2158 #undef __
2159 2159
2160 } // namespace dart 2160 } // namespace dart
2161 2161
2162 #endif // defined TARGET_ARCH_IA32 2162 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_arm64.cc ('k') | runtime/vm/intrinsifier_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698