api: introduce SealHandleScope
authorfedor <fedor@indutny.com>
Fri, 10 Apr 2015 23:17:09 +0000 (16:17 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 10 Apr 2015 23:17:09 +0000 (23:17 +0000)
commit1f85559a69fb385b9fd7d6724c6113e743ce6fec
treefb6fd8dee138174cba8e195d42ea062eebd8a812
parent60dc30970c344df26f30d0d2a81e0ce810d2a120
api: introduce SealHandleScope

When debugging Handle leaks in io.js we found it very convenient to be
able to Seal some specific (root in our case) scope to prevent Handle
allocations in it, and easily find leakage.

R=yangguo
BUG=

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

Cr-Commit-Position: refs/heads/master@{#27766}
include/v8.h
src/api.cc
src/api.h
test/cctest/cctest.status
test/cctest/test-api.cc