Add basic infrastructure for protecting V8's heap when leaving the VM
authorkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 24 Mar 2009 12:47:53 +0000 (12:47 +0000)
committerkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 24 Mar 2009 12:47:53 +0000 (12:47 +0000)
commitbc3fb1188184dcb1fea70dbfdcdf598aec936dce
tree2a3cbc3433c4806d572d5c3bd60a63436930d4fc
parent1ba34bf86b44de23d959620d1801d8e3d736eedb
Add basic infrastructure for protecting V8's heap when leaving the VM
and unprotecting it when (re)entering.  The functionality is enabled
by the flag --protect-heap and requires V8 to be built with
ENABLE_HEAP_PROTECTION and ENABLE_LOGGING_AND_PROFILING defined.

Implemented on Linux and Windows but not yet for other platforms.

Review URL: http://codereview.chromium.org/53004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1595 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
15 files changed:
src/flag-definitions.h
src/globals.h
src/heap.cc
src/heap.h
src/log.cc
src/platform-freebsd.cc
src/platform-linux.cc
src/platform-macos.cc
src/platform-nullos.cc
src/platform-win32.cc
src/platform.h
src/spaces-inl.h
src/spaces.cc
src/spaces.h
tools/test.py