Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: runtime/bin/io_natives.cc

Issue 1180623006: Revert change to Platform.excutable and add Platform.resolvedExecutable (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated dart2js io_patch.dart Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | runtime/bin/platform.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 22 matching lines...) Expand all
33 V(Filter_End, 1) \ 33 V(Filter_End, 1) \
34 V(Filter_Process, 4) \ 34 V(Filter_Process, 4) \
35 V(Filter_Processed, 3) \ 35 V(Filter_Processed, 3) \
36 V(InternetAddress_Parse, 1) \ 36 V(InternetAddress_Parse, 1) \
37 V(IOService_NewServicePort, 0) \ 37 V(IOService_NewServicePort, 0) \
38 V(Platform_NumberOfProcessors, 0) \ 38 V(Platform_NumberOfProcessors, 0) \
39 V(Platform_OperatingSystem, 0) \ 39 V(Platform_OperatingSystem, 0) \
40 V(Platform_PathSeparator, 0) \ 40 V(Platform_PathSeparator, 0) \
41 V(Platform_LocalHostname, 0) \ 41 V(Platform_LocalHostname, 0) \
42 V(Platform_ExecutableName, 0) \ 42 V(Platform_ExecutableName, 0) \
43 V(Platform_ResolvedExecutableName, 0) \
43 V(Platform_Environment, 0) \ 44 V(Platform_Environment, 0) \
44 V(Platform_ExecutableArguments, 0) \ 45 V(Platform_ExecutableArguments, 0) \
45 V(Platform_PackageRoot, 0) \ 46 V(Platform_PackageRoot, 0) \
46 V(Platform_GetVersion, 0) \ 47 V(Platform_GetVersion, 0) \
47 V(Process_Start, 11) \ 48 V(Process_Start, 11) \
48 V(Process_Wait, 5) \ 49 V(Process_Wait, 5) \
49 V(Process_KillPid, 2) \ 50 V(Process_KillPid, 2) \
50 V(Process_SetExitCode, 1) \ 51 V(Process_SetExitCode, 1) \
51 V(Process_GetExitCode, 0) \ 52 V(Process_GetExitCode, 0) \
52 V(Process_Exit, 1) \ 53 V(Process_Exit, 1) \
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 struct NativeEntries* entry = &(IOEntries[i]); 136 struct NativeEntries* entry = &(IOEntries[i]);
136 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { 137 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) {
137 return reinterpret_cast<const uint8_t*>(entry->name_); 138 return reinterpret_cast<const uint8_t*>(entry->name_);
138 } 139 }
139 } 140 }
140 return NULL; 141 return NULL;
141 } 142 }
142 143
143 } // namespace bin 144 } // namespace bin
144 } // namespace dart 145 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698