OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 <stdlib.h> | 5 #include <stdlib.h> |
6 #include <string.h> | 6 #include <string.h> |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 | 8 |
9 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
10 #include "include/dart_tools_api.h" | 10 #include "include/dart_tools_api.h" |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 | 433 |
434 static bool ProcessHotReloadTestModeOption(const char* arg, | 434 static bool ProcessHotReloadTestModeOption(const char* arg, |
435 CommandLineOptions* vm_options) { | 435 CommandLineOptions* vm_options) { |
436 if (*arg != '\0') { | 436 if (*arg != '\0') { |
437 return false; | 437 return false; |
438 } | 438 } |
439 | 439 |
440 // Identity reload. | 440 // Identity reload. |
441 vm_options->AddArgument("--identity_reload"); | 441 vm_options->AddArgument("--identity_reload"); |
442 // Start reloading quickly. | 442 // Start reloading quickly. |
443 vm_options->AddArgument("--reload_every=5"); | 443 vm_options->AddArgument("--reload_every=4"); |
444 // Reload from optimized and unoptimized code. | 444 // Reload from optimized and unoptimized code. |
445 vm_options->AddArgument("--reload_every_optimized=false"); | 445 vm_options->AddArgument("--reload_every_optimized=false"); |
446 // Reload less frequently as time goes on. | 446 // Reload less frequently as time goes on. |
447 vm_options->AddArgument("--reload_every_back_off"); | 447 vm_options->AddArgument("--reload_every_back_off"); |
448 // Ensure that every isolate has reloaded once before exiting. | 448 // Ensure that every isolate has reloaded once before exiting. |
449 vm_options->AddArgument("--check_reloaded"); | 449 vm_options->AddArgument("--check_reloaded"); |
450 | 450 |
451 return true; | 451 return true; |
452 } | 452 } |
453 | 453 |
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1745 Platform::Exit(Process::GlobalExitCode()); | 1745 Platform::Exit(Process::GlobalExitCode()); |
1746 } | 1746 } |
1747 | 1747 |
1748 } // namespace bin | 1748 } // namespace bin |
1749 } // namespace dart | 1749 } // namespace dart |
1750 | 1750 |
1751 int main(int argc, char** argv) { | 1751 int main(int argc, char** argv) { |
1752 dart::bin::main(argc, argv); | 1752 dart::bin::main(argc, argv); |
1753 UNREACHABLE(); | 1753 UNREACHABLE(); |
1754 } | 1754 } |
OLD | NEW |