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

Side by Side Diff: runtime/platform/json.cc

Issue 10384110: Attempt 1 to fix build (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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 "platform/json.h" 5 #include "platform/json.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "platform/globals.h"
8 #include "platform/utils.h" 9 #include "platform/utils.h"
9 #include "vm/os.h" 10 #include "vm/os.h"
10 11
11 namespace dart { 12 namespace dart {
12 13
13 14
14 JSONScanner::JSONScanner(const char* json_text) { 15 JSONScanner::JSONScanner(const char* json_text) {
15 SetText(json_text); 16 SetText(json_text);
16 } 17 }
17 18
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 385
385 void TextBuffer::GrowBuffer(intptr_t len) { 386 void TextBuffer::GrowBuffer(intptr_t len) {
386 intptr_t new_size = buf_size_ + len; 387 intptr_t new_size = buf_size_ + len;
387 char* new_buf = reinterpret_cast<char*>(realloc(buf_, new_size)); 388 char* new_buf = reinterpret_cast<char*>(realloc(buf_, new_size));
388 ASSERT(new_buf != NULL); 389 ASSERT(new_buf != NULL);
389 buf_ = new_buf; 390 buf_ = new_buf;
390 buf_size_ = new_size; 391 buf_size_ = new_size;
391 } 392 }
392 393
393 } // namespace dart 394 } // 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