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

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

Issue 1119013003: Add --noopt flag that sets all kind of flags to make unoptimzied code as fast as possible (and not … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.cc » ('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_debugger_api.h" 10 #include "include/dart_debugger_api.h"
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 "\n" 747 "\n"
748 "--snapshot=<file_name>\n" 748 "--snapshot=<file_name>\n"
749 " loads Dart script and generates a snapshot in the specified file\n" 749 " loads Dart script and generates a snapshot in the specified file\n"
750 "\n" 750 "\n"
751 "--print-script\n" 751 "--print-script\n"
752 " generates Dart source code back and prints it after parsing a Dart script\n" 752 " generates Dart source code back and prints it after parsing a Dart script\n"
753 "\n" 753 "\n"
754 "--enable-vm-service[:<port number>]\n" 754 "--enable-vm-service[:<port number>]\n"
755 " enables the VM service and listens on specified port for connections\n" 755 " enables the VM service and listens on specified port for connections\n"
756 " (default port number is 8181)\n" 756 " (default port number is 8181)\n"
757 "--noopt\n"
758 " run unoptimized code only\n"
757 "\n" 759 "\n"
758 "The following options are only used for VM development and may\n" 760 "The following options are only used for VM development and may\n"
759 "be changed in any future version:\n"); 761 "be changed in any future version:\n");
760 const char* print_flags = "--print_flags"; 762 const char* print_flags = "--print_flags";
761 Dart_SetVMFlags(1, &print_flags); 763 Dart_SetVMFlags(1, &print_flags);
762 } 764 }
763 } 765 }
764 766
765 767
766 static Dart_Handle SetBreakpoint(const char* breakpoint_at, 768 static Dart_Handle SetBreakpoint(const char* breakpoint_at,
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
1121 exit(Process::GlobalExitCode()); 1123 exit(Process::GlobalExitCode());
1122 } 1124 }
1123 1125
1124 } // namespace bin 1126 } // namespace bin
1125 } // namespace dart 1127 } // namespace dart
1126 1128
1127 int main(int argc, char** argv) { 1129 int main(int argc, char** argv) {
1128 dart::bin::main(argc, argv); 1130 dart::bin::main(argc, argv);
1129 UNREACHABLE(); 1131 UNREACHABLE();
1130 } 1132 }
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698