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

Unified Diff: runtime/vm/object.h

Issue 9956133: Remove many calls to Isolate::Current() in the dart embedding api by (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 months 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/native_entry.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 6132)
+++ runtime/vm/object.h (working copy)
@@ -48,6 +48,9 @@
static object& Handle() { \
return Handle(Isolate::Current(), object::null()); \
} \
+ static object& Handle(Isolate* islt) { \
siva 2012/04/03 23:56:59 isolate instead of islt?
turnidge 2012/04/04 00:00:51 Done. Also updated nearby instances of the same t
+ return Handle(islt, object::null()); \
+ } \
static object& Handle(Raw##object* raw_ptr) { \
return Handle(Isolate::Current(), raw_ptr); \
} \
@@ -233,6 +236,10 @@
return Handle(Isolate::Current(), null_);
}
+ static Object& Handle(Isolate* isolate) {
+ return Handle(isolate, null_);
+ }
+
static Object& Handle(RawObject* raw_ptr) {
return Handle(Isolate::Current(), raw_ptr);
}
« no previous file with comments | « runtime/vm/native_entry.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698