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

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

Issue 1307183002: Add access to the isolate package-root/package-map in Platform. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: replace packageRoot getter, remove C++ imp. Created 5 years, 3 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 | « CHANGELOG.md ('k') | runtime/bin/platform.cc » ('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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 V(InternetAddress_Parse, 1) \ 77 V(InternetAddress_Parse, 1) \
78 V(IOService_NewServicePort, 0) \ 78 V(IOService_NewServicePort, 0) \
79 V(Platform_NumberOfProcessors, 0) \ 79 V(Platform_NumberOfProcessors, 0) \
80 V(Platform_OperatingSystem, 0) \ 80 V(Platform_OperatingSystem, 0) \
81 V(Platform_PathSeparator, 0) \ 81 V(Platform_PathSeparator, 0) \
82 V(Platform_LocalHostname, 0) \ 82 V(Platform_LocalHostname, 0) \
83 V(Platform_ExecutableName, 0) \ 83 V(Platform_ExecutableName, 0) \
84 V(Platform_ResolvedExecutableName, 0) \ 84 V(Platform_ResolvedExecutableName, 0) \
85 V(Platform_Environment, 0) \ 85 V(Platform_Environment, 0) \
86 V(Platform_ExecutableArguments, 0) \ 86 V(Platform_ExecutableArguments, 0) \
87 V(Platform_PackageRoot, 0) \
88 V(Platform_GetVersion, 0) \ 87 V(Platform_GetVersion, 0) \
89 V(Process_Start, 11) \ 88 V(Process_Start, 11) \
90 V(Process_Wait, 5) \ 89 V(Process_Wait, 5) \
91 V(Process_KillPid, 2) \ 90 V(Process_KillPid, 2) \
92 V(Process_SetExitCode, 1) \ 91 V(Process_SetExitCode, 1) \
93 V(Process_GetExitCode, 0) \ 92 V(Process_GetExitCode, 0) \
94 V(Process_Exit, 1) \ 93 V(Process_Exit, 1) \
95 V(Process_Sleep, 1) \ 94 V(Process_Sleep, 1) \
96 V(Process_Pid, 1) \ 95 V(Process_Pid, 1) \
97 V(Process_SetSignalHandler, 1) \ 96 V(Process_SetSignalHandler, 1) \
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 struct NativeEntries* entry = &(IOEntries[i]); 176 struct NativeEntries* entry = &(IOEntries[i]);
178 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { 177 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) {
179 return reinterpret_cast<const uint8_t*>(entry->name_); 178 return reinterpret_cast<const uint8_t*>(entry->name_);
180 } 179 }
181 } 180 }
182 return NULL; 181 return NULL;
183 } 182 }
184 183
185 } // namespace bin 184 } // namespace bin
186 } // namespace dart 185 } // namespace dart
OLDNEW
« no previous file with comments | « CHANGELOG.md ('k') | runtime/bin/platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698