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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 V(InternetAddress_Parse, 1) \ | 78 V(InternetAddress_Parse, 1) \ |
79 V(IOService_NewServicePort, 0) \ | 79 V(IOService_NewServicePort, 0) \ |
80 V(Platform_NumberOfProcessors, 0) \ | 80 V(Platform_NumberOfProcessors, 0) \ |
81 V(Platform_OperatingSystem, 0) \ | 81 V(Platform_OperatingSystem, 0) \ |
82 V(Platform_PathSeparator, 0) \ | 82 V(Platform_PathSeparator, 0) \ |
83 V(Platform_LocalHostname, 0) \ | 83 V(Platform_LocalHostname, 0) \ |
84 V(Platform_ExecutableName, 0) \ | 84 V(Platform_ExecutableName, 0) \ |
85 V(Platform_ResolvedExecutableName, 0) \ | 85 V(Platform_ResolvedExecutableName, 0) \ |
86 V(Platform_Environment, 0) \ | 86 V(Platform_Environment, 0) \ |
87 V(Platform_ExecutableArguments, 0) \ | 87 V(Platform_ExecutableArguments, 0) \ |
88 V(Platform_PackageRoot, 0) \ | |
89 V(Platform_GetVersion, 0) \ | 88 V(Platform_GetVersion, 0) \ |
90 V(Process_Start, 11) \ | 89 V(Process_Start, 11) \ |
91 V(Process_Wait, 5) \ | 90 V(Process_Wait, 5) \ |
92 V(Process_KillPid, 2) \ | 91 V(Process_KillPid, 2) \ |
93 V(Process_SetExitCode, 1) \ | 92 V(Process_SetExitCode, 1) \ |
94 V(Process_GetExitCode, 0) \ | 93 V(Process_GetExitCode, 0) \ |
95 V(Process_Exit, 1) \ | 94 V(Process_Exit, 1) \ |
96 V(Process_Sleep, 1) \ | 95 V(Process_Sleep, 1) \ |
97 V(Process_Pid, 1) \ | 96 V(Process_Pid, 1) \ |
98 V(Process_SetSignalHandler, 1) \ | 97 V(Process_SetSignalHandler, 1) \ |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 struct NativeEntries* entry = &(IOEntries[i]); | 185 struct NativeEntries* entry = &(IOEntries[i]); |
187 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { | 186 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { |
188 return reinterpret_cast<const uint8_t*>(entry->name_); | 187 return reinterpret_cast<const uint8_t*>(entry->name_); |
189 } | 188 } |
190 } | 189 } |
191 return NULL; | 190 return NULL; |
192 } | 191 } |
193 | 192 |
194 } // namespace bin | 193 } // namespace bin |
195 } // namespace dart | 194 } // namespace dart |
OLD | NEW |