Index: runtime/vm/json_stream.cc |
=================================================================== |
--- runtime/vm/json_stream.cc (revision 31848) |
+++ 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::set_reply_port(Dart_Port port) { |
+ reply_port_ = port; |
+} |
+ |
+ |
void JSONStream::SetArguments(const char** arguments, intptr_t num_arguments) { |
arguments_ = arguments; |
num_arguments_ = num_arguments; |