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

Side by Side Diff: runtime/vm/json_stream.h

Issue 328663008: Add support to trace warnings in TraceBuffer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_JSON_STREAM_H_ 5 #ifndef VM_JSON_STREAM_H_
6 #define VM_JSON_STREAM_H_ 6 #define VM_JSON_STREAM_H_
7 7
8 #include "include/dart_api.h" // for Dart_Port 8 #include "include/dart_api.h" // for Dart_Port
9 #include "platform/json.h" 9 #include "platform/json.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 void CloseObject(); 76 void CloseObject();
77 77
78 void OpenArray(const char* property_name = NULL); 78 void OpenArray(const char* property_name = NULL);
79 void CloseArray(); 79 void CloseArray();
80 80
81 void PrintValueBool(bool b); 81 void PrintValueBool(bool b);
82 void PrintValue(intptr_t i); 82 void PrintValue(intptr_t i);
83 void PrintValue64(int64_t i); 83 void PrintValue64(int64_t i);
84 void PrintValue(double d); 84 void PrintValue(double d);
85 void PrintValue(const char* s); 85 void PrintValue(const char* s);
86 void PrintValueNoEscape(const char* s);
86 void PrintfValue(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); 87 void PrintfValue(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
87 void PrintValue(const Object& o, bool ref = true); 88 void PrintValue(const Object& o, bool ref = true);
88 void PrintValue(SourceBreakpoint* bpt); 89 void PrintValue(SourceBreakpoint* bpt);
89 void PrintValue(const DebuggerEvent* event); 90 void PrintValue(const DebuggerEvent* event);
90 void PrintValue(Isolate* isolate, bool ref = true); 91 void PrintValue(Isolate* isolate, bool ref = true);
91 92
92 void PrintPropertyBool(const char* name, bool b); 93 void PrintPropertyBool(const char* name, bool b);
93 void PrintProperty(const char* name, intptr_t i); 94 void PrintProperty(const char* name, intptr_t i);
94 void PrintProperty64(const char* name, int64_t i); 95 void PrintProperty64(const char* name, int64_t i);
95 void PrintProperty(const char* name, double d); 96 void PrintProperty(const char* name, double d);
96 void PrintProperty(const char* name, const char* s); 97 void PrintProperty(const char* name, const char* s);
98 void PrintPropertyNoEscape(const char* name, const char* s);
97 void PrintfProperty(const char* name, const char* format, ...) 99 void PrintfProperty(const char* name, const char* format, ...)
98 PRINTF_ATTRIBUTE(3, 4); 100 PRINTF_ATTRIBUTE(3, 4);
99 void PrintProperty(const char* name, const Object& o, bool ref = true); 101 void PrintProperty(const char* name, const Object& o, bool ref = true);
100 102
101 void PrintProperty(const char* name, const DebuggerEvent* event); 103 void PrintProperty(const char* name, const DebuggerEvent* event);
102 void PrintProperty(const char* name, Isolate* isolate); 104 void PrintProperty(const char* name, Isolate* isolate);
103 void PrintPropertyName(const char* name); 105 void PrintPropertyName(const char* name);
104 void PrintCommaIfNeeded(); 106 void PrintCommaIfNeeded();
105 bool NeedComma(); 107 bool NeedComma();
106 108
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 } 148 }
147 void AddProperty64(const char* name, int64_t i) const { 149 void AddProperty64(const char* name, int64_t i) const {
148 stream_->PrintProperty64(name, i); 150 stream_->PrintProperty64(name, i);
149 } 151 }
150 void AddProperty(const char* name, double d) const { 152 void AddProperty(const char* name, double d) const {
151 stream_->PrintProperty(name, d); 153 stream_->PrintProperty(name, d);
152 } 154 }
153 void AddProperty(const char* name, const char* s) const { 155 void AddProperty(const char* name, const char* s) const {
154 stream_->PrintProperty(name, s); 156 stream_->PrintProperty(name, s);
155 } 157 }
158 void AddPropertyNoEscape(const char* name, const char* s) const {
159 stream_->PrintPropertyNoEscape(name, s);
160 }
156 void AddProperty(const char* name, const Object& obj, bool ref = true) const { 161 void AddProperty(const char* name, const Object& obj, bool ref = true) const {
157 stream_->PrintProperty(name, obj, ref); 162 stream_->PrintProperty(name, obj, ref);
158 } 163 }
159 void AddProperty(const char* name, const DebuggerEvent* event) const { 164 void AddProperty(const char* name, const DebuggerEvent* event) const {
160 stream_->PrintProperty(name, event); 165 stream_->PrintProperty(name, event);
161 } 166 }
162 void AddProperty(const char* name, Isolate* isolate) const { 167 void AddProperty(const char* name, Isolate* isolate) const {
163 stream_->PrintProperty(name, isolate); 168 stream_->PrintProperty(name, isolate);
164 } 169 }
165 void AddPropertyF(const char* name, const char* format, ...) const 170 void AddPropertyF(const char* name, const char* format, ...) const
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 219
215 friend class JSONObject; 220 friend class JSONObject;
216 221
217 DISALLOW_ALLOCATION(); 222 DISALLOW_ALLOCATION();
218 DISALLOW_COPY_AND_ASSIGN(JSONArray); 223 DISALLOW_COPY_AND_ASSIGN(JSONArray);
219 }; 224 };
220 225
221 } // namespace dart 226 } // namespace dart
222 227
223 #endif // VM_JSON_STREAM_H_ 228 #endif // VM_JSON_STREAM_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698