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

Unified Diff: runtime/vm/stub_code_arm64.cc

Issue 2818273002: Remove parent_level field of function type parameters. (Closed)
Patch Set: address comments Created 3 years, 8 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_arm.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_arm64.cc
diff --git a/runtime/vm/stub_code_arm64.cc b/runtime/vm/stub_code_arm64.cc
index 23fb1b20b2ec80ccdf65192ab555793c241ca959..67f3bea6f39e1f6f133496b31622a0dab4cb7f29 100644
--- a/runtime/vm/stub_code_arm64.cc
+++ b/runtime/vm/stub_code_arm64.cc
@@ -1835,7 +1835,10 @@ static void GenerateSubtypeNTestCacheStub(Assembler* assembler, int n) {
__ SmiTag(R6);
__ CompareImmediate(R6, Smi::RawValue(kClosureCid));
__ b(&loop, NE);
- __ LoadFieldFromOffset(R4, R0, Closure::instantiator_offset());
+ __ LoadFieldFromOffset(R4, R0, Closure::function_type_arguments_offset());
+ __ CompareObject(R4, Object::null_object());
+ __ b(&not_found, NE); // Cache cannot be used for generic closures.
+ __ LoadFieldFromOffset(R4, R0, Closure::instantiator_type_arguments_offset());
__ LoadFieldFromOffset(R6, R0, Closure::function_offset());
// R6: instance class id as Smi or function.
__ Bind(&loop);
« no previous file with comments | « runtime/vm/stub_code_arm.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698