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

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

Issue 22565003: Make the values of Platform.executable and Platform.script available to all isolates (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments from whesse@ Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/bin/main.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 15 matching lines...) Expand all
26 V(Filter_CreateZLibDeflate, 3) \ 26 V(Filter_CreateZLibDeflate, 3) \
27 V(Filter_CreateZLibInflate, 1) \ 27 V(Filter_CreateZLibInflate, 1) \
28 V(Filter_End, 1) \ 28 V(Filter_End, 1) \
29 V(Filter_Process, 2) \ 29 V(Filter_Process, 2) \
30 V(Filter_Processed, 3) \ 30 V(Filter_Processed, 3) \
31 V(InternetAddress_Fixed, 1) \ 31 V(InternetAddress_Fixed, 1) \
32 V(Platform_NumberOfProcessors, 0) \ 32 V(Platform_NumberOfProcessors, 0) \
33 V(Platform_OperatingSystem, 0) \ 33 V(Platform_OperatingSystem, 0) \
34 V(Platform_PathSeparator, 0) \ 34 V(Platform_PathSeparator, 0) \
35 V(Platform_LocalHostname, 0) \ 35 V(Platform_LocalHostname, 0) \
36 V(Platform_ExecutableName, 0) \
36 V(Platform_Environment, 0) \ 37 V(Platform_Environment, 0) \
37 V(Platform_GetVersion, 0) \ 38 V(Platform_GetVersion, 0) \
38 V(Process_Start, 10) \ 39 V(Process_Start, 10) \
39 V(Process_Kill, 3) \ 40 V(Process_Kill, 3) \
40 V(Process_SetExitCode, 1) \ 41 V(Process_SetExitCode, 1) \
41 V(Process_Exit, 1) \ 42 V(Process_Exit, 1) \
42 V(Process_Sleep, 1) \ 43 V(Process_Sleep, 1) \
43 V(Process_Pid, 1) \ 44 V(Process_Pid, 1) \
44 V(SecureSocket_Connect, 9) \ 45 V(SecureSocket_Connect, 9) \
45 V(SecureSocket_Destroy, 1) \ 46 V(SecureSocket_Destroy, 1) \
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 if (!strcmp(function_name, entry->name_) && 97 if (!strcmp(function_name, entry->name_) &&
97 (entry->argument_count_ == argument_count)) { 98 (entry->argument_count_ == argument_count)) {
98 return reinterpret_cast<Dart_NativeFunction>(entry->function_); 99 return reinterpret_cast<Dart_NativeFunction>(entry->function_);
99 } 100 }
100 } 101 }
101 return NULL; 102 return NULL;
102 } 103 }
103 104
104 } // namespace bin 105 } // namespace bin
105 } // namespace dart 106 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698