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

Unified Diff: lib/mirrors.cc

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: lib/mirrors.cc
===================================================================
--- lib/mirrors.cc (revision 11327)
+++ lib/mirrors.cc (working copy)
@@ -28,8 +28,7 @@
Integer& id = Integer::Handle();
id ^= id_obj.raw();
Dart_Port port_id = static_cast<Dart_Port>(id.AsInt64Value());
- const Bool& is_local = Bool::Handle(Bool::Get(PortMap::IsLocalPort(port_id)));
- arguments->SetReturn(is_local);
+ return Bool::Get(PortMap::IsLocalPort(port_id));
}

Powered by Google App Engine
This is Rietveld 408576698