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

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

Issue 9384013: Remove DartIsolateStubGenerator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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: compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
diff --git a/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java b/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
index b4723a4a9b82057db82f911a4c0c1049be062407..7911b087f30d19e55b3be24667fad314b442310f 100644
--- a/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
+++ b/compiler/java/com/google/dart/compiler/DefaultCompilerConfiguration.java
@@ -5,7 +5,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.JavascriptBackend;
import com.google.dart.compiler.metrics.CompilerMetrics;
import com.google.dart.compiler.resolver.CompileTimeConstantAnalyzer;
@@ -41,23 +40,13 @@ public class DefaultCompilerConfiguration implements CompilerConfiguration {
this(new JavascriptBackend());
}
- private static Backend selectBackend(CompilerOptions compilerOptions)
- throws FileNotFoundException {
- if (!compilerOptions.getIsolateStubClasses().isEmpty()) {
- return new DartIsolateStubGenerator(compilerOptions.getIsolateStubClasses(),
- compilerOptions.getIsolateStubOutputFile());
- } else {
- return new JavascriptBackend();
- }
- }
-
/**
* A new instance with the specified {@link CompilerOptions}
* @throws FileNotFoundException
*/
public DefaultCompilerConfiguration(CompilerOptions compilerOptions)
throws FileNotFoundException {
- this (selectBackend(compilerOptions), compilerOptions);
+ this (new JavascriptBackend(), compilerOptions);
}
/**
@@ -94,7 +83,7 @@ public class DefaultCompilerConfiguration implements CompilerConfiguration {
*/
public DefaultCompilerConfiguration(CompilerOptions compilerOptions,
SystemLibraryManager libraryManager) throws FileNotFoundException {
- this(compilerOptions, libraryManager, selectBackend(compilerOptions));
+ this(compilerOptions, libraryManager, new JavascriptBackend());
}
/**
@@ -179,11 +168,6 @@ public class DefaultCompilerConfiguration implements CompilerConfiguration {
}
@Override
- public boolean shouldWarnOnNoSuchType() {
- return false;
- }
-
- @Override
public LibrarySource getSystemLibraryFor(String importSpec) {
URI systemUri;
try {

Powered by Google App Engine
This is Rietveld 408576698