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

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
Index: runtime/vm/dart_api_state.h
===================================================================
--- runtime/vm/dart_api_state.h (revision 1428)
+++ runtime/vm/dart_api_state.h (working copy)
@@ -347,8 +347,8 @@
}
PersistentHandle* Null() {
if (null_ == NULL) {
- Zone zone; // Setup a VM zone as we are creating some handles.
- HandleScope scope; // Setup a VM handle scope.
+ Isolate* isolate = Isolate::Current();
+ DARTSCOPE(isolate);
Object& null_object = Object::Handle();
null_ = persistent_handles().AllocateHandle();
@@ -359,8 +359,8 @@
}
PersistentHandle* True() {
if (true_ == NULL) {
- Zone zone; // Setup a VM zone as we are creating some handles.
- HandleScope scope; // Setup a VM handle scope.
+ Isolate* isolate = Isolate::Current();
+ DARTSCOPE(isolate);
const Object& true_object = Object::Handle(Bool::True());
true_ = persistent_handles().AllocateHandle();
@@ -371,8 +371,8 @@
}
PersistentHandle* False() {
if (false_ == NULL) {
- Zone zone; // Setup a VM zone as we are creating some handles.
- HandleScope scope; // Setup a VM handle scope.
+ Isolate* isolate = Isolate::Current();
+ DARTSCOPE(isolate);
const Object& false_object = Object::Handle(Bool::False());
false_ = persistent_handles().AllocateHandle();

Powered by Google App Engine
This is Rietveld 408576698