| Index: runtime/vm/handles.cc
|
| ===================================================================
|
| --- runtime/vm/handles.cc (revision 1496)
|
| +++ runtime/vm/handles.cc (working copy)
|
| @@ -69,15 +69,15 @@
|
| }
|
|
|
|
|
| -HandleScope::HandleScope() : StackResource() {
|
| - ASSERT(isolate()->no_handle_scope_depth() == 0);
|
| - VMHandles* handles = isolate()->current_zone()->handles();
|
| +HandleScope::HandleScope(Isolate* isolate) : StackResource(isolate) {
|
| + ASSERT(isolate->no_handle_scope_depth() == 0);
|
| + VMHandles* handles = isolate->current_zone()->handles();
|
| ASSERT(handles != NULL);
|
| saved_handle_block_ = handles->scoped_blocks_;
|
| saved_handle_slot_ = handles->scoped_blocks_->next_handle_slot();
|
| #if defined(DEBUG)
|
| - link_ = isolate()->top_handle_scope();
|
| - isolate()->set_top_handle_scope(this);
|
| + link_ = isolate->top_handle_scope();
|
| + isolate->set_top_handle_scope(this);
|
| #endif
|
| }
|
|
|
| @@ -98,8 +98,8 @@
|
|
|
|
|
| #if defined(DEBUG)
|
| -NoHandleScope::NoHandleScope() : StackResource() {
|
| - isolate()->IncrementNoHandleScopeDepth();
|
| +NoHandleScope::NoHandleScope(Isolate* isolate) : StackResource(isolate) {
|
| + isolate->IncrementNoHandleScopeDepth();
|
| }
|
|
|
|
|
|
|