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

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

Issue 1584223006: Remove signature classes from the VM. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 4 years, 11 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/stub_code_mips.cc ('k') | runtime/vm/symbols.h » ('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 #include "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 1823 matching lines...) Expand 10 before | Expand all | Expand 10 after
1834 // R13: instance type arguments or null, used only if n > 1. 1834 // R13: instance type arguments or null, used only if n > 1.
1835 __ movq(RDX, Address(RSP, kCacheOffsetInBytes)); 1835 __ movq(RDX, Address(RSP, kCacheOffsetInBytes));
1836 // RDX: SubtypeTestCache. 1836 // RDX: SubtypeTestCache.
1837 __ movq(RDX, FieldAddress(RDX, SubtypeTestCache::cache_offset())); 1837 __ movq(RDX, FieldAddress(RDX, SubtypeTestCache::cache_offset()));
1838 __ addq(RDX, Immediate(Array::data_offset() - kHeapObjectTag)); 1838 __ addq(RDX, Immediate(Array::data_offset() - kHeapObjectTag));
1839 // RDX: Entry start. 1839 // RDX: Entry start.
1840 // R10: instance class id. 1840 // R10: instance class id.
1841 // R13: instance type arguments. 1841 // R13: instance type arguments.
1842 Label loop, found, not_found, next_iteration; 1842 Label loop, found, not_found, next_iteration;
1843 __ SmiTag(R10); 1843 __ SmiTag(R10);
1844 __ cmpq(R10, Immediate(Smi::RawValue(kClosureCid)));
1845 __ j(NOT_EQUAL, &loop, Assembler::kNearJump);
1846 __ movq(R10, FieldAddress(RAX, Closure::function_offset()));
1847 // R10: instance class id as Smi or function.
1844 __ Bind(&loop); 1848 __ Bind(&loop);
1845 __ movq(RDI, Address(RDX, kWordSize * SubtypeTestCache::kInstanceClassId)); 1849 __ movq(RDI,
1850 Address(RDX,
1851 kWordSize * SubtypeTestCache::kInstanceClassIdOrFunction));
1846 __ cmpq(RDI, R9); 1852 __ cmpq(RDI, R9);
1847 __ j(EQUAL, &not_found, Assembler::kNearJump); 1853 __ j(EQUAL, &not_found, Assembler::kNearJump);
1848 __ cmpq(RDI, R10); 1854 __ cmpq(RDI, R10);
1849 if (n == 1) { 1855 if (n == 1) {
1850 __ j(EQUAL, &found, Assembler::kNearJump); 1856 __ j(EQUAL, &found, Assembler::kNearJump);
1851 } else { 1857 } else {
1852 __ j(NOT_EQUAL, &next_iteration, Assembler::kNearJump); 1858 __ j(NOT_EQUAL, &next_iteration, Assembler::kNearJump);
1853 __ movq(RDI, 1859 __ movq(RDI,
1854 Address(RDX, kWordSize * SubtypeTestCache::kInstanceTypeArguments)); 1860 Address(RDX, kWordSize * SubtypeTestCache::kInstanceTypeArguments));
1855 __ cmpq(RDI, R13); 1861 __ cmpq(RDI, R13);
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
2180 __ Bind(&miss); 2186 __ Bind(&miss);
2181 __ LoadIsolate(RAX); 2187 __ LoadIsolate(RAX);
2182 __ movq(CODE_REG, Address(RAX, Isolate::ic_miss_code_offset())); 2188 __ movq(CODE_REG, Address(RAX, Isolate::ic_miss_code_offset()));
2183 __ movq(RCX, FieldAddress(CODE_REG, Code::entry_point_offset())); 2189 __ movq(RCX, FieldAddress(CODE_REG, Code::entry_point_offset()));
2184 __ ret(); 2190 __ ret();
2185 } 2191 }
2186 2192
2187 } // namespace dart 2193 } // namespace dart
2188 2194
2189 #endif // defined TARGET_ARCH_X64 2195 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698