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

Unified Diff: runtime/vm/json_stream.cc

Issue 113513004: Handle vmservice messages while at breakpoint. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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/service.cc » ('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 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);
« no previous file with comments | « runtime/vm/json_stream.h ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698