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

Unified Diff: runtime/vm/json_stream.cc

Issue 110703002: Add an instance view page to the vmservice. (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/object.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 31070)
+++ runtime/vm/json_stream.cc (working copy)
@@ -114,6 +114,14 @@
}
+void JSONStream::PrintValue(const Field& field,
+ const Instance& instance,
+ bool ref) {
+ PrintCommaIfNeeded();
+ field.PrintToJSONStreamWithInstance(this, instance, ref);
+}
+
+
void JSONStream::PrintPropertyBool(const char* name, bool b) {
PrintPropertyName(name);
PrintValueBool(b);
@@ -211,7 +219,7 @@
void JSONObject::AddPropertyF(const char* name,
- const char* format, ...) const {
+ const char* format, ...) const {
stream_->PrintPropertyName(name);
va_list args;
va_start(args, format);
@@ -247,4 +255,3 @@
}
} // namespace dart
-
« no previous file with comments | « runtime/vm/json_stream.h ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698