Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1364)

Unified Diff: runtime/vm/handles.cc

Issue 8528010: Changes to pass the current isolate to all runtime and native calls. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/handles.h ('k') | runtime/vm/handles_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « runtime/vm/handles.h ('k') | runtime/vm/handles_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698