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

Unified Diff: dart/compiler/java/com/google/dart/compiler/CommandLineOptions.java

Issue 9353015: Remove dartc optimizing backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix minor test issues Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: dart/compiler/java/com/google/dart/compiler/CommandLineOptions.java
diff --git a/dart/compiler/java/com/google/dart/compiler/CommandLineOptions.java b/dart/compiler/java/com/google/dart/compiler/CommandLineOptions.java
index 9edc2a728070aa43c418da0030d97cc8420ee58c..42e51c682ff7ed25d9c248e2a8532ac88bb5b9b8 100644
--- a/dart/compiler/java/com/google/dart/compiler/CommandLineOptions.java
+++ b/dart/compiler/java/com/google/dart/compiler/CommandLineOptions.java
@@ -103,17 +103,6 @@ public class CommandLineOptions {
usage = "Disable incremental compilation")
private boolean noincremental = false;
- private boolean optimize = false;
-
- /**
- * Enables optimization of the generated javascript.
- */
- @Option(name = "--optimize", aliases = { "-optimize" },
- usage = "Produce optimized code")
- public void setOptimize(boolean optimize) {
- this.optimize = optimize;
- }
-
@Option(name = "--out",
usage = "Write generated JavaScript to a file")
private File outputFilename = null;
@@ -240,13 +229,6 @@ public class CommandLineOptions {
}
/**
- * Returns <code>true</code> if optimization is enabled.
- */
- public boolean shouldOptimize() {
- return optimize;
- }
-
- /**
* Returns <code>true</code> if the compiler should print it's help message.
*/
public boolean showHelp() {
@@ -305,9 +287,6 @@ public class CommandLineOptions {
@Option(name="--prof", usage = "Enable profiling")
private boolean prof;
- @Option(name = "--rhino", usage = "Use rhino as the javascript interpreter")
- private boolean rhino = false;
-
/**
* @return <code>true</code> if the program should compile but not execute.
*/
@@ -325,14 +304,6 @@ public class CommandLineOptions {
}
/**
- * @return <code>true</code> if rhino should be used as the runtime (default is to invoke d8)
- */
- @Override
- public boolean useRhino() {
- return rhino;
- }
-
- /**
* @return <code>true</code> to enable diagnostic output
*/
@Override

Powered by Google App Engine
This is Rietveld 408576698