Revision: 14929
Author: [email protected]
Date: Tue Jun 4 01:06:53 2013
Log: Revert accidental change to SealHandleScope.
[email protected]
BUG=
Review URL: https://chromiumcodereview.appspot.com/16226007
http://code.google.com/p/v8/source/detail?r=14929
Modified:
/branches/bleeding_edge/src/handles-inl.h
/branches/bleeding_edge/src/handles.h
=======================================
--- /branches/bleeding_edge/src/handles-inl.h Mon Jun 3 08:32:22 2013
+++ /branches/bleeding_edge/src/handles-inl.h Tue Jun 4 01:06:53 2013
@@ -185,8 +185,8 @@
isolate_->handle_scope_data();
// Shrink the current handle scope to make it impossible to do
// handle allocations without an explicit handle scope.
+ limit_ = current->limit;
current->limit = current->next;
-
level_ = current->level;
current->level = 0;
}
@@ -195,10 +195,12 @@
inline SealHandleScope::~SealHandleScope() {
// Restore state in current handle scope to re-enable handle
// allocations.
- v8::ImplementationUtilities::HandleScopeData* data =
+ v8::ImplementationUtilities::HandleScopeData* current =
isolate_->handle_scope_data();
- ASSERT_EQ(0, data->level);
- data->level = level_;
+ ASSERT_EQ(0, current->level);
+ current->level = level_;
+ ASSERT_EQ(current->next, current->limit);
+ current->limit = limit_;
}
#endif
=======================================
--- /branches/bleeding_edge/src/handles.h Mon Jun 3 08:32:22 2013
+++ /branches/bleeding_edge/src/handles.h Tue Jun 4 01:06:53 2013
@@ -345,7 +345,6 @@
Isolate* isolate_;
Object** limit_;
int level_;
- bool active_;
#endif
};
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.