| Index: pkg/compiler/lib/src/js_backend/codegen/task.dart
|
| diff --git a/pkg/compiler/lib/src/js_backend/codegen/task.dart b/pkg/compiler/lib/src/js_backend/codegen/task.dart
|
| index 8345894e97778b1f5f02be77010bffb511661e18..9288e742392bd5113d06f0dee117267bfc79d974 100644
|
| --- a/pkg/compiler/lib/src/js_backend/codegen/task.dart
|
| +++ b/pkg/compiler/lib/src/js_backend/codegen/task.dart
|
| @@ -64,6 +64,10 @@ class CspFunctionCompiler implements FunctionCompiler {
|
| types = new TypeMaskSystem(compiler);
|
| AstElement element = work.element;
|
| return compiler.withCurrentElement(element, () {
|
| + if (element.library.isPlatformLibrary) {
|
| + compiler.log('Using SSA compiler for platform element $element');
|
| + return fallbackCompiler.compile(work);
|
| + }
|
| try {
|
| if (tracer != null) {
|
| tracer.traceCompilation(element.name, null);
|
| @@ -74,15 +78,9 @@ class CspFunctionCompiler implements FunctionCompiler {
|
| treeFunction = optimizeTreeIR(treeFunction);
|
| return compileToJavaScript(work, treeFunction);
|
| } on CodegenBailout catch (e) {
|
| - if (element.library.isPlatformLibrary) {
|
| - compiler.log('Falling back to SSA compiler for $element'
|
| - ' (${e.message})');
|
| - return fallbackCompiler.compile(work);
|
| - } else {
|
| - String message = "Unable to compile $element with the new compiler.\n"
|
| - " Reason: ${e.message}";
|
| - compiler.internalError(element, message);
|
| - }
|
| + String message = "Unable to compile $element with the new compiler.\n"
|
| + " Reason: ${e.message}";
|
| + compiler.internalError(element, message);
|
| }
|
| });
|
| }
|
|
|