Index: runtime/vm/intermediate_language_arm.cc |
diff --git a/runtime/vm/intermediate_language_arm.cc b/runtime/vm/intermediate_language_arm.cc |
index 878dba14c2cb32c022e42405e306e10f26a59617..8d6e6c152e347dac455c99933c810b6ceacd06c5 100644 |
--- a/runtime/vm/intermediate_language_arm.cc |
+++ b/runtime/vm/intermediate_language_arm.cc |
@@ -8,6 +8,7 @@ |
#include "vm/intermediate_language.h" |
#include "vm/cpu.h" |
+#include "vm/compiler.h" |
#include "vm/dart_entry.h" |
#include "vm/flow_graph.h" |
#include "vm/flow_graph_compiler.h" |
@@ -2379,6 +2380,7 @@ void CreateArrayInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
ASSERT(locs()->in(kLengthPos).reg() == kLengthReg); |
if (compiler->is_optimizing() && |
+ !Compiler::always_optimize() && |
num_elements()->BindsToConstant() && |
num_elements()->BoundConstant().IsSmi()) { |
const intptr_t length = Smi::Cast(num_elements()->BoundConstant()).Value(); |