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

Unified Diff: runtime/vm/stub_code_ia32.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_arm64.cc ('k') | runtime/vm/stub_code_mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_ia32.cc
diff --git a/runtime/vm/stub_code_ia32.cc b/runtime/vm/stub_code_ia32.cc
index b6302d333ff25bfec3077ecb3f2197a6af2d4cd5..e1e3fff0ed1fe14140148b286fa5cf6477fcabf0 100644
--- a/runtime/vm/stub_code_ia32.cc
+++ b/runtime/vm/stub_code_ia32.cc
@@ -1781,8 +1781,14 @@ static void GenerateSubtypeNTestCacheStub(Assembler* assembler, int n) {
// ECX: instance class id.
// EBX: instance type arguments.
__ SmiTag(ECX);
+ __ cmpl(ECX, Immediate(Smi::RawValue(kClosureCid)));
+ __ j(NOT_EQUAL, &loop, Assembler::kNearJump);
+ __ movl(ECX, FieldAddress(EAX, Closure::function_offset()));
+ // ECX: instance class id as Smi or function.
__ Bind(&loop);
- __ movl(EDI, Address(EDX, kWordSize * SubtypeTestCache::kInstanceClassId));
+ __ movl(EDI,
+ Address(EDX,
+ kWordSize * SubtypeTestCache::kInstanceClassIdOrFunction));
__ cmpl(EDI, raw_null);
__ j(EQUAL, &not_found, Assembler::kNearJump);
__ cmpl(EDI, ECX);
« no previous file with comments | « runtime/vm/stub_code_arm64.cc ('k') | runtime/vm/stub_code_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698