Temporarily disable calls to OS::TotalPhysicalMemory to avoid ASSERT when running under the Chrome Sandbox.

This CL reverts the behaviour added in r16983 to avoid calling OS::TotalPhysicalMemory
which fails an assert in the Chrome Sandbox.  It reverts the default
ResourceConstraints behaviour to that of V8 before r16983 (i.e., baseing these
values purely on hard-coded checks against 64bit/32bit and Android/non-Android.
This will be reverted once http://crbug.com/312241 has been resolved.

BUG=312241
R=titzer@chromium.org

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

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@17415 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
Remove assertion in SetResourceConstraints.

BUG=312233
R=rmcilroy@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@17416 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
Return early from BinaryOpIC::Transition when the JS call failed

This avoids an ASSERT failure in Chromium net_unittests.

R=yangguo@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@17417 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
Work around two ASSERTs that we're hitting now that DEBUG is #defined again

R=danno@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@17418 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
Prepare push to trunk.  Now working on version 3.22.24.

R=danno@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@17419 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
Function ElementsAreSafeToExamine was undefined in release heap verify.

R=jkummerow@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@17422 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
Temporarily allow HistogramTimerScopes to be nested

R=bmeurer@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@17425 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
Add SystemHeapAllocator to public API

The SystemHeapAllocator structure contains callbacks to be used to allocate
memory from the system heap. The allocation is to be done by default using
the functions from the C/C++ library (e.g. malloc/free).

The v8::Isolate::New() function receives a SystemHeapAllocator pointer, and
all the memory allocation from the system heap done by the newly created
Isolate (and the Isolate instance itself) will be done using the callbacks
in it.
Add internal SystemHeapAllocat{or,ed} utility classes

This SystemHeapAllocator class provides utility functions which
work with the SystemHeapAllocator defined in the public API, making
it more convenient to use.

SystemHeapAllocated is meant to be used as base class for objects
that are to be allocated using SystemHeapAllocator. It defines
operators to use placement-new with a SystemHeapAllocator, and
an allocator-aware Dispose() method to be used instead of the
global delete operator.
Implement v8::SystemHeapAllocator::{get,set}Default

Those functions access a static global which is preinitialized to an
allocator that uses the system C library malloc() and free() functions.
Add SystemHeapAllocatorObject utility class

The SystemHeapAllocatorObject class is intended to be used as a base class
for objects which are allocated via a SystemHeapAllocator. The class defines
custom new/delete operators. Allocation is done via placement-new, and the
allocator will embed a copy of itself (read: a pointer) in the allocated
memory area, so the delete operator can retrieve it to perform the
deallocation.
Base Isolate on SystemHeapAllocatorObject
Base Isolate::ThreadDataTable on SystemHeapAllocated
Base Logger on SystemHeapAllocated
Base Counters on SystemHeapAllocated
Base UnicodeCache on SystemHeapAllocated
Base DateCache on SystemHeapAllocated
Base CompilationCache on SystemHeapAllocated
Base Bootstrapper on SystemHeapAllocated
Base ThreadManager on SystemHeapAllocated