Revert accidental change to SealHandleScope.

R=dslomov@chromium.org
BUG=

Review URL: https://chromiumcodereview.appspot.com/16226007

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14929 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
yangguo@chromium.org 2013-06-04 08:06:53 +00:00
parent b9e025a8dc
commit b10a3abdfe
2 changed files with 6 additions and 5 deletions

View File

@ -185,8 +185,8 @@ inline SealHandleScope::SealHandleScope(Isolate* isolate) : isolate_(isolate) {
isolate_->handle_scope_data(); isolate_->handle_scope_data();
// Shrink the current handle scope to make it impossible to do // Shrink the current handle scope to make it impossible to do
// handle allocations without an explicit handle scope. // handle allocations without an explicit handle scope.
limit_ = current->limit;
current->limit = current->next; current->limit = current->next;
level_ = current->level; level_ = current->level;
current->level = 0; current->level = 0;
} }
@ -195,10 +195,12 @@ inline SealHandleScope::SealHandleScope(Isolate* isolate) : isolate_(isolate) {
inline SealHandleScope::~SealHandleScope() { inline SealHandleScope::~SealHandleScope() {
// Restore state in current handle scope to re-enable handle // Restore state in current handle scope to re-enable handle
// allocations. // allocations.
v8::ImplementationUtilities::HandleScopeData* data = v8::ImplementationUtilities::HandleScopeData* current =
isolate_->handle_scope_data(); isolate_->handle_scope_data();
ASSERT_EQ(0, data->level); ASSERT_EQ(0, current->level);
data->level = level_; current->level = level_;
ASSERT_EQ(current->next, current->limit);
current->limit = limit_;
} }
#endif #endif

View File

@ -345,7 +345,6 @@ class SealHandleScope BASE_EMBEDDED {
Isolate* isolate_; Isolate* isolate_;
Object** limit_; Object** limit_;
int level_; int level_;
bool active_;
#endif #endif
}; };