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

Unified Diff: runtime/vm/json_stream.h

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
Index: runtime/vm/json_stream.h
===================================================================
--- runtime/vm/json_stream.h (revision 31070)
+++ runtime/vm/json_stream.h (working copy)
@@ -10,9 +10,11 @@
namespace dart {
+class Field;
+class Instance;
+class JSONArray;
+class JSONObject;
class Object;
-class JSONObject;
-class JSONArray;
class JSONStream : ValueObject {
public:
@@ -53,6 +55,7 @@
void PrintValue(const char* s);
void PrintfValue(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
void PrintValue(const Object& o, bool ref = true);
+ void PrintValue(const Field& f, const Instance& instance, bool ref = true);
void PrintPropertyBool(const char* name, bool b);
void PrintProperty(const char* name, intptr_t i);
@@ -145,6 +148,12 @@
void AddValue(const Object& obj, bool ref = true) const {
stream_->PrintValue(obj, ref);
}
+ // Print a field bound to a value. Value is looked up from 'instance'.
+ void AddValue(const Field& field,
+ const Instance& instance,
+ bool ref = true) const {
+ stream_->PrintValue(field, instance, ref);
+ }
void AddValueF(const char* format, ...) const PRINTF_ATTRIBUTE(2, 3);
private:
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/observatory_elements/message_viewer.html ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698