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

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

Issue 10454112: Remove frog from the SDK and stop running it from the editor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Never map to .js_. 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') | lib/config/import_frog.config » ('j') | 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 6e3a759f5d2d6027ccd8ef127189f7de2c3e30f9..f08b989a3b48f97fe0b2b7637ef8c1b235fef1d5 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
@@ -107,47 +107,17 @@ public class FrogCompiler {
final IPath inputPath = library.getCorrespondingResource().getLocation();
final IPath outputPath = DartBuilder.getJsAppArtifactPath(path);
- FrogCompiler compiler;
-
- final CountDownLatch latch;
-
- if (DartCoreDebug.ENABLE_DOUBLE_COMPILATION) {
- latch = new CountDownLatch(1);
- } else {
- latch = new CountDownLatch(0);
- }
-
- compiler = new Dart2JSCompiler();
+ FrogCompiler compiler = new Dart2JSCompiler();
console.clear();
console.println("Generating JavaScript...");
try {
- if (DartCoreDebug.ENABLE_DOUBLE_COMPILATION) {
- new Thread(new Runnable() {
- @Override
- public void run() {
- try {
- runFrogCompile(inputPath, outputPath, console);
- } finally {
- latch.countDown();
- }
- }
- }).start();
- }
-
CompilationResult result = compiler.compile(inputPath, outputPath, monitor);
refreshResources(library.getCorrespondingResource());
displayCompilationResult(compiler, result, outputPath, startTime, console);
-
- try {
- latch.await();
- } catch (InterruptedException ex) {
-
- }
-
return result;
} catch (IOException ioe) {
throw new CoreException(new Status(IStatus.ERROR, DartCore.PLUGIN_ID, ioe.toString(), ioe));
« no previous file with comments | « client/dart.js ('k') | lib/config/import_frog.config » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698