v8/src/extensions
mstarzinger@chromium.org ebb44f0d30 Expose gc(true) to JavaScript, which triggers a scavenger GC.
With the --expose_gc option, gc() is exposed to JavaScript. Currently gc() triggers a full GC.

To enable JavaScript to test the behavior of a scavenger GC, this patch exposes gc(true). If the first argument is true, gc(...) triggers a scavenger GC. Otherwise, gc(...) triggers a full GC.

BUG=
Test=Manually confirmed that gc() and gc(false) trigger a full GC and that gc(true) triggers a scavenger GC.

Review URL: https://codereview.chromium.org/11232065
Patch from Kentaro Hara <haraken@chromium.org>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12815 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2012-10-25 12:23:03 +00:00
..
externalize-string-extension.cc Valgrind cleanliness, part 5: Delete extensions on exit. 2012-03-29 09:45:46 +00:00
externalize-string-extension.h Extract extensions to a separate directory. 2010-11-17 12:28:30 +00:00
gc-extension.cc Expose gc(true) to JavaScript, which triggers a scavenger GC. 2012-10-25 12:23:03 +00:00
gc-extension.h Extract extensions to a separate directory. 2010-11-17 12:28:30 +00:00
statistics-extension.cc Fix Win64 compile error caused by r12272. 2012-08-08 09:46:45 +00:00
statistics-extension.h Expose counters in javascript. 2012-07-18 12:27:29 +00:00