Index: src/handles.cc |
diff --git a/src/handles.cc b/src/handles.cc |
index 946c1008aae1975ce143aaaee9c2cbb3c0f88b6e..e98e8433b60ea3f230751fefbb0683439ac5eee3 100644 |
--- a/src/handles.cc |
+++ b/src/handles.cc |
@@ -961,13 +961,15 @@ int Utf8Length(Handle<String> str) { |
DeferredHandleScope::DeferredHandleScope(Isolate* isolate) |
: impl_(isolate->handle_scope_implementer()) { |
+ ASSERT(impl_->isolate() == Isolate::Current()); |
impl_->BeginDeferredScope(); |
+ v8::ImplementationUtilities::HandleScopeData* data = |
+ impl_->isolate()->handle_scope_data(); |
Object** new_next = impl_->GetSpareOrNewBlock(); |
Object** new_limit = &new_next[kHandleBlockSize]; |
+ ASSERT(data->limit == &impl_->blocks()->last()[kHandleBlockSize]); |
impl_->blocks()->Add(new_next); |
- v8::ImplementationUtilities::HandleScopeData* data = |
- impl_->isolate()->handle_scope_data(); |
#ifdef DEBUG |
prev_level_ = data->level; |
#endif |