OLD | NEW |
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 Loading... |
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 |
OLD | NEW |