| Index: pkg/compiler/lib/src/ssa/builder.dart
|
| diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart
|
| index c0d3fb4ee34a15c8a60cb1cf2891f465dd1118a1..09911c37eb1a3cb0e602698e2bd6716bcf1438da 100644
|
| --- a/pkg/compiler/lib/src/ssa/builder.dart
|
| +++ b/pkg/compiler/lib/src/ssa/builder.dart
|
| @@ -43,37 +43,6 @@ import 'nodes.dart';
|
| import 'optimize.dart';
|
| import 'types.dart';
|
|
|
| -class SsaFunctionCompiler implements FunctionCompiler {
|
| - final SsaCodeGeneratorTask generator;
|
| - final SsaBuilderTask builder;
|
| - final SsaOptimizerTask optimizer;
|
| - final JavaScriptBackend backend;
|
| -
|
| - SsaFunctionCompiler(JavaScriptBackend backend,
|
| - SourceInformationStrategy sourceInformationFactory)
|
| - : generator = new SsaCodeGeneratorTask(backend, sourceInformationFactory),
|
| - builder = new SsaBuilderTask(backend, sourceInformationFactory),
|
| - optimizer = new SsaOptimizerTask(backend),
|
| - backend = backend;
|
| -
|
| - /// Generates JavaScript code for `work.element`.
|
| - /// Using the ssa builder, optimizer and codegenerator.
|
| - js.Fun compile(CodegenWorkItem work) {
|
| - HGraph graph = builder.build(work);
|
| - optimizer.optimize(work, graph);
|
| - Element element = work.element;
|
| - js.Expression result = generator.generateCode(work, graph);
|
| - if (element is FunctionElement) {
|
| - result = backend.rewriteAsync(element, result);
|
| - }
|
| - return result;
|
| - }
|
| -
|
| - Iterable<CompilerTask> get tasks {
|
| - return <CompilerTask>[builder, optimizer, generator];
|
| - }
|
| -}
|
| -
|
| /// A synthetic local variable only used with the SSA graph.
|
| ///
|
| /// For instance used for holding return value of function or the exception of a
|
|
|