Index: runtime/vm/json_stream.cc |
=================================================================== |
--- runtime/vm/json_stream.cc (revision 31674) |
+++ runtime/vm/json_stream.cc (working copy) |
@@ -10,13 +10,15 @@ |
namespace dart { |
-JSONStream::JSONStream(intptr_t buf_size) : buffer_(buf_size) { |
- open_objects_ = 0; |
- arguments_ = NULL; |
- num_arguments_ = 0; |
- option_keys_ = NULL; |
- option_values_ = NULL; |
- num_options_ = 0; |
+JSONStream::JSONStream(intptr_t buf_size) |
+ : open_objects_(0), |
+ buffer_(buf_size), |
+ reply_port_(ILLEGAL_PORT), |
+ arguments_(NULL), |
+ num_arguments_(0), |
+ option_keys_(NULL), |
+ option_values_(NULL), |
+ num_options_(0) { |
} |
@@ -181,6 +183,11 @@ |
} |
+void JSONStream::SetReplyPort(Dart_Port port) { |
Cutch
2014/01/09 23:03:23
Style guide says this should be set_reply_port
turnidge
2014/01/15 20:21:04
Ok.
|
+ reply_port_ = port; |
+} |
+ |
+ |
void JSONStream::SetArguments(const char** arguments, intptr_t num_arguments) { |
arguments_ = arguments; |
num_arguments_ = num_arguments; |