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

Unified Diff: src/base/sys-info.cc

Issue 2175193003: Remove NaCl support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 years, 5 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/base/platform/semaphore.cc ('k') | src/d8.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/sys-info.cc
diff --git a/src/base/sys-info.cc b/src/base/sys-info.cc
index a2dc6ab27fc7e8f649dfd2dcc005092ee404de09..1b6d39397e73346b2195fc5889375b1b574fd0b6 100644
--- a/src/base/sys-info.cc
+++ b/src/base/sys-info.cc
@@ -85,9 +85,6 @@ int64_t SysInfo::AmountOfPhysicalMemory() {
return 0;
}
return static_cast<int64_t>(stat_buf.st_size);
-#elif V8_OS_NACL
- // No support for _SC_PHYS_PAGES, assume 2GB.
- return static_cast<int64_t>(1) << 31;
#elif V8_OS_AIX
int64_t result = sysconf(_SC_AIX_REALMEM);
return static_cast<int64_t>(result) * 1024L;
@@ -104,7 +101,7 @@ int64_t SysInfo::AmountOfPhysicalMemory() {
// static
int64_t SysInfo::AmountOfVirtualMemory() {
-#if V8_OS_NACL || V8_OS_WIN
+#if V8_OS_WIN
return 0;
#elif V8_OS_POSIX
struct rlimit rlim;
« no previous file with comments | « src/base/platform/semaphore.cc ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698