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

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

Issue 1038973002: Fix the build. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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/platform/utils.h ('k') | runtime/vm/object.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 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 274
275 275
276 void JSONStream::PrintProperty(const char* name, intptr_t i) { 276 void JSONStream::PrintProperty(const char* name, intptr_t i) {
277 ASSERT(Utils::IsJavascriptInt(i)); 277 ASSERT(Utils::IsJavascriptInt(i));
278 PrintPropertyName(name); 278 PrintPropertyName(name);
279 PrintValue(i); 279 PrintValue(i);
280 } 280 }
281 281
282 282
283 void JSONStream::PrintProperty64(const char* name, int64_t i) { 283 void JSONStream::PrintProperty64(const char* name, int64_t i) {
284 ASSERT(Utils::IsJavascriptInt(i)); 284 ASSERT(Utils::IsJavascriptInt64(i));
285 PrintPropertyName(name); 285 PrintPropertyName(name);
286 PrintValue64(i); 286 PrintValue64(i);
287 } 287 }
288 288
289 289
290 void JSONStream::PrintProperty(const char* name, double d) { 290 void JSONStream::PrintProperty(const char* name, double d) {
291 PrintPropertyName(name); 291 PrintPropertyName(name);
292 PrintValue(d); 292 PrintValue(d);
293 } 293 }
294 294
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 intptr_t len2 = OS::VSNPrint(p, len+1, format, args); 485 intptr_t len2 = OS::VSNPrint(p, len+1, format, args);
486 va_end(args); 486 va_end(args);
487 ASSERT(len == len2); 487 ASSERT(len == len2);
488 stream_->buffer_.AddChar('"'); 488 stream_->buffer_.AddChar('"');
489 stream_->AddEscapedUTF8String(p); 489 stream_->AddEscapedUTF8String(p);
490 stream_->buffer_.AddChar('"'); 490 stream_->buffer_.AddChar('"');
491 free(p); 491 free(p);
492 } 492 }
493 493
494 } // namespace dart 494 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/platform/utils.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698