| 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 10 matching lines...) Expand all Loading... |
| 21 // builtin_natives.cc instead. | 21 // builtin_natives.cc instead. |
| 22 #define IO_NATIVE_LIST(V) \ | 22 #define IO_NATIVE_LIST(V) \ |
| 23 V(Crypto_GetRandomBytes, 1) \ | 23 V(Crypto_GetRandomBytes, 1) \ |
| 24 V(EventHandler_SendData, 3) \ | 24 V(EventHandler_SendData, 3) \ |
| 25 V(Filter_CreateZLibDeflate, 3) \ | 25 V(Filter_CreateZLibDeflate, 3) \ |
| 26 V(Filter_CreateZLibInflate, 1) \ | 26 V(Filter_CreateZLibInflate, 1) \ |
| 27 V(Filter_End, 1) \ | 27 V(Filter_End, 1) \ |
| 28 V(Filter_Process, 4) \ | 28 V(Filter_Process, 4) \ |
| 29 V(Filter_Processed, 3) \ | 29 V(Filter_Processed, 3) \ |
| 30 V(InternetAddress_Fixed, 1) \ | 30 V(InternetAddress_Fixed, 1) \ |
| 31 V(InternetAddress_Parse, 2) \ |
| 31 V(IOService_NewServicePort, 0) \ | 32 V(IOService_NewServicePort, 0) \ |
| 32 V(Platform_NumberOfProcessors, 0) \ | 33 V(Platform_NumberOfProcessors, 0) \ |
| 33 V(Platform_OperatingSystem, 0) \ | 34 V(Platform_OperatingSystem, 0) \ |
| 34 V(Platform_PathSeparator, 0) \ | 35 V(Platform_PathSeparator, 0) \ |
| 35 V(Platform_LocalHostname, 0) \ | 36 V(Platform_LocalHostname, 0) \ |
| 36 V(Platform_ExecutableName, 0) \ | 37 V(Platform_ExecutableName, 0) \ |
| 37 V(Platform_Environment, 0) \ | 38 V(Platform_Environment, 0) \ |
| 38 V(Platform_ExecutableArguments, 0) \ | 39 V(Platform_ExecutableArguments, 0) \ |
| 39 V(Platform_PackageRoot, 0) \ | 40 V(Platform_PackageRoot, 0) \ |
| 40 V(Platform_GetVersion, 0) \ | 41 V(Platform_GetVersion, 0) \ |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 if (!strcmp(function_name, entry->name_) && | 99 if (!strcmp(function_name, entry->name_) && |
| 99 (entry->argument_count_ == argument_count)) { | 100 (entry->argument_count_ == argument_count)) { |
| 100 return reinterpret_cast<Dart_NativeFunction>(entry->function_); | 101 return reinterpret_cast<Dart_NativeFunction>(entry->function_); |
| 101 } | 102 } |
| 102 } | 103 } |
| 103 return NULL; | 104 return NULL; |
| 104 } | 105 } |
| 105 | 106 |
| 106 } // namespace bin | 107 } // namespace bin |
| 107 } // namespace dart | 108 } // namespace dart |
| OLD | NEW |