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

Unified Diff: runtime/vm/native_arguments.h

Issue 22307003: Rearrange some methods so that they get inlined. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | runtime/vm/native_arguments.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | runtime/vm/native_arguments.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698