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

Unified Diff: runtime/bin/dartutils.h

Issue 91043003: Simplify some argument checking for socket calls (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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/dartutils.cc » ('j') | runtime/bin/socket.cc » ('J')
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 a9c3410d5468b01c081c7dd326800ab748e134a7..b3132bbf03d6655b54872c5126e6f80b98811fcd 100644
--- a/runtime/bin/dartutils.h
+++ b/runtime/bin/dartutils.h
@@ -81,6 +81,11 @@ class DartUtils {
// Returns the integer value of a Dart object. If the object is not
// an integer value an API error is propagated.
static int64_t GetIntegerValue(Dart_Handle value_obj);
+ // Returns the integer value of a Dart object. If the object is not
+ // an integer value or outside the requested range an API error is
+ // propagated.
+ static int64_t GetIntegerValueCheckRange(
+ Dart_Handle value_obj, int64_t lower, int64_t upper);
// Returns the intptr_t value of a Dart object. If the object is not
// an integer value or the value is outside the intptr_t range an
// API error is propagated.
« no previous file with comments | « no previous file | runtime/bin/dartutils.cc » ('j') | runtime/bin/socket.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698