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

Unified Diff: runtime/vm/dart_api_state.h

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/dart_api_impl_test.cc ('k') | runtime/vm/handles.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_state.h
===================================================================
--- runtime/vm/dart_api_state.h (revision 1496)
+++ runtime/vm/dart_api_state.h (working copy)
@@ -347,8 +347,7 @@
}
PersistentHandle* Null() {
if (null_ == NULL) {
- Zone zone; // Setup a VM zone as we are creating some handles.
- HandleScope scope; // Setup a VM handle scope.
+ DARTSCOPE(Isolate::Current());
Object& null_object = Object::Handle();
null_ = persistent_handles().AllocateHandle();
@@ -359,8 +358,7 @@
}
PersistentHandle* True() {
if (true_ == NULL) {
- Zone zone; // Setup a VM zone as we are creating some handles.
- HandleScope scope; // Setup a VM handle scope.
+ DARTSCOPE(Isolate::Current());
const Object& true_object = Object::Handle(Bool::True());
true_ = persistent_handles().AllocateHandle();
@@ -371,8 +369,7 @@
}
PersistentHandle* False() {
if (false_ == NULL) {
- Zone zone; // Setup a VM zone as we are creating some handles.
- HandleScope scope; // Setup a VM handle scope.
+ DARTSCOPE(Isolate::Current());
const Object& false_object = Object::Handle(Bool::False());
false_ = persistent_handles().AllocateHandle();
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/handles.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698