| OLD | NEW |
| 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" |
| 11 #include "vm/service.h" | 11 #include "vm/service.h" |
| 12 | 12 |
| 13 | 13 |
| 14 namespace dart { | 14 namespace dart { |
| 15 | 15 |
| 16 class Array; | 16 class Array; |
| 17 class Breakpoint; | 17 class Breakpoint; |
| 18 class BreakpointLocation; |
| 18 class Field; | 19 class Field; |
| 19 class GrowableObjectArray; | 20 class GrowableObjectArray; |
| 20 class Instance; | 21 class Instance; |
| 21 class JSONArray; | 22 class JSONArray; |
| 22 class JSONObject; | 23 class JSONObject; |
| 23 class MessageQueue; | 24 class MessageQueue; |
| 24 class Metric; | 25 class Metric; |
| 25 class Object; | 26 class Object; |
| 26 class Script; | 27 class Script; |
| 27 class ServiceEvent; | 28 class ServiceEvent; |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 } | 203 } |
| 203 | 204 |
| 204 void AddServiceId(const Object& o) const { | 205 void AddServiceId(const Object& o) const { |
| 205 stream_->PrintServiceId(o); | 206 stream_->PrintServiceId(o); |
| 206 } | 207 } |
| 207 | 208 |
| 208 void AddFixedServiceId(const char* format, ...) const PRINTF_ATTRIBUTE(2, 3); | 209 void AddFixedServiceId(const char* format, ...) const PRINTF_ATTRIBUTE(2, 3); |
| 209 | 210 |
| 210 void AddLocation(const Script& script, | 211 void AddLocation(const Script& script, |
| 211 intptr_t token_pos, | 212 intptr_t token_pos, |
| 212 intptr_t end_token_pos = -1); | 213 intptr_t end_token_pos = -1) const; |
| 214 |
| 215 void AddLocation(const BreakpointLocation* bpt_loc) const; |
| 216 |
| 217 void AddUnresolvedLocation(const BreakpointLocation* bpt_loc) const; |
| 213 | 218 |
| 214 void AddProperty(const char* name, bool b) const { | 219 void AddProperty(const char* name, bool b) const { |
| 215 stream_->PrintPropertyBool(name, b); | 220 stream_->PrintPropertyBool(name, b); |
| 216 } | 221 } |
| 217 void AddProperty(const char* name, intptr_t i) const { | 222 void AddProperty(const char* name, intptr_t i) const { |
| 218 stream_->PrintProperty(name, i); | 223 stream_->PrintProperty(name, i); |
| 219 } | 224 } |
| 220 void AddProperty64(const char* name, int64_t i) const { | 225 void AddProperty64(const char* name, int64_t i) const { |
| 221 stream_->PrintProperty64(name, i); | 226 stream_->PrintProperty64(name, i); |
| 222 } | 227 } |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 | 332 |
| 328 friend class JSONObject; | 333 friend class JSONObject; |
| 329 | 334 |
| 330 DISALLOW_ALLOCATION(); | 335 DISALLOW_ALLOCATION(); |
| 331 DISALLOW_COPY_AND_ASSIGN(JSONArray); | 336 DISALLOW_COPY_AND_ASSIGN(JSONArray); |
| 332 }; | 337 }; |
| 333 | 338 |
| 334 } // namespace dart | 339 } // namespace dart |
| 335 | 340 |
| 336 #endif // VM_JSON_STREAM_H_ | 341 #endif // VM_JSON_STREAM_H_ |
| OLD | NEW |