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

Unified Diff: runtime/vm/stub_code_mips.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_ia32.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_mips.cc
diff --git a/runtime/vm/stub_code_mips.cc b/runtime/vm/stub_code_mips.cc
index 58af41870b02afefe49bd1debde0f3f5e68ae828..bd6567d7802161e5748228174f3bdf8314ce5d98 100644
--- a/runtime/vm/stub_code_mips.cc
+++ b/runtime/vm/stub_code_mips.cc
@@ -1943,8 +1943,12 @@ static void GenerateSubtypeNTestCacheStub(Assembler* assembler, int n) {
// T2: Entry start.
// T7: null.
__ SmiTag(T0);
+ __ BranchNotEqual(T0, Immediate(Smi::RawValue(kClosureCid)), &loop);
+ __ lw(T0, FieldAddress(A0, Closure::function_offset()));
+ // T0: instance class id as Smi or function.
__ Bind(&loop);
- __ lw(T3, Address(T2, kWordSize * SubtypeTestCache::kInstanceClassId));
+ __ lw(T3,
+ Address(T2, kWordSize * SubtypeTestCache::kInstanceClassIdOrFunction));
__ beq(T3, T7, &not_found);
if (n == 1) {
« no previous file with comments | « runtime/vm/stub_code_ia32.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698