Index: runtime/vm/native_arguments.h |
=================================================================== |
--- runtime/vm/native_arguments.h (revision 25803) |
+++ runtime/vm/native_arguments.h (working copy) |
@@ -7,6 +7,7 @@ |
#include "platform/assert.h" |
#include "vm/globals.h" |
+#include "vm/handles_impl.h" |
#include "vm/simulator.h" |
#include "vm/stub_code.h" |
@@ -110,7 +111,9 @@ |
} |
} |
- void SetReturn(const Object& value) const; |
+ void SetReturn(const Object& value) const { |
+ *retval_ = value.raw(); |
+ } |
static intptr_t isolate_offset() { |
return OFFSET_OF(NativeArguments, isolate_); |
@@ -164,7 +167,9 @@ |
// exceedingly careful when we use it. If there are any other side |
// effects in the statement that may cause GC, it could lead to |
// bugs. |
- void SetReturnUnsafe(RawObject* value) const; |
+ void SetReturnUnsafe(RawObject* value) const { |
+ *retval_ = value; |
+ } |
Isolate* isolate_; // Current isolate pointer. |
int argc_tag_; // Encodes argument count and invoked native call type. |