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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_x64.cc
diff --git a/runtime/vm/stub_code_x64.cc b/runtime/vm/stub_code_x64.cc
index 39d8dc96b0b2c7e2d040fa48f1b89270e7cceed6..024fbfa4be61d723758bdb4783d2fa2acc4364bb 100644
--- a/runtime/vm/stub_code_x64.cc
+++ b/runtime/vm/stub_code_x64.cc
@@ -1841,8 +1841,14 @@ static void GenerateSubtypeNTestCacheStub(Assembler* assembler, int n) {
// R13: instance type arguments.
Label loop, found, not_found, next_iteration;
__ SmiTag(R10);
+ __ cmpq(R10, Immediate(Smi::RawValue(kClosureCid)));
+ __ j(NOT_EQUAL, &loop, Assembler::kNearJump);
+ __ movq(R10, FieldAddress(RAX, Closure::function_offset()));
+ // R10: instance class id as Smi or function.
__ Bind(&loop);
- __ movq(RDI, Address(RDX, kWordSize * SubtypeTestCache::kInstanceClassId));
+ __ movq(RDI,
+ Address(RDX,
+ kWordSize * SubtypeTestCache::kInstanceClassIdOrFunction));
__ cmpq(RDI, R9);
__ j(EQUAL, &not_found, Assembler::kNearJump);
__ cmpq(RDI, R10);
« 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