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

Unified Diff: vm/native_arguments.h

Issue 10874072: Use the return value of vm native methods to set the return value, (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
Index: vm/native_arguments.h
===================================================================
--- vm/native_arguments.h (revision 11327)
+++ vm/native_arguments.h (working copy)
@@ -66,6 +66,10 @@
void SetReturn(const Object& value) const;
+ // If this function is misused, it could cause corruption. You may
+ // only use this if Siva says it is ok.
+ void SetReturnUnsafe(RawObject* value) const;
Ivan Posva 2012/08/27 18:20:37 Can we make this a private and do some friend magi
turnidge 2012/08/28 18:08:21 I tried it but it got a little bit involved. In o
turnidge 2012/08/29 20:36:49 As you suggested offline, I've created a Bootstrap
+
static intptr_t isolate_offset() {
return OFFSET_OF(NativeArguments, isolate_);
}

Powered by Google App Engine
This is Rietveld 408576698