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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerWarmup.java

Issue 9479013: Remove backends. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: More clean up 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: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerWarmup.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerWarmup.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerWarmup.java
index dab94975e846105de4266eda6b4b59d17d071948..9b7abcddcff77448cbb06acec9392ba7bb3516f7 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerWarmup.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerWarmup.java
@@ -13,7 +13,6 @@
*/
package com.google.dart.tools.core.utilities.compiler;
-import com.google.dart.compiler.Backend;
import com.google.dart.compiler.CommandLineOptions.CompilerOptions;
import com.google.dart.compiler.CompilerConfiguration;
import com.google.dart.compiler.DartArtifactProvider;
@@ -25,7 +24,6 @@ import com.google.dart.compiler.Source;
import com.google.dart.compiler.SystemLibraryManager;
import com.google.dart.compiler.UrlLibrarySource;
import com.google.dart.compiler.UrlSource;
-import com.google.dart.compiler.backend.js.AbstractJsBackend;
import com.google.dart.compiler.metrics.CompilerMetrics;
import com.google.dart.compiler.util.DartSourceString;
import com.google.dart.tools.core.DartCore;
@@ -41,8 +39,6 @@ import java.io.PrintStream;
import java.io.Reader;
import java.io.Writer;
import java.net.URI;
-import java.util.ArrayList;
-import java.util.List;
/**
* Utility class for "warming up" the compiler by loading artifacts and performing some simple
@@ -84,13 +80,6 @@ public class DartCompilerWarmup {
public Writer getArtifactWriter(Source source, String part, String extension)
throws IOException {
if (source.getName().equals(WARMUP_DART)) {
-
- // Don't write the final application JS and map files
-
- if (extension.equals(AbstractJsBackend.EXTENSION_APP_JS)) {
- return new NullWriter();
- }
-
// Cache "warmup" artifacts locally so that they can be thrown away
return super.getArtifactWriter(source, part, extension);
@@ -213,12 +202,6 @@ public class DartCompilerWarmup {
try {
CompilerConfiguration config = new DefaultCompilerConfiguration(options, sysLibMgr) {
-
- @Override
- public List<Backend> getBackends() {
- return new ArrayList<Backend>();
- }
-
@Override
public CompilerMetrics getCompilerMetrics() {
return metrics;

Powered by Google App Engine
This is Rietveld 408576698