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

Unified Diff: dart/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.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/DefaultCompilerConfiguration.java
diff --git a/dart/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java b/dart/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
index 23933924df30a9116d2d100d4367bd68b43d4250..b4723a4a9b82057db82f911a4c0c1049be062407 100644
--- a/dart/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
+++ b/dart/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
@@ -6,7 +6,6 @@ package com.google.dart.compiler;
import com.google.dart.compiler.CommandLineOptions.CompilerOptions;
import com.google.dart.compiler.backend.isolate.DartIsolateStubGenerator;
-import com.google.dart.compiler.backend.js.ClosureJsBackend;
import com.google.dart.compiler.backend.js.JavascriptBackend;
import com.google.dart.compiler.metrics.CompilerMetrics;
import com.google.dart.compiler.resolver.CompileTimeConstantAnalyzer;
@@ -47,10 +46,6 @@ public class DefaultCompilerConfiguration implements CompilerConfiguration {
if (!compilerOptions.getIsolateStubClasses().isEmpty()) {
return new DartIsolateStubGenerator(compilerOptions.getIsolateStubClasses(),
compilerOptions.getIsolateStubOutputFile());
- } else if (compilerOptions.shouldOptimize()) {
- return new ClosureJsBackend(
- compilerOptions.developerModeChecks(),
- compilerOptions.generateHumanReadableOutput());
} else {
return new JavascriptBackend();
}
@@ -134,11 +129,6 @@ public class DefaultCompilerConfiguration implements CompilerConfiguration {
}
@Override
- public boolean shouldOptimize() {
- return compilerOptions.shouldOptimize();
- }
-
- @Override
public CompilerMetrics getCompilerMetrics() {
return compilerMetrics;
}

Powered by Google App Engine
This is Rietveld 408576698