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

Unified Diff: pkg/compiler/lib/src/ssa/builder.dart

Issue 2269783002: Add skeleton of SSAKernel function compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/ssa/builder_kernel.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/ssa/builder_kernel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698