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

Unified Diff: runtime/vm/flow_graph_compiler_mips.cc

Issue 2132803002: Megamorphic code cleanup. (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
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_mips.cc
diff --git a/runtime/vm/flow_graph_compiler_mips.cc b/runtime/vm/flow_graph_compiler_mips.cc
index 97d2f3a23f624fc74d02b4f14a0c4edd77cf505d..580acf3b55dade7a60843c21f7d8fbce1d4b19eb 100644
--- a/runtime/vm/flow_graph_compiler_mips.cc
+++ b/runtime/vm/flow_graph_compiler_mips.cc
@@ -23,7 +23,6 @@
namespace dart {
DEFINE_FLAG(bool, trap_on_deoptimization, false, "Trap on deoptimization.");
-DECLARE_FLAG(bool, use_megamorphic_stub);
void MegamorphicSlowPath::EmitNativeCode(FlowGraphCompiler* compiler) {
@@ -1349,12 +1348,8 @@ void FlowGraphCompiler::EmitMegamorphicInstanceCall(
__ Comment("Slow case: megamorphic call");
}
__ LoadObject(S5, cache);
- if (FLAG_use_megamorphic_stub) {
- __ lw(T9, Address(THR, Thread::megamorphic_lookup_entry_point_offset()));
- __ jalr(T9);
- } else {
- StubCode::EmitMegamorphicLookup(assembler());
- }
+ __ lw(T9, Address(THR, Thread::megamorphic_lookup_entry_point_offset()));
+ __ jalr(T9);
__ jalr(T1);
__ Bind(&done);
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698