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

Unified Diff: runtime/bin/dartutils.h

Issue 10411053: Finish file 'fuzzer' and fix issues. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typo Created 8 years, 7 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/bin/file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dartutils.h
diff --git a/runtime/bin/dartutils.h b/runtime/bin/dartutils.h
index 9f756bb8d9bb6203f5e5e96cbbd8e9c5afaf841a..a645d698a909d77690efe49f14e429c6fa2884d2 100644
--- a/runtime/bin/dartutils.h
+++ b/runtime/bin/dartutils.h
@@ -59,7 +59,14 @@ class DartUtils {
public:
// TODO(turnidge): Clean up the implementations of these so that
// they allow for proper error propagation.
+
+ // Assumes that the value object is known to be an integer object
+ // that fits in a signed 64-bit integer.
static int64_t GetIntegerValue(Dart_Handle value_obj);
+ // Checks that the value object is an integer object that fits in a
+ // signed 64-bit integer. If it is, the value is returned in the
+ // value out parameter and true is returned. Otherwise, false is
+ // returned.
static bool GetInt64Value(Dart_Handle value_obj, int64_t* value);
static const char* GetStringValue(Dart_Handle str_obj);
static bool GetBooleanValue(Dart_Handle bool_obj);
« no previous file with comments | « no previous file | runtime/bin/file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698