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

Unified Diff: src/api.cc

Issue 325343003: Revert "Rename kIs64BitArch with kRequiresCodeRange." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | « no previous file | src/globals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 6e76d9ac0586adca5246de9afd5df1cdad3591b1..cc9cd3ae9f60820190948cf403fda7f349a9d9cb 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -465,12 +465,11 @@ void ResourceConstraints::ConfigureDefaults(uint64_t physical_memory,
set_max_available_threads(i::Max(i::Min(number_of_processors, 4u), 1u));
- if (virtual_memory_limit > 0 && i::kRequiresCodeRange) {
+ if (virtual_memory_limit > 0 && i::kIs64BitArch) {
// Reserve no more than 1/8 of the memory for the code range, but at most
- // kMaximalCodeRangeSize.
+ // 512 MB.
set_code_range_size(
- i::Min(i::kMaximalCodeRangeSize / i::MB,
- static_cast<int>((virtual_memory_limit >> 3) / i::MB)));
+ i::Min(512, static_cast<int>((virtual_memory_limit >> 3) / i::MB)));
}
}
« no previous file with comments | « no previous file | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698