Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 52cb9c0151c0cb8b3bea15ec5e248d6da5d917e9..87c91b6931c64fa542f1a6eadb76a880fffa4765 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -8479,7 +8479,8 @@ void HOptimizedGraphBuilder::VisitCallNew(CallNew* expr) { |
HValue* constructor = HPushArgument::cast(Top())->argument(); |
CHECK_ALIVE(VisitArgumentList(expr->arguments())); |
HCallNew* call; |
- if (!(expr->target().is_null()) && |
+ if (FLAG_optimize_constructed_arrays && |
+ !(expr->target().is_null()) && |
*(expr->target()) == isolate()->global_context()->array_function()) { |
Handle<Object> feedback = oracle()->GetInfo(expr->CallNewFeedbackId()); |
ASSERT(feedback->IsSmi()); |