Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(585)

Side by Side Diff: runtime/bin/main.cc

Issue 2128923003: Small tweaks to hot reload testing (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: rmacnak review Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tests/lib/lib.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698