| Index: runtime/vm/flow_graph_compiler_ia32.cc
|
| diff --git a/runtime/vm/flow_graph_compiler_ia32.cc b/runtime/vm/flow_graph_compiler_ia32.cc
|
| index 3a2ee04dbf3eb43ea4434bf3bf63b046ef978551..16bc7d4d2d1773c7aaf94993adfec55095e0bd98 100644
|
| --- a/runtime/vm/flow_graph_compiler_ia32.cc
|
| +++ b/runtime/vm/flow_graph_compiler_ia32.cc
|
| @@ -31,6 +31,7 @@ DEFINE_FLAG(bool, unbox_mints, true, "Optimize 64-bit integer arithmetic.");
|
|
|
| DECLARE_FLAG(bool, enable_simd_inline);
|
| DECLARE_FLAG(bool, use_megamorphic_stub);
|
| +DECLARE_FLAG(bool, precompilation);
|
|
|
|
|
| void MegamorphicSlowPath::EmitNativeCode(FlowGraphCompiler* compiler) {
|
| @@ -1137,7 +1138,7 @@ void FlowGraphCompiler::CompileGraph() {
|
| __ int3();
|
| 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.
|
| __ nop(CallPattern::pattern_length_in_bytes());
|
| @@ -1303,7 +1304,7 @@ void FlowGraphCompiler::EmitMegamorphicInstanceCall(
|
| RecordSafepoint(locs);
|
| const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id);
|
| // Precompilation not implemented on ia32 platform.
|
| - ASSERT(!Compiler::always_optimize());
|
| + ASSERT(!FLAG_precompilation);
|
| if (is_optimizing()) {
|
| AddDeoptIndexAtCall(deopt_id_after, token_pos);
|
| } else {
|
|
|