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

Side by Side Diff: runtime/lib/mirrors.cc

Issue 10357003: Beginnings of a debugger wire protocol (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 | « runtime/bin/main.cc ('k') | runtime/platform/json.h » ('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) 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 "vm/bootstrap_natives.h" 5 #include "vm/bootstrap_natives.h"
6 6
7 #include "platform/json.h"
7 #include "vm/dart_entry.h" 8 #include "vm/dart_entry.h"
8 #include "vm/exceptions.h" 9 #include "vm/exceptions.h"
9 #include "vm/json.h"
10 #include "vm/message.h" 10 #include "vm/message.h"
11 #include "vm/port.h" 11 #include "vm/port.h"
12 #include "vm/resolver.h" 12 #include "vm/resolver.h"
13 13
14 namespace dart { 14 namespace dart {
15 15
16 static uint8_t* allocator(uint8_t* ptr, intptr_t old_size, intptr_t new_size) { 16 static uint8_t* allocator(uint8_t* ptr, intptr_t old_size, intptr_t new_size) {
17 void* new_ptr = realloc(reinterpret_cast<void*>(ptr), new_size); 17 void* new_ptr = realloc(reinterpret_cast<void*>(ptr), new_size);
18 return reinterpret_cast<uint8_t*>(new_ptr); 18 return reinterpret_cast<uint8_t*>(new_ptr);
19 } 19 }
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 Dart_CObject reply; 152 Dart_CObject reply;
153 reply.type = Dart_CObject::kString; 153 reply.type = Dart_CObject::kString;
154 reply.value.as_string = buffer.buf(); 154 reply.value.as_string = buffer.buf();
155 if (!Dart_PostCObject(reply_port, &reply)) { 155 if (!Dart_PostCObject(reply_port, &reply)) {
156 OS::PrintErr("Unable to post mirrors reply"); 156 OS::PrintErr("Unable to post mirrors reply");
157 return; 157 return;
158 } 158 }
159 } 159 }
160 160
161 } // namespace dart 161 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/platform/json.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698