| OLD | NEW |
| 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 // Generate a snapshot file after loading all the scripts specified on the | 5 // Generate a snapshot file after loading all the scripts specified on the |
| 6 // command line. | 6 // command line. |
| 7 | 7 |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 #include <stdio.h> | 10 #include <stdio.h> |
| (...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1015 return 255; | 1015 return 255; |
| 1016 } | 1016 } |
| 1017 | 1017 |
| 1018 Thread::InitOnce(); | 1018 Thread::InitOnce(); |
| 1019 DartUtils::SetOriginalWorkingDirectory(); | 1019 DartUtils::SetOriginalWorkingDirectory(); |
| 1020 // Start event handler. | 1020 // Start event handler. |
| 1021 TimerUtils::InitOnce(); | 1021 TimerUtils::InitOnce(); |
| 1022 EventHandler::Start(); | 1022 EventHandler::Start(); |
| 1023 | 1023 |
| 1024 vm_options.AddArgument("--load_deferred_eagerly"); | 1024 vm_options.AddArgument("--load_deferred_eagerly"); |
| 1025 // Workaround until issue 21620 is fixed. | |
| 1026 // (https://github.com/dart-lang/sdk/issues/21620) | |
| 1027 vm_options.AddArgument("--no-concurrent_sweep"); | |
| 1028 | 1025 |
| 1029 if (IsSnapshottingForPrecompilation()) { | 1026 if (IsSnapshottingForPrecompilation()) { |
| 1030 vm_options.AddArgument("--precompilation"); | 1027 vm_options.AddArgument("--precompilation"); |
| 1031 #if TARGET_ARCH_ARM | 1028 #if TARGET_ARCH_ARM |
| 1032 // This is for the iPod Touch 5th Generation (and maybe other older devices) | 1029 // This is for the iPod Touch 5th Generation (and maybe other older devices) |
| 1033 vm_options.AddArgument("--no-use_integer_division"); | 1030 vm_options.AddArgument("--no-use_integer_division"); |
| 1034 #endif | 1031 #endif |
| 1035 } | 1032 } |
| 1036 | 1033 |
| 1037 Dart_SetVMFlags(vm_options.count(), vm_options.arguments()); | 1034 Dart_SetVMFlags(vm_options.count(), vm_options.arguments()); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1151 EventHandler::Stop(); | 1148 EventHandler::Stop(); |
| 1152 return 0; | 1149 return 0; |
| 1153 } | 1150 } |
| 1154 | 1151 |
| 1155 } // namespace bin | 1152 } // namespace bin |
| 1156 } // namespace dart | 1153 } // namespace dart |
| 1157 | 1154 |
| 1158 int main(int argc, char** argv) { | 1155 int main(int argc, char** argv) { |
| 1159 return dart::bin::main(argc, argv); | 1156 return dart::bin::main(argc, argv); |
| 1160 } | 1157 } |
| OLD | NEW |