Index: runtime/vm/json_stream.cc |
=================================================================== |
--- runtime/vm/json_stream.cc (revision 31232) |
+++ runtime/vm/json_stream.cc (working copy) |
@@ -4,6 +4,7 @@ |
#include "platform/assert.h" |
#include "vm/object.h" |
+#include "vm/debugger.h" |
#include "vm/json_stream.h" |
@@ -23,6 +24,16 @@ |
} |
+const char* JSONStream::LookupOption(const char* key) const { |
+ for (int i = 0; i < num_options(); i++) { |
+ if (!strcmp(key, option_keys_[i])) { |
+ return option_values_[i]; |
+ } |
+ } |
+ return NULL; |
+} |
+ |
+ |
void JSONStream::Clear() { |
buffer_.Clear(); |
open_objects_ = 0; |
@@ -122,6 +133,12 @@ |
} |
+void JSONStream::PrintValue(const SourceBreakpoint* bpt) { |
+ PrintCommaIfNeeded(); |
+ bpt->PrintToJSONStream(this); |
+} |
+ |
+ |
void JSONStream::PrintPropertyBool(const char* name, bool b) { |
PrintPropertyName(name); |
PrintValueBool(b); |