Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 204ec20adb8c2d3ff358e37d008625dc5829a1fa..cf80e668b10c2c0ce14fe40e700132ea7aa1fbcb 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -1058,6 +1058,10 @@ HValue* HGraphBuilder::BuildAllocateElements(HContext* context, |
total_size->ClearFlag(HValue::kCanOverflow); |
HAllocate::Flags flags = HAllocate::CAN_ALLOCATE_IN_NEW_SPACE; |
+ if (FLAG_pretenure_objects) { |
+ flags = static_cast<HAllocate::Flags>( |
+ flags | HAllocate::CAN_ALLOCATE_IN_OLD_POINTER_SPACE); |
danno
2013/03/05 12:18:18
I think this belongs inside HAllocate for now if t
Hannes Payer (out of office)
2013/03/11 17:16:31
I think it is cleaner to add it to the callers of
|
+ } |
mvstanton
2013/03/05 09:35:57
This is a cool example of how you request in hydro
Hannes Payer (out of office)
2013/03/11 17:16:31
Done.
|
if (IsFastDoubleElementsKind(kind)) { |
flags = static_cast<HAllocate::Flags>( |
flags | HAllocate::ALLOCATE_DOUBLE_ALIGNED); |