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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 | 439 |
440 static bool ProcessHotReloadTestModeOption(const char* arg, | 440 static bool ProcessHotReloadTestModeOption(const char* arg, |
441 CommandLineOptions* vm_options) { | 441 CommandLineOptions* vm_options) { |
442 if (*arg != '\0') { | 442 if (*arg != '\0') { |
443 return false; | 443 return false; |
444 } | 444 } |
445 | 445 |
446 // Identity reload. | 446 // Identity reload. |
447 vm_options->AddArgument("--identity_reload"); | 447 vm_options->AddArgument("--identity_reload"); |
448 // Start reloading quickly. | 448 // Start reloading quickly. |
449 vm_options->AddArgument("--reload_every=50"); | 449 vm_options->AddArgument("--reload_every=10"); |
450 // Reload from optimized and unoptimized code. | 450 // Reload from optimized and unoptimized code. |
451 vm_options->AddArgument("--reload_every_optimized=false"); | 451 vm_options->AddArgument("--reload_every_optimized=false"); |
452 // Reload less frequently as time goes on. | 452 // Reload less frequently as time goes on. |
453 vm_options->AddArgument("--reload_every_back_off"); | 453 vm_options->AddArgument("--reload_every_back_off"); |
454 // Ensure that an isolate has reloaded once. | 454 // Ensure that an isolate has reloaded once. |
455 vm_options->AddArgument("--check_reloaded"); | 455 vm_options->AddArgument("--check_reloaded"); |
456 | 456 |
457 return true; | 457 return true; |
458 } | 458 } |
459 | 459 |
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1783 Platform::Exit(Process::GlobalExitCode()); | 1783 Platform::Exit(Process::GlobalExitCode()); |
1784 } | 1784 } |
1785 | 1785 |
1786 } // namespace bin | 1786 } // namespace bin |
1787 } // namespace dart | 1787 } // namespace dart |
1788 | 1788 |
1789 int main(int argc, char** argv) { | 1789 int main(int argc, char** argv) { |
1790 dart::bin::main(argc, argv); | 1790 dart::bin::main(argc, argv); |
1791 UNREACHABLE(); | 1791 UNREACHABLE(); |
1792 } | 1792 } |
OLD | NEW |