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

Unified Diff: runtime/vm/flow_graph_compiler_arm64.cc

Issue 2131583002: Optimized megamorphic stubs (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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
Index: runtime/vm/flow_graph_compiler_arm64.cc
diff --git a/runtime/vm/flow_graph_compiler_arm64.cc b/runtime/vm/flow_graph_compiler_arm64.cc
index d0c066e387e63736226338e7fe051cd29cd3feb4..3ff8e6dd4dc4b3345873c9fe1f6f3f10de4e3819 100644
--- a/runtime/vm/flow_graph_compiler_arm64.cc
+++ b/runtime/vm/flow_graph_compiler_arm64.cc
@@ -1325,7 +1325,8 @@ void FlowGraphCompiler::EmitMegamorphicInstanceCall(
__ LoadObject(R5, cache);
if (FLAG_use_megamorphic_stub) {
- __ BranchLink(*StubCode::MegamorphicLookup_entry());
+ __ ldr(LR, Address(THR, Thread::megamorphic_lookup_entry_point_offset()));
+ __ blr(LR);
} else {
StubCode::EmitMegamorphicLookup(assembler());
}

Powered by Google App Engine
This is Rietveld 408576698