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

Side by Side Diff: runtime/bin/dbg_message.cc

Issue 120863004: Change the default cutoff for debugging toString() calls. (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 | « no previous file | no next file » | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "bin/dbg_connection.h" 5 #include "bin/dbg_connection.h"
6 #include "bin/dbg_message.h" 6 #include "bin/dbg_message.h"
7 #include "bin/dartutils.h" 7 #include "bin/dartutils.h"
8 #include "bin/thread.h" 8 #include "bin/thread.h"
9 #include "bin/utils.h" 9 #include "bin/utils.h"
10 10
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 } else { 257 } else {
258 buf->Printf("\"kind\":\"object\""); 258 buf->Printf("\"kind\":\"object\"");
259 intptr_t class_id = 0; 259 intptr_t class_id = 0;
260 Dart_Handle res = Dart_GetObjClassId(object, &class_id); 260 Dart_Handle res = Dart_GetObjClassId(object, &class_id);
261 if (!Dart_IsError(res)) { 261 if (!Dart_IsError(res)) {
262 buf->Printf(",\"classId\":%" Pd "", class_id); 262 buf->Printf(",\"classId\":%" Pd "", class_id);
263 } 263 }
264 } 264 }
265 if (print_text_field) { 265 if (print_text_field) {
266 buf->Printf(",\"text\":\""); 266 buf->Printf(",\"text\":\"");
267 const intptr_t max_chars = 250; 267 const intptr_t max_chars = 1024;
268 FormatTextualValue(buf, object, max_chars, true); 268 FormatTextualValue(buf, object, max_chars, true);
269 buf->Printf("\""); 269 buf->Printf("\"");
270 } 270 }
271 } 271 }
272 272
273 273
274 static void FormatValueObj(dart::TextBuffer* buf, Dart_Handle object) { 274 static void FormatValueObj(dart::TextBuffer* buf, Dart_Handle object) {
275 buf->Printf("{"); 275 buf->Printf("{");
276 FormatValue(buf, object); 276 FormatValue(buf, object);
277 buf->Printf("}"); 277 buf->Printf("}");
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 } else { 1366 } else {
1367 ASSERT(kind == kShutdown); 1367 ASSERT(kind == kShutdown);
1368 RemoveIsolateMsgQueue(isolate_id); 1368 RemoveIsolateMsgQueue(isolate_id);
1369 } 1369 }
1370 } 1370 }
1371 Dart_ExitScope(); 1371 Dart_ExitScope();
1372 } 1372 }
1373 1373
1374 } // namespace bin 1374 } // namespace bin
1375 } // namespace dart 1375 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698