Fix handle zapping interaction with NoHandleAllocation.
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 29 May 2013 11:09:01 +0000 (11:09 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 29 May 2013 11:09:01 +0000 (11:09 +0000)
commitbc9bc0de1a43b58d3e05e37f8e334d1cb10ed47d
tree729f71d91359faa2fba250f62181464966ea1911
parentccae2a75ca8c77163228ca4876430b24462f1297
Fix handle zapping interaction with NoHandleAllocation.

This makes sure that closed handle scopes are properly zapped even if an
enclosing NoHandleAllocation shrunk the limit. It also unifies the code
that performs scope closing for internal and external handle scopes.

R=svenpanne@chromium.org
TEST=cctest/test-api/NestedLockersNoTryCatch

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14876 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/api.cc
src/api.h
src/handles-inl.h
src/handles.h