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

Unified Diff: src/macro-assembler.h

Issue 1012023002: Merge old data and pointer space. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/macro-assembler.h
diff --git a/src/macro-assembler.h b/src/macro-assembler.h
index 166ac428b57767f82f452a2870f93c8c34fac0a2..b59fd3b94d43fa54f2bfe6fe96dc9fc8356a3ad4 100644
--- a/src/macro-assembler.h
+++ b/src/macro-assembler.h
@@ -27,10 +27,8 @@ enum AllocationFlags {
SIZE_IN_WORDS = 1 << 2,
// Align the allocation to a multiple of kDoubleSize
DOUBLE_ALIGNMENT = 1 << 3,
- // Directly allocate in old pointer space
- PRETENURE_OLD_POINTER_SPACE = 1 << 4,
- // Directly allocate in old data space
- PRETENURE_OLD_DATA_SPACE = 1 << 5
+ // Directly allocate in old space
+ PRETENURE = 1 << 4,
};
@@ -251,11 +249,8 @@ class AllocationUtils {
public:
static ExternalReference GetAllocationTopReference(
Isolate* isolate, AllocationFlags flags) {
- 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);
+ if ((flags & PRETENURE) != 0) {
+ return ExternalReference::old_space_allocation_top_address(isolate);
}
return ExternalReference::new_space_allocation_top_address(isolate);
}
@@ -263,12 +258,8 @@ class AllocationUtils {
static ExternalReference GetAllocationLimitReference(
Isolate* isolate, AllocationFlags flags) {
- 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);
+ if ((flags & PRETENURE) != 0) {
+ return ExternalReference::old_space_allocation_limit_address(isolate);
}
return ExternalReference::new_space_allocation_limit_address(isolate);
}
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698