| 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/platform.h" |
| 10 #include "bin/thread.h" |
| 10 #include "bin/utils.h" | 11 #include "bin/utils.h" |
| 11 #include "bin/thread.h" | |
| 12 | 12 |
| 13 namespace dart { | 13 namespace dart { |
| 14 namespace bin { | 14 namespace bin { |
| 15 | 15 |
| 16 void BootstrapDartIo() { | 16 void BootstrapDartIo() { |
| 17 // Bootstrap 'dart:io' event handler. | 17 // Bootstrap 'dart:io' event handler. |
| 18 Thread::InitOnce(); | 18 Thread::InitOnce(); |
| 19 TimerUtils::InitOnce(); | 19 TimerUtils::InitOnce(); |
| 20 EventHandler::Start(); | 20 EventHandler::Start(); |
| 21 } | 21 } |
| 22 | 22 |
| 23 | |
| 24 void SetSystemTempDirectory(const char* system_temp) { | 23 void SetSystemTempDirectory(const char* system_temp) { |
| 25 Directory::SetSystemTemp(system_temp); | 24 Directory::SetSystemTemp(system_temp); |
| 26 } | 25 } |
| 27 | 26 |
| 28 | |
| 29 void SetExecutableName(const char* executable_name) { | 27 void SetExecutableName(const char* executable_name) { |
| 30 Platform::SetExecutableName(executable_name); | 28 Platform::SetExecutableName(executable_name); |
| 31 } | 29 } |
| 32 | 30 |
| 33 | |
| 34 void SetExecutableArguments(int script_index, char** argv) { | 31 void SetExecutableArguments(int script_index, char** argv) { |
| 35 Platform::SetExecutableArguments(script_index, argv); | 32 Platform::SetExecutableArguments(script_index, argv); |
| 36 } | 33 } |
| 37 | 34 |
| 38 } // namespace bin | 35 } // namespace bin |
| 39 } // namespace dart | 36 } // namespace dart |
| OLD | NEW |