| 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 a6fef0b0ef74535f7c3f288f4986a854e48fb47a..3c0f7f189ce0db3c0809a85698f9b698a1e4db20 100644
|
| --- a/runtime/vm/flow_graph_compiler_mips.cc
|
| +++ b/runtime/vm/flow_graph_compiler_mips.cc
|
| @@ -24,6 +24,7 @@ namespace dart {
|
|
|
| DEFINE_FLAG(bool, trap_on_deoptimization, false, "Trap on deoptimization.");
|
| DECLARE_FLAG(bool, use_megamorphic_stub);
|
| +DECLARE_FLAG(bool, precompilation);
|
|
|
|
|
| void MegamorphicSlowPath::EmitNativeCode(FlowGraphCompiler* compiler) {
|
| @@ -1137,7 +1138,7 @@ void FlowGraphCompiler::CompileGraph() {
|
| __ break_(0);
|
| GenerateDeferredCode();
|
|
|
| - if (is_optimizing() && Compiler::allow_recompilation()) {
|
| + if (is_optimizing() && !FLAG_precompilation) {
|
| // Leave enough space for patching in case of lazy deoptimization from
|
| // deferred code.
|
| for (intptr_t i = 0;
|
| @@ -1295,7 +1296,7 @@ void FlowGraphCompiler::EmitMegamorphicInstanceCall(
|
|
|
| RecordSafepoint(locs);
|
| const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id);
|
| - if (Compiler::always_optimize()) {
|
| + if (FLAG_precompilation) {
|
| // Megamorphic calls may occur in slow path stubs.
|
| // If valid use try_index argument.
|
| if (try_index == CatchClauseNode::kInvalidTryIndex) {
|
|
|