Chromium Code Reviews| Index: dart/compiler/java/com/google/dart/compiler/backend/dart/DartBackend.java |
| diff --git a/dart/compiler/java/com/google/dart/compiler/backend/dart/DartBackend.java b/dart/compiler/java/com/google/dart/compiler/backend/dart/DartBackend.java |
| index 661d53cf74e4eaebb45474bb3c9c3bbf75b52c59..667a9497739ef3c290bb35cb15526890fe8c2b57 100644 |
| --- a/dart/compiler/java/com/google/dart/compiler/backend/dart/DartBackend.java |
| +++ b/dart/compiler/java/com/google/dart/compiler/backend/dart/DartBackend.java |
| @@ -6,13 +6,13 @@ package com.google.dart.compiler.backend.dart; |
| import com.google.common.io.CharStreams; |
| import com.google.common.io.Closeables; |
| +import com.google.dart.compiler.Backend; |
| import com.google.dart.compiler.DartCompilerContext; |
| import com.google.dart.compiler.DartSource; |
| import com.google.dart.compiler.LibrarySource; |
| import com.google.dart.compiler.ast.DartToSourceVisitor; |
| import com.google.dart.compiler.ast.DartUnit; |
| import com.google.dart.compiler.ast.LibraryUnit; |
| -import com.google.dart.compiler.backend.common.AbstractBackend; |
| import com.google.dart.compiler.resolver.CoreTypeProvider; |
| import com.google.dart.compiler.util.DefaultTextOutput; |
| import com.google.dart.compiler.util.TextOutput; |
| @@ -25,12 +25,9 @@ import java.util.Collection; |
| /** |
| * A compiler backend that produces optimized Dart. |
| */ |
| -public class DartBackend extends AbstractBackend { |
| +public class DartBackend implements Backend { |
| public static final String EXTENSION_DART = "opt.dart"; |
| - public static final String EXTENSION_DART_SRC_MAP = "opt.dart.map"; |
| - |
| - |
| private static void packageLibs(Collection<LibraryUnit> libraries, |
| Writer w, |
| @@ -66,7 +63,6 @@ public class DartBackend extends AbstractBackend { |
| DartToSourceVisitor srcGenerator = new DartToSourceVisitor(out); |
| // TODO(johnlenz): Determine if we want to make source maps |
|
zundel
2012/02/08 00:22:36
obsolete comment.
ahe
2012/02/08 09:36:10
Done.
|
| // optional. |
| - srcGenerator.generateSourceMap(true); |
| srcGenerator.accept(unit); |
| Writer w = context.getArtifactWriter(src, "", EXTENSION_DART); |
| boolean failed = true; |
| @@ -76,15 +72,6 @@ public class DartBackend extends AbstractBackend { |
| } finally { |
| Closeables.close(w, failed); |
| } |
| - // Write out the source map. |
| - w = context.getArtifactWriter(src, "", EXTENSION_DART_SRC_MAP); |
| - failed = true; |
| - try { |
| - srcGenerator.writeSourceMap(w, src.getName()); |
| - failed = false; |
| - } finally { |
| - Closeables.close(w, failed); |
| - } |
| } |
| @Override |
| @@ -111,9 +98,4 @@ public class DartBackend extends AbstractBackend { |
| public String getAppExtension() { |
| return EXTENSION_DART; |
| } |
| - |
| - @Override |
| - public String getSourceMapExtension() { |
| - return EXTENSION_DART_SRC_MAP; |
| - } |
| } |