Index: runtime/vm/intermediate_language_mips.cc |
diff --git a/runtime/vm/intermediate_language_mips.cc b/runtime/vm/intermediate_language_mips.cc |
index c005041504d2b7ed7189c2d6b35d536c87b7e5e5..16c4367dad263c6ca8288258a2f2f0d1e796f420 100644 |
--- a/runtime/vm/intermediate_language_mips.cc |
+++ b/runtime/vm/intermediate_language_mips.cc |
@@ -7,6 +7,7 @@ |
#include "vm/intermediate_language.h" |
+#include "vm/compiler.h" |
#include "vm/dart_entry.h" |
#include "vm/flow_graph.h" |
#include "vm/flow_graph_compiler.h" |
@@ -2233,6 +2234,7 @@ void CreateArrayInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
Label slow_path, done; |
if (compiler->is_optimizing() && |
+ !Compiler::always_optimize() && |
num_elements()->BindsToConstant() && |
num_elements()->BoundConstant().IsSmi()) { |
const intptr_t length = Smi::Cast(num_elements()->BoundConstant()).Value(); |