Add methods to enable configuration of ResourceConstraints based on limits derived...
authorhpayer@chromium.org <hpayer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 26 Sep 2013 13:31:19 +0000 (13:31 +0000)
committerhpayer@chromium.org <hpayer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 26 Sep 2013 13:31:19 +0000 (13:31 +0000)
commita57300fb9ea6e65fe02824304bd3f52ffdd8935e
tree97aba6399d25bad5bfef2853f402df73203afe8c
parent582e6ad41b29063cc2d2c7e430341024471632ea
Add methods to enable configuration of ResourceConstraints based on limits derived at runtime.

Adds ConfigureResourceConstraintsForCurrentPlatform and SetDefaultResourceConstraintsForCurrentPlatform which configure the heap based on the available physical memory, rather than hard-coding by platform as previous.  This change also adds OS::TotalPhysicalMemory to platform.h.

BUG=292928
R=danno@chromium.org, hpayer@chromium.org

Review URL: https://codereview.chromium.org/24269003

Patch from Ross McIlroy <rmcilroy@chromium.org>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16964 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
include/v8-defaults.h [new file with mode: 0644]
include/v8-testing.h
include/v8.h
src/d8.cc
src/defaults.cc [new file with mode: 0644]
src/globals.h
src/heap.cc
src/platform-posix.cc
src/platform-win32.cc
src/platform.h
tools/gyp/v8.gyp