Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 14feb5f1329eb89b3a738525e5640057d39a4202..2996471b01a52d3b7a82cd232a4f1f697abf41d7 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -1078,10 +1078,14 @@ 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 (FLAG_pretenure_literals) { |
+ if (IsFastDoubleElementsKind(kind)) { |
+ flags = static_cast<HAllocate::Flags>( |
+ flags | HAllocate::CAN_ALLOCATE_IN_OLD_DATA_SPACE); |
+ } else { |
+ flags = static_cast<HAllocate::Flags>( |
+ flags | HAllocate::CAN_ALLOCATE_IN_OLD_POINTER_SPACE); |
+ } |
} |
if (IsFastDoubleElementsKind(kind)) { |
flags = static_cast<HAllocate::Flags>( |