OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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/embedded_dart_io.h" | 5 #include "bin/embedded_dart_io.h" |
6 | 6 |
7 #include "bin/directory.h" | 7 #include "bin/directory.h" |
8 #include "bin/eventhandler.h" | 8 #include "bin/eventhandler.h" |
| 9 #include "bin/platform.h" |
9 #include "bin/utils.h" | 10 #include "bin/utils.h" |
10 #include "bin/thread.h" | 11 #include "bin/thread.h" |
11 | 12 |
12 namespace dart { | 13 namespace dart { |
13 namespace bin { | 14 namespace bin { |
14 | 15 |
15 void BootstrapDartIo() { | 16 void BootstrapDartIo() { |
16 // Bootstrap 'dart:io' event handler. | 17 // Bootstrap 'dart:io' event handler. |
17 Thread::InitOnce(); | 18 Thread::InitOnce(); |
18 TimerUtils::InitOnce(); | 19 TimerUtils::InitOnce(); |
19 EventHandler::Start(); | 20 EventHandler::Start(); |
20 } | 21 } |
21 | 22 |
22 | 23 |
23 void SetSystemTempDirectory(const char* system_temp) { | 24 void SetSystemTempDirectory(const char* system_temp) { |
24 Directory::SetSystemTemp(system_temp); | 25 Directory::SetSystemTemp(system_temp); |
25 } | 26 } |
26 | 27 |
| 28 void SetExecutableName(const char* executable_name) { |
| 29 Platform::SetExecutableName(executable_name); |
| 30 } |
| 31 |
| 32 void SetExecutableArguments(int script_index, char** argv) { |
| 33 Platform::SetExecutableArguments(script_index, argv); |
| 34 } |
| 35 |
27 } // namespace bin | 36 } // namespace bin |
28 } // namespace dart | 37 } // namespace dart |
OLD | NEW |