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

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

Issue 1157003003: Add TypedData instance kinds. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « runtime/observatory/tests/service/typed_data_test.dart ('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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void OpenObject(const char* property_name = NULL); 109 void OpenObject(const char* property_name = NULL);
110 void CloseObject(); 110 void CloseObject();
111 111
112 void OpenArray(const char* property_name = NULL); 112 void OpenArray(const char* property_name = NULL);
113 void CloseArray(); 113 void CloseArray();
114 114
115 void PrintValueBool(bool b); 115 void PrintValueBool(bool b);
116 void PrintValue(intptr_t i); 116 void PrintValue(intptr_t i);
117 void PrintValue64(int64_t i); 117 void PrintValue64(int64_t i);
118 void PrintValue(double d); 118 void PrintValue(double d);
119 void PrintValueBase64(const uint8_t* bytes, intptr_t length);
119 void PrintValue(const char* s); 120 void PrintValue(const char* s);
120 void PrintValue(const char* s, intptr_t len); 121 void PrintValue(const char* s, intptr_t len);
121 void PrintValueNoEscape(const char* s); 122 void PrintValueNoEscape(const char* s);
122 void PrintfValue(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); 123 void PrintfValue(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
123 void PrintValue(const Object& o, bool ref = true); 124 void PrintValue(const Object& o, bool ref = true);
124 void PrintValue(Breakpoint* bpt); 125 void PrintValue(Breakpoint* bpt);
125 void PrintValue(const ServiceEvent* event); 126 void PrintValue(const ServiceEvent* event);
126 void PrintValue(Metric* metric); 127 void PrintValue(Metric* metric);
127 void PrintValue(MessageQueue* queue); 128 void PrintValue(MessageQueue* queue);
128 void PrintValue(Isolate* isolate, bool ref = true); 129 void PrintValue(Isolate* isolate, bool ref = true);
129 bool PrintValueStr(const String& s, intptr_t limit); 130 bool PrintValueStr(const String& s, intptr_t limit);
130 131
131 void PrintServiceId(const Object& o); 132 void PrintServiceId(const Object& o);
132 void PrintPropertyBool(const char* name, bool b); 133 void PrintPropertyBool(const char* name, bool b);
133 void PrintProperty(const char* name, intptr_t i); 134 void PrintProperty(const char* name, intptr_t i);
134 void PrintProperty64(const char* name, int64_t i); 135 void PrintProperty64(const char* name, int64_t i);
135 void PrintProperty(const char* name, double d); 136 void PrintProperty(const char* name, double d);
137 void PrintPropertyBase64(const char* name,
138 const uint8_t* bytes,
139 intptr_t length);
136 void PrintProperty(const char* name, const char* s); 140 void PrintProperty(const char* name, const char* s);
137 bool PrintPropertyStr(const char* name, const String& s, intptr_t limit); 141 bool PrintPropertyStr(const char* name, const String& s, intptr_t limit);
138 void PrintPropertyNoEscape(const char* name, const char* s); 142 void PrintPropertyNoEscape(const char* name, const char* s);
139 void PrintfProperty(const char* name, const char* format, ...) 143 void PrintfProperty(const char* name, const char* format, ...)
140 PRINTF_ATTRIBUTE(3, 4); 144 PRINTF_ATTRIBUTE(3, 4);
141 void PrintProperty(const char* name, const Object& o, bool ref = true); 145 void PrintProperty(const char* name, const Object& o, bool ref = true);
142 146
143 void PrintProperty(const char* name, const ServiceEvent* event); 147 void PrintProperty(const char* name, const ServiceEvent* event);
144 void PrintProperty(const char* name, Breakpoint* bpt); 148 void PrintProperty(const char* name, Breakpoint* bpt);
145 void PrintProperty(const char* name, Metric* metric); 149 void PrintProperty(const char* name, Metric* metric);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 } 206 }
203 void AddProperty(const char* name, intptr_t i) const { 207 void AddProperty(const char* name, intptr_t i) const {
204 stream_->PrintProperty(name, i); 208 stream_->PrintProperty(name, i);
205 } 209 }
206 void AddProperty64(const char* name, int64_t i) const { 210 void AddProperty64(const char* name, int64_t i) const {
207 stream_->PrintProperty64(name, i); 211 stream_->PrintProperty64(name, i);
208 } 212 }
209 void AddProperty(const char* name, double d) const { 213 void AddProperty(const char* name, double d) const {
210 stream_->PrintProperty(name, d); 214 stream_->PrintProperty(name, d);
211 } 215 }
216 void AddPropertyBase64(const char* name,
217 const uint8_t* bytes,
218 intptr_t length) const {
219 stream_->PrintPropertyBase64(name, bytes, length);
220 }
212 void AddProperty(const char* name, const char* s) const { 221 void AddProperty(const char* name, const char* s) const {
213 stream_->PrintProperty(name, s); 222 stream_->PrintProperty(name, s);
214 } 223 }
215 bool AddPropertyStr(const char* name, 224 bool AddPropertyStr(const char* name,
216 const String& s, 225 const String& s,
217 intptr_t limit = -1) const { 226 intptr_t limit = -1) const {
218 return stream_->PrintPropertyStr(name, s, limit); 227 return stream_->PrintPropertyStr(name, s, limit);
219 } 228 }
220 void AddPropertyNoEscape(const char* name, const char* s) const { 229 void AddPropertyNoEscape(const char* name, const char* s) const {
221 stream_->PrintPropertyNoEscape(name, s); 230 stream_->PrintPropertyNoEscape(name, s);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 305
297 friend class JSONObject; 306 friend class JSONObject;
298 307
299 DISALLOW_ALLOCATION(); 308 DISALLOW_ALLOCATION();
300 DISALLOW_COPY_AND_ASSIGN(JSONArray); 309 DISALLOW_COPY_AND_ASSIGN(JSONArray);
301 }; 310 };
302 311
303 } // namespace dart 312 } // namespace dart
304 313
305 #endif // VM_JSON_STREAM_H_ 314 #endif // VM_JSON_STREAM_H_
OLDNEW
« no previous file with comments | « runtime/observatory/tests/service/typed_data_test.dart ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698