Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index bbcdd3b7b90a76ac01728da4a5782524cd902878..17979e6af4bd26feb22e7f9de0c88609284f9f6a 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -1075,6 +1075,11 @@ HValue* HGraphBuilder::BuildAllocateElements(HContext* context, |
total_size->ClearFlag(HValue::kCanOverflow); |
HAllocate::Flags flags = HAllocate::CAN_ALLOCATE_IN_NEW_SPACE; |
+ // TODO(hpayer): add support for old data space |
+ if (FLAG_pretenure_literals && !IsFastDoubleElementsKind(kind)) { |
+ flags = static_cast<HAllocate::Flags>( |
+ flags | HAllocate::CAN_ALLOCATE_IN_OLD_POINTER_SPACE); |
+ } |
if (IsFastDoubleElementsKind(kind)) { |
flags = static_cast<HAllocate::Flags>( |
flags | HAllocate::ALLOCATE_DOUBLE_ALIGNED); |