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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 2289353003: Make Enqueuer a pure interface. (Closed)
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/enqueue.dart ('k') | pkg/compiler/lib/src/js_backend/enqueuer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index c4c357c72854cee67dee6e24b46e8dad5e1af788..7c3342da5e022b4e8d903ace2745501f9bd74b1c 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -321,7 +321,7 @@ class JavaScriptBackend extends Backend {
* The generated code as a js AST for compiled methods.
*/
Map<Element, jsAst.Expression> get generatedCode {
- return compiler.enqueuer.codegen.generatedCode;
+ return codegenEnqueuer.generatedCode;
}
FunctionInlineCache inlineCache = new FunctionInlineCache();
@@ -1564,6 +1564,8 @@ class JavaScriptBackend extends Backend {
}
}
+ CodegenEnqueuer get codegenEnqueuer => compiler.enqueuer.codegen;
+
CodegenEnqueuer createCodegenEnqueuer(Compiler compiler) {
return new CodegenEnqueuer(compiler, createItemCompilationContext,
const TreeShakingEnqueuerStrategy());
« no previous file with comments | « pkg/compiler/lib/src/enqueue.dart ('k') | pkg/compiler/lib/src/js_backend/enqueuer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698