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

Unified Diff: runtime/vm/json_stream.cc

Issue 243973002: - Add a minimal implementation of Capability. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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 | « runtime/vm/json_stream.h ('k') | runtime/vm/message.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/json_stream.cc
===================================================================
--- runtime/vm/json_stream.cc (revision 35287)
+++ runtime/vm/json_stream.cc (working copy)
@@ -34,20 +34,11 @@
void JSONStream::Setup(Zone* zone,
- const Instance& reply_port,
+ Dart_Port reply_port,
const GrowableObjectArray& path,
const GrowableObjectArray& option_keys,
const GrowableObjectArray& option_values) {
- // Setup the reply port.
- const Object& id_obj = Object::Handle(
- DartLibraryCalls::PortGetId(reply_port));
- if (id_obj.IsError()) {
- Exceptions::PropagateError(Error::Cast(id_obj));
- }
- const Integer& id = Integer::Cast(id_obj);
- Dart_Port port = static_cast<Dart_Port>(id.AsInt64Value());
- ASSERT(port != ILLEGAL_PORT);
- set_reply_port(port);
+ set_reply_port(reply_port);
// Setup JSONStream arguments and options. The arguments and options
// are zone allocated and will be freed immediately after handling the
« no previous file with comments | « runtime/vm/json_stream.h ('k') | runtime/vm/message.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698