Index: runtime/vm/intermediate_language_x64.cc |
diff --git a/runtime/vm/intermediate_language_x64.cc b/runtime/vm/intermediate_language_x64.cc |
index 3d30dc0a2e639f07f52c6257f1f226e9b2cf42af..07f30fb1b3ecc890aa5b0e5b1596803f7bc2eeab 100644 |
--- a/runtime/vm/intermediate_language_x64.cc |
+++ b/runtime/vm/intermediate_language_x64.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" |
@@ -2117,6 +2118,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(); |