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

Unified Diff: runtime/vm/dart_api_impl.h

Issue 12082126: Cleanup api for isolate state checking. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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 18012)
+++ runtime/vm/dart_api_impl.h (working copy)
@@ -58,8 +58,6 @@
HANDLESCOPE(__temp_isolate__);
-const char* CheckIsolateState(Isolate *isolate);
-
void SetupErrorResult(Dart_Handle* handle);
@@ -98,6 +96,10 @@
const ApiState& state,
Dart_Handle object);
+ // Returns an Error handle if isolate is in an inconsistent state.
+ // Returns a Success handle when no error condition exists.
+ static Dart_Handle CheckIsolateState(Isolate *isolate);
+
// Casts the internal Isolate* type to the external Dart_Isolate type.
static Dart_Isolate CastIsolate(Isolate* isolate);
« 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