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

Unified Diff: runtime/bin/dartutils.h

Issue 9657001: Start using Dart_PropagateError in the runtime/bin directory. (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
Index: runtime/bin/dartutils.h
===================================================================
--- runtime/bin/dartutils.h (revision 5191)
+++ runtime/bin/dartutils.h (working copy)
@@ -56,6 +56,10 @@
class DartUtils {
public:
+ // The following Get/Set functions can call Dart_PropagateError(),
+ // which will never return. If you have memory to deallocate or
+ // other C++ level cleanup pending, it is not approprate to call
+ // these functions.
Søren Gjesse 2012/03/08 21:18:46 I can see how Dart_PropagateError makes it simpler
turnidge 2012/03/08 22:19:26 From offline discussion. I will change the api to
static int64_t GetIntegerValue(Dart_Handle value_obj);
static const char* GetStringValue(Dart_Handle str_obj);
static bool GetBooleanValue(Dart_Handle bool_obj);
@@ -67,6 +71,7 @@
static void SetStringField(Dart_Handle handle,
const char* name,
const char* val);
+
static bool IsDartSchemeURL(const char* url_name);
static bool IsDartExtensionSchemeURL(const char* url_name);
static bool IsDartIOLibURL(const char* url_name);
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/dartutils.cc » ('j') | runtime/bin/file.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698