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

Unified Diff: vm/dart_api_impl.cc

Issue 10919039: The forward declaration of Dart_SetReturnValue in native_arguments.h (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 4 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 | vm/native_arguments.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/dart_api_impl.cc
===================================================================
--- vm/dart_api_impl.cc (revision 11717)
+++ vm/dart_api_impl.cc (working copy)
@@ -3716,14 +3716,20 @@
}
-DART_EXPORT void Dart_SetReturnValue(Dart_NativeArguments args,
- Dart_Handle retval) {
+// This function has friend access to SetReturnUnsafe.
+void SetReturnValueHelper(Dart_NativeArguments args, Dart_Handle retval) {
NoGCScope no_gc_scope;
NativeArguments* arguments = reinterpret_cast<NativeArguments*>(args);
arguments->SetReturnUnsafe(Api::UnwrapHandle(retval));
}
+DART_EXPORT void Dart_SetReturnValue(Dart_NativeArguments args,
+ Dart_Handle retval) {
+ SetReturnValueHelper(args, retval);
+}
+
+
// --- Scripts and Libraries ---
« no previous file with comments | « no previous file | vm/native_arguments.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698