Index: runtime/vm/intermediate_language_arm64.cc |
diff --git a/runtime/vm/intermediate_language_arm64.cc b/runtime/vm/intermediate_language_arm64.cc |
index 7707e0b3d4c78515d666ce2c7c085c9bc3e71bf3..7f85d09ff3ee53d8f1fc77c552c9a6831600ba6c 100644 |
--- a/runtime/vm/intermediate_language_arm64.cc |
+++ b/runtime/vm/intermediate_language_arm64.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" |
@@ -2102,6 +2103,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(); |