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

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

Issue 381383010: Add breakpoints and single-stepping to Observatory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix bugs, gen js Created 6 years, 4 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
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 6
7 #include "vm/dart_entry.h" 7 #include "vm/dart_entry.h"
8 #include "vm/debugger.h" 8 #include "vm/debugger.h"
9 #include "vm/json_stream.h" 9 #include "vm/json_stream.h"
10 #include "vm/message.h" 10 #include "vm/message.h"
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 PrintValueNoEscape(s); 300 PrintValueNoEscape(s);
301 } 301 }
302 302
303 303
304 void JSONStream::PrintProperty(const char* name, const DebuggerEvent* event) { 304 void JSONStream::PrintProperty(const char* name, const DebuggerEvent* event) {
305 PrintPropertyName(name); 305 PrintPropertyName(name);
306 PrintValue(event); 306 PrintValue(event);
307 } 307 }
308 308
309 309
310 void JSONStream::PrintProperty(const char* name, SourceBreakpoint* bpt) {
311 PrintPropertyName(name);
312 PrintValue(bpt);
313 }
314
315
310 void JSONStream::PrintProperty(const char* name, Isolate* isolate) { 316 void JSONStream::PrintProperty(const char* name, Isolate* isolate) {
311 PrintPropertyName(name); 317 PrintPropertyName(name);
312 PrintValue(isolate); 318 PrintValue(isolate);
313 } 319 }
314 320
315 321
316 void JSONStream::PrintfProperty(const char* name, const char* format, ...) { 322 void JSONStream::PrintfProperty(const char* name, const char* format, ...) {
317 PrintPropertyName(name); 323 PrintPropertyName(name);
318 va_list args; 324 va_list args;
319 va_start(args, format); 325 va_start(args, format);
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 intptr_t len2 = OS::VSNPrint(p, len+1, format, args); 447 intptr_t len2 = OS::VSNPrint(p, len+1, format, args);
442 va_end(args); 448 va_end(args);
443 ASSERT(len == len2); 449 ASSERT(len == len2);
444 stream_->buffer_.AddChar('"'); 450 stream_->buffer_.AddChar('"');
445 stream_->AddEscapedUTF8String(p); 451 stream_->AddEscapedUTF8String(p);
446 stream_->buffer_.AddChar('"'); 452 stream_->buffer_.AddChar('"');
447 free(p); 453 free(p);
448 } 454 }
449 455
450 } // namespace dart 456 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698