deps: backport 1f8555 from v8's upstream
authorFedor Indutny <fedor@indutny.com>
Sat, 11 Apr 2015 14:02:22 +0000 (16:02 +0200)
committerFedor Indutny <fedor@indutny.com>
Sat, 11 Apr 2015 19:06:40 +0000 (21:06 +0200)
commita5244d3a392d68e86e88b960c5b15c3c69f04d31
treedb57b5088cc890da978989749898d646c2d4f10f
parenta4d88475fadad33361da235a4ac49b5463f8ec74
deps: backport 1f8555 from v8's upstream

Original commit message:

    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}

Should help us identify and fix Handle leaks in core and user-space code.

NOTE: Works only in Debug build now, but is still better than nothing.

PR-URL: https://github.com/iojs/io.js/pull/1395
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
deps/v8/include/v8.h
deps/v8/src/api.cc
deps/v8/src/api.h
deps/v8/test/cctest/cctest.status
deps/v8/test/cctest/test-api.cc