| 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_natives.h" | 5 #include "bin/io_natives.h" |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #include "bin/builtin.h" | 10 #include "bin/builtin.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 V(SecurityContext_SetAlpnProtocols, 3) \ | 114 V(SecurityContext_SetAlpnProtocols, 3) \ |
| 115 V(SecurityContext_SetClientAuthoritiesBytes, 3) \ | 115 V(SecurityContext_SetClientAuthoritiesBytes, 3) \ |
| 116 V(SecurityContext_SetTrustedCertificatesBytes, 3) \ | 116 V(SecurityContext_SetTrustedCertificatesBytes, 3) \ |
| 117 V(SecurityContext_TrustBuiltinRoots, 1) \ | 117 V(SecurityContext_TrustBuiltinRoots, 1) \ |
| 118 V(SecurityContext_UseCertificateChainBytes, 3) \ | 118 V(SecurityContext_UseCertificateChainBytes, 3) \ |
| 119 V(ServerSocket_Accept, 2) \ | 119 V(ServerSocket_Accept, 2) \ |
| 120 V(ServerSocket_CreateBindListen, 6) \ | 120 V(ServerSocket_CreateBindListen, 6) \ |
| 121 V(Socket_CreateConnect, 3) \ | 121 V(Socket_CreateConnect, 3) \ |
| 122 V(Socket_CreateBindConnect, 4) \ | 122 V(Socket_CreateBindConnect, 4) \ |
| 123 V(Socket_CreateBindDatagram, 4) \ | 123 V(Socket_CreateBindDatagram, 4) \ |
| 124 V(Socket_IsBindError, 1) \ | |
| 125 V(Socket_Available, 1) \ | 124 V(Socket_Available, 1) \ |
| 126 V(Socket_Read, 2) \ | 125 V(Socket_Read, 2) \ |
| 127 V(Socket_RecvFrom, 1) \ | 126 V(Socket_RecvFrom, 1) \ |
| 128 V(Socket_WriteList, 4) \ | 127 V(Socket_WriteList, 4) \ |
| 129 V(Socket_SendTo, 6) \ | 128 V(Socket_SendTo, 6) \ |
| 130 V(Socket_GetPort, 1) \ | 129 V(Socket_GetPort, 1) \ |
| 131 V(Socket_GetRemotePeer, 1) \ | 130 V(Socket_GetRemotePeer, 1) \ |
| 132 V(Socket_GetError, 1) \ | 131 V(Socket_GetError, 1) \ |
| 133 V(Socket_GetStdioHandle, 2) \ | 132 V(Socket_GetStdioHandle, 2) \ |
| 134 V(Socket_GetType, 1) \ | 133 V(Socket_GetType, 1) \ |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 struct NativeEntries* entry = &(IOEntries[i]); | 188 struct NativeEntries* entry = &(IOEntries[i]); |
| 190 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { | 189 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { |
| 191 return reinterpret_cast<const uint8_t*>(entry->name_); | 190 return reinterpret_cast<const uint8_t*>(entry->name_); |
| 192 } | 191 } |
| 193 } | 192 } |
| 194 return NULL; | 193 return NULL; |
| 195 } | 194 } |
| 196 | 195 |
| 197 } // namespace bin | 196 } // namespace bin |
| 198 } // namespace dart | 197 } // namespace dart |
| OLD | NEW |