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

Unified Diff: runtime/vm/dart_api_impl.h

Issue 282883002: Add a new API function to extract all the native arguments into an array (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | « runtime/include/dart_api.h ('k') | 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 36461)
+++ runtime/vm/dart_api_impl.h (working copy)
@@ -224,6 +224,22 @@
int arg_index,
bool* value);
+ // Helper function to get the integer value of a Integer native argument.
+ static bool GetNativeIntegerArgument(NativeArguments* args,
+ int arg_index,
+ int64_t* value);
+
+ // Helper function to get the double value of a Double native argument.
+ static bool GetNativeDoubleArgument(NativeArguments* args,
+ int arg_index,
+ double* value);
+
+ // Helper function to get the native fields of an Instance native argument.
+ static bool GetNativeFieldsOfArgument(NativeArguments* args,
+ int arg_index,
+ int num_fields,
+ intptr_t* field_values);
+
// Helper function to set the return value of native functions.
static void SetReturnValue(NativeArguments* args, Dart_Handle retval) {
args->SetReturnUnsafe(UnwrapHandle(retval));
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698