| Index: tests/compiler/dart2js/compiler_helper.dart
|
| ===================================================================
|
| --- tests/compiler/dart2js/compiler_helper.dart (revision 18164)
|
| +++ tests/compiler/dart2js/compiler_helper.dart (working copy)
|
| @@ -16,6 +16,8 @@
|
| import "../../../sdk/lib/_internal/compiler/implementation/ssa/ssa.dart" as ssa;
|
| import "../../../sdk/lib/_internal/compiler/implementation/util/util.dart";
|
| import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart';
|
| +import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart'
|
| + show Compiler;
|
|
|
| import "mock_compiler.dart";
|
| import "parser_helper.dart";
|
| @@ -34,6 +36,7 @@
|
| compiler.parseScript(code);
|
| lego.Element element = compiler.mainApp.find(buildSourceString(entry));
|
| if (element == null) return null;
|
| + compiler.phase = Compiler.PHASE_RESOLVING;
|
| compiler.backend.enqueueHelpers(compiler.enqueuer.resolution);
|
| compiler.processQueue(compiler.enqueuer.resolution, element);
|
| var context = new js.JavaScriptItemCompilationContext();
|
| @@ -42,6 +45,7 @@
|
| resolutionWork.run(compiler, compiler.enqueuer.resolution);
|
| leg.CodegenWorkItem work =
|
| new leg.CodegenWorkItem(element, resolutionWork.resolutionTree, context);
|
| + compiler.phase = Compiler.PHASE_COMPILING;
|
| work.run(compiler, compiler.enqueuer.codegen);
|
| return compiler.enqueuer.codegen.assembleCode(element);
|
| }
|
|
|