| 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 #include "platform/assert.h" | 5 #include "platform/assert.h" |
| 6 #include "vm/object.h" | 6 #include "vm/object.h" |
| 7 #include "vm/debugger.h" | 7 #include "vm/debugger.h" |
| 8 #include "vm/json_stream.h" | 8 #include "vm/json_stream.h" |
| 9 | 9 |
| 10 | 10 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 126 |
| 127 | 127 |
| 128 void JSONStream::PrintValue(const Field& field, | 128 void JSONStream::PrintValue(const Field& field, |
| 129 const Instance& instance, | 129 const Instance& instance, |
| 130 bool ref) { | 130 bool ref) { |
| 131 PrintCommaIfNeeded(); | 131 PrintCommaIfNeeded(); |
| 132 field.PrintToJSONStreamWithInstance(this, instance, ref); | 132 field.PrintToJSONStreamWithInstance(this, instance, ref); |
| 133 } | 133 } |
| 134 | 134 |
| 135 | 135 |
| 136 void JSONStream::PrintValue(const SourceBreakpoint* bpt) { | 136 void JSONStream::PrintValue(SourceBreakpoint* bpt) { |
| 137 PrintCommaIfNeeded(); | 137 PrintCommaIfNeeded(); |
| 138 bpt->PrintToJSONStream(this); | 138 bpt->PrintToJSONStream(this); |
| 139 } | 139 } |
| 140 | 140 |
| 141 | 141 |
| 142 void JSONStream::PrintPropertyBool(const char* name, bool b) { | 142 void JSONStream::PrintPropertyBool(const char* name, bool b) { |
| 143 PrintPropertyName(name); | 143 PrintPropertyName(name); |
| 144 PrintValueBool(b); | 144 PrintValueBool(b); |
| 145 } | 145 } |
| 146 | 146 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 intptr_t len2 = OS::VSNPrint(p, len+1, format, args); | 265 intptr_t len2 = OS::VSNPrint(p, len+1, format, args); |
| 266 va_end(args); | 266 va_end(args); |
| 267 ASSERT(len == len2); | 267 ASSERT(len == len2); |
| 268 stream_->buffer_.AddChar('"'); | 268 stream_->buffer_.AddChar('"'); |
| 269 stream_->buffer_.AddEscapedString(p); | 269 stream_->buffer_.AddEscapedString(p); |
| 270 stream_->buffer_.AddChar('"'); | 270 stream_->buffer_.AddChar('"'); |
| 271 free(p); | 271 free(p); |
| 272 } | 272 } |
| 273 | 273 |
| 274 } // namespace dart | 274 } // namespace dart |
| OLD | NEW |