OLD | NEW |
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 "bin/io_buffer.h" | 5 #include "bin/io_buffer.h" |
6 #include "bin/isolate_data.h" | 6 #include "bin/isolate_data.h" |
| 7 #include "bin/dartutils.h" |
7 #include "bin/socket.h" | 8 #include "bin/socket.h" |
8 #include "bin/dartutils.h" | |
9 #include "bin/thread.h" | 9 #include "bin/thread.h" |
10 #include "bin/utils.h" | 10 #include "bin/utils.h" |
11 | 11 |
12 #include "platform/globals.h" | 12 #include "platform/globals.h" |
13 #include "platform/thread.h" | |
14 #include "platform/utils.h" | 13 #include "platform/utils.h" |
15 | 14 |
16 #include "include/dart_api.h" | 15 #include "include/dart_api.h" |
17 | 16 |
18 namespace dart { | 17 namespace dart { |
19 namespace bin { | 18 namespace bin { |
20 | 19 |
21 static const int kSocketIdNativeField = 0; | 20 static const int kSocketIdNativeField = 0; |
22 | 21 |
23 void FUNCTION_NAME(InternetAddress_Parse)(Dart_NativeArguments args) { | 22 void FUNCTION_NAME(InternetAddress_Parse)(Dart_NativeArguments args) { |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 intptr_t Socket::GetSocketIdNativeField(Dart_Handle socket_obj) { | 686 intptr_t Socket::GetSocketIdNativeField(Dart_Handle socket_obj) { |
688 intptr_t socket = 0; | 687 intptr_t socket = 0; |
689 Dart_Handle err = | 688 Dart_Handle err = |
690 Dart_GetNativeInstanceField(socket_obj, kSocketIdNativeField, &socket); | 689 Dart_GetNativeInstanceField(socket_obj, kSocketIdNativeField, &socket); |
691 if (Dart_IsError(err)) Dart_PropagateError(err); | 690 if (Dart_IsError(err)) Dart_PropagateError(err); |
692 return socket; | 691 return socket; |
693 } | 692 } |
694 | 693 |
695 } // namespace bin | 694 } // namespace bin |
696 } // namespace dart | 695 } // namespace dart |
OLD | NEW |