| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 V(File_AreIdentical, 2) \ | 65 V(File_AreIdentical, 2) \ |
| 66 V(FileSystemWatcher_CloseWatcher, 1) \ | 66 V(FileSystemWatcher_CloseWatcher, 1) \ |
| 67 V(FileSystemWatcher_GetSocketId, 2) \ | 67 V(FileSystemWatcher_GetSocketId, 2) \ |
| 68 V(FileSystemWatcher_InitWatcher, 0) \ | 68 V(FileSystemWatcher_InitWatcher, 0) \ |
| 69 V(FileSystemWatcher_IsSupported, 0) \ | 69 V(FileSystemWatcher_IsSupported, 0) \ |
| 70 V(FileSystemWatcher_ReadEvents, 2) \ | 70 V(FileSystemWatcher_ReadEvents, 2) \ |
| 71 V(FileSystemWatcher_UnwatchPath, 2) \ | 71 V(FileSystemWatcher_UnwatchPath, 2) \ |
| 72 V(FileSystemWatcher_WatchPath, 4) \ | 72 V(FileSystemWatcher_WatchPath, 4) \ |
| 73 V(Filter_CreateZLibDeflate, 8) \ | 73 V(Filter_CreateZLibDeflate, 8) \ |
| 74 V(Filter_CreateZLibInflate, 4) \ | 74 V(Filter_CreateZLibInflate, 4) \ |
| 75 V(Filter_End, 1) \ | |
| 76 V(Filter_Process, 4) \ | 75 V(Filter_Process, 4) \ |
| 77 V(Filter_Processed, 3) \ | 76 V(Filter_Processed, 3) \ |
| 78 V(InternetAddress_Parse, 1) \ | 77 V(InternetAddress_Parse, 1) \ |
| 79 V(IOService_NewServicePort, 0) \ | 78 V(IOService_NewServicePort, 0) \ |
| 80 V(Platform_NumberOfProcessors, 0) \ | 79 V(Platform_NumberOfProcessors, 0) \ |
| 81 V(Platform_OperatingSystem, 0) \ | 80 V(Platform_OperatingSystem, 0) \ |
| 82 V(Platform_PathSeparator, 0) \ | 81 V(Platform_PathSeparator, 0) \ |
| 83 V(Platform_LocalHostname, 0) \ | 82 V(Platform_LocalHostname, 0) \ |
| 84 V(Platform_ExecutableName, 0) \ | 83 V(Platform_ExecutableName, 0) \ |
| 85 V(Platform_ResolvedExecutableName, 0) \ | 84 V(Platform_ResolvedExecutableName, 0) \ |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 struct NativeEntries* entry = &(IOEntries[i]); | 184 struct NativeEntries* entry = &(IOEntries[i]); |
| 186 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { | 185 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { |
| 187 return reinterpret_cast<const uint8_t*>(entry->name_); | 186 return reinterpret_cast<const uint8_t*>(entry->name_); |
| 188 } | 187 } |
| 189 } | 188 } |
| 190 return NULL; | 189 return NULL; |
| 191 } | 190 } |
| 192 | 191 |
| 193 } // namespace bin | 192 } // namespace bin |
| 194 } // namespace dart | 193 } // namespace dart |
| OLD | NEW |