| 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 06cc1748b1a3b29a4e60b3cc2c5ab9414d020940..0f04574512311b28d76b382ab8d20e2a7994b39a 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
|
| @@ -20,8 +20,8 @@ import com.google.dart.compiler.DartCompilerListener;
|
| import com.google.dart.compiler.DartSource;
|
| import com.google.dart.compiler.DefaultCompilerConfiguration;
|
| import com.google.dart.compiler.LibrarySource;
|
| -import com.google.dart.compiler.Source;
|
| import com.google.dart.compiler.PackageLibraryManager;
|
| +import com.google.dart.compiler.Source;
|
| import com.google.dart.compiler.UrlLibrarySource;
|
| import com.google.dart.compiler.UrlSource;
|
| import com.google.dart.compiler.metrics.CompilerMetrics;
|
| @@ -211,9 +211,12 @@ public class DartCompilerWarmup {
|
| return metrics;
|
| }
|
| };
|
| + DartCompilerUtilities.warmUpStart();
|
| DartCompilerUtilities.secureCompileLib(libSrc, config, provider, listener);
|
| - } catch (IOException e) {
|
| + } catch (Exception e) {
|
| DartCore.logError(e);
|
| + } finally {
|
| + DartCompilerUtilities.warmUpDone();
|
| }
|
| if (DartCoreDebug.WARMUP) {
|
| ByteArrayOutputStream out = new ByteArrayOutputStream(400);
|
|
|