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

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

Issue 117133005: Change how debugger handles source breakpoints (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 11 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/json_stream.h ('k') | runtime/vm/service_test.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 #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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/json_stream.h ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698