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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/frog/FrogCompiler.java

Issue 10414077: Change the default Dart-to-JavaScript compiler in the editor to be dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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
« no previous file with comments | « client/dart.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/frog/FrogCompiler.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/frog/FrogCompiler.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/frog/FrogCompiler.java
index 08e8d1682999e92dc6e44d443f722bb8aca9bfd5..6e3a759f5d2d6027ccd8ef127189f7de2c3e30f9 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/frog/FrogCompiler.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/frog/FrogCompiler.java
@@ -117,7 +117,7 @@ public class FrogCompiler {
latch = new CountDownLatch(0);
}
- compiler = new FrogCompiler();
+ compiler = new Dart2JSCompiler();
console.clear();
console.println("Generating JavaScript...");
@@ -128,7 +128,7 @@ public class FrogCompiler {
@Override
public void run() {
try {
- runDart2JSCompile(inputPath, outputPath, console);
+ runFrogCompile(inputPath, outputPath, console);
} finally {
latch.countDown();
}
@@ -154,14 +154,14 @@ public class FrogCompiler {
}
}
- protected static void runDart2JSCompile(IPath inputPath, IPath outputPath, MessageConsole console) {
+ protected static void runFrogCompile(IPath inputPath, IPath outputPath, MessageConsole console) {
long startTime = System.currentTimeMillis();
String outName = outputPath.lastSegment() + "_";
outputPath = outputPath.removeLastSegments(1).append(outName);
- FrogCompiler compiler = new Dart2JSCompiler();
+ FrogCompiler compiler = new FrogCompiler();
try {
CompilationResult result = compiler.compile(inputPath, outputPath, new NullProgressMonitor());
« no previous file with comments | « client/dart.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698