Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(446)

Unified Diff: src/hydrogen.cc

Issue 12314155: Allow direct allocation in old pointer space. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698