Index: src/macro-assembler.h |
diff --git a/src/macro-assembler.h b/src/macro-assembler.h |
index 55dccfa95041330db89872895801f049f54fcfbf..9fdf2ee7d8616a63ef86db786ed59390dfb15de2 100644 |
--- a/src/macro-assembler.h |
+++ b/src/macro-assembler.h |
@@ -51,7 +51,9 @@ enum AllocationFlags { |
// Align the allocation to a multiple of kDoubleSize |
DOUBLE_ALIGNMENT = 1 << 3, |
// Directly allocate in old pointer space |
- PRETENURE_OLD_POINTER_SPACE = 1 << 4 |
+ PRETENURE_OLD_POINTER_SPACE = 1 << 4, |
+ // Directly allocate in old data space |
+ PRETENURE_OLD_DATA_SPACE = 1 << 5 |
}; |
@@ -175,17 +177,26 @@ class AllocationUtils { |
public: |
static ExternalReference GetAllocationTopReference( |
Isolate* isolate, AllocationFlags flags) { |
- return ((flags & PRETENURE_OLD_POINTER_SPACE) != 0) ? |
- ExternalReference::old_pointer_space_allocation_top_address(isolate) : |
- ExternalReference::new_space_allocation_top_address(isolate); |
+ if ((flags & PRETENURE_OLD_POINTER_SPACE) != 0) { |
+ return ExternalReference::old_pointer_space_allocation_top_address( |
+ isolate); |
+ } else if ((flags & PRETENURE_OLD_DATA_SPACE) != 0) { |
+ return ExternalReference::old_data_space_allocation_top_address(isolate); |
+ } |
+ return ExternalReference::new_space_allocation_top_address(isolate); |
} |
static ExternalReference GetAllocationLimitReference( |
Isolate* isolate, AllocationFlags flags) { |
- return ((flags & PRETENURE_OLD_POINTER_SPACE) != 0) ? |
- ExternalReference::old_pointer_space_allocation_limit_address(isolate) : |
- ExternalReference::new_space_allocation_limit_address(isolate); |
+ if ((flags & PRETENURE_OLD_POINTER_SPACE) != 0) { |
+ return ExternalReference::old_pointer_space_allocation_limit_address( |
+ isolate); |
+ } else if ((flags & PRETENURE_OLD_DATA_SPACE) != 0) { |
+ return ExternalReference::old_data_space_allocation_limit_address( |
+ isolate); |
+ } |
+ return ExternalReference::new_space_allocation_limit_address(isolate); |
} |
}; |