diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-04-17 16:10:37 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-04-17 16:10:37 +0200 |
commit | 9f682265d6631a29457abeb53827d01fa77493c8 (patch) | |
tree | 92a1eec49b1f280931598a72dcf0cca3d795f210 /deps/v8/src/macro-assembler.h | |
parent | 951e0b69fa3c8b1a5d708e29de9d6f7d1db79827 (diff) | |
download | node-new-9f682265d6631a29457abeb53827d01fa77493c8.tar.gz |
deps: upgrade v8 to 3.18.0
Diffstat (limited to 'deps/v8/src/macro-assembler.h')
-rw-r--r-- | deps/v8/src/macro-assembler.h | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/deps/v8/src/macro-assembler.h b/deps/v8/src/macro-assembler.h index 55dccfa950..9fdf2ee7d8 100644 --- a/deps/v8/src/macro-assembler.h +++ b/deps/v8/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); } }; |