| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 V(FileSystemWatcher_IsSupported, 0) \ | 71 V(FileSystemWatcher_IsSupported, 0) \ |
| 72 V(FileSystemWatcher_ReadEvents, 2) \ | 72 V(FileSystemWatcher_ReadEvents, 2) \ |
| 73 V(FileSystemWatcher_UnwatchPath, 2) \ | 73 V(FileSystemWatcher_UnwatchPath, 2) \ |
| 74 V(FileSystemWatcher_WatchPath, 4) \ | 74 V(FileSystemWatcher_WatchPath, 4) \ |
| 75 V(Filter_CreateZLibDeflate, 8) \ | 75 V(Filter_CreateZLibDeflate, 8) \ |
| 76 V(Filter_CreateZLibInflate, 4) \ | 76 V(Filter_CreateZLibInflate, 4) \ |
| 77 V(Filter_Process, 4) \ | 77 V(Filter_Process, 4) \ |
| 78 V(Filter_Processed, 3) \ | 78 V(Filter_Processed, 3) \ |
| 79 V(InternetAddress_Parse, 1) \ | 79 V(InternetAddress_Parse, 1) \ |
| 80 V(IOService_NewServicePort, 0) \ | 80 V(IOService_NewServicePort, 0) \ |
| 81 V(NetworkInterface_ListSupported, 0) \ |
| 81 V(Platform_NumberOfProcessors, 0) \ | 82 V(Platform_NumberOfProcessors, 0) \ |
| 82 V(Platform_OperatingSystem, 0) \ | 83 V(Platform_OperatingSystem, 0) \ |
| 83 V(Platform_PathSeparator, 0) \ | 84 V(Platform_PathSeparator, 0) \ |
| 84 V(Platform_LocalHostname, 0) \ | 85 V(Platform_LocalHostname, 0) \ |
| 85 V(Platform_ExecutableName, 0) \ | 86 V(Platform_ExecutableName, 0) \ |
| 86 V(Platform_ResolvedExecutableName, 0) \ | 87 V(Platform_ResolvedExecutableName, 0) \ |
| 87 V(Platform_Environment, 0) \ | 88 V(Platform_Environment, 0) \ |
| 88 V(Platform_ExecutableArguments, 0) \ | 89 V(Platform_ExecutableArguments, 0) \ |
| 89 V(Platform_GetVersion, 0) \ | 90 V(Platform_GetVersion, 0) \ |
| 90 V(Process_Start, 11) \ | 91 V(Process_Start, 11) \ |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 struct NativeEntries* entry = &(IOEntries[i]); | 188 struct NativeEntries* entry = &(IOEntries[i]); |
| 188 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { | 189 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { |
| 189 return reinterpret_cast<const uint8_t*>(entry->name_); | 190 return reinterpret_cast<const uint8_t*>(entry->name_); |
| 190 } | 191 } |
| 191 } | 192 } |
| 192 return NULL; | 193 return NULL; |
| 193 } | 194 } |
| 194 | 195 |
| 195 } // namespace bin | 196 } // namespace bin |
| 196 } // namespace dart | 197 } // namespace dart |
| OLD | NEW |