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

Unified Diff: runtime/vm/dart_api_impl.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 | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl.h
===================================================================
--- runtime/vm/dart_api_impl.h (revision 6189)
+++ runtime/vm/dart_api_impl.h (working copy)
@@ -73,7 +73,7 @@
class Api : AllStatic {
public:
// Creates a new local handle.
- static Dart_Handle NewLocalHandle(const Object& object);
+ static Dart_Handle NewLocalHandle(Isolate* isolate, const Object& object);
// Unwraps the raw object from the handle.
static RawObject* UnwrapHandle(Dart_Handle object);
@@ -81,7 +81,8 @@
// Unwraps a raw Type from the handle. The handle will be null if
// the object was not of the requested Type.
#define DECLARE_UNWRAP(Type) \
- static const Type& Unwrap##Type##Handle(Dart_Handle object);
+ static const Type& Unwrap##Type##Handle(Isolate* isolate, \
+ Dart_Handle object);
CLASS_LIST_NO_OBJECT(DECLARE_UNWRAP)
#undef DECLARE_UNWRAP
@@ -108,25 +109,28 @@
static Dart_Isolate CastIsolate(Isolate* isolate);
// Gets the handle used to designate successful return.
- static Dart_Handle Success();
+ static Dart_Handle Success(Isolate* isolate);
// Generates a handle used to designate an error return.
static Dart_Handle NewError(const char* format, ...);
// Gets a handle to Null.
- static Dart_Handle Null();
+ static Dart_Handle Null(Isolate* isolate);
// Gets a handle to True.
- static Dart_Handle True();
+ static Dart_Handle True(Isolate* isolate);
// Gets a handle to False
- static Dart_Handle False();
+ static Dart_Handle False(Isolate* isolate);
// Allocates space in the local zone.
- static uword Allocate(intptr_t size);
+ static uword Allocate(Isolate* isolate, intptr_t size);
// Reallocates space in the local zone.
- static uword Reallocate(uword ptr, intptr_t old_size, intptr_t new_size);
+ static uword Reallocate(Isolate* isolate,
+ uword ptr,
+ intptr_t old_size,
+ intptr_t new_size);
// Performs one-time initialization needed by the API.
static void InitOnce();
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698