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

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

Issue 2932883002: Add FrontendStrategy.commonElements and remove Backend.commonElements (Closed)
Patch Set: Created 3 years, 6 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
Index: pkg/compiler/lib/src/ssa/ssa.dart
diff --git a/pkg/compiler/lib/src/ssa/ssa.dart b/pkg/compiler/lib/src/ssa/ssa.dart
index ddaf2ee7ed45cbe135858a4ebc28acdce8650374..ba197d12af9873c12ad2612799e0473dfeb92b79 100644
--- a/pkg/compiler/lib/src/ssa/ssa.dart
+++ b/pkg/compiler/lib/src/ssa/ssa.dart
@@ -41,7 +41,8 @@ class SsaFunctionCompiler implements FunctionCompiler {
js.Expression result = generator.generateCode(work, graph, closedWorld);
if (element is MethodElement) {
// TODO(sigmund): replace by kernel transformer when `useKernel` is true.
- result = backend.rewriteAsync(element, result);
+ result =
+ backend.rewriteAsync(closedWorld.commonElements, element, result);
}
return result;
}
« no previous file with comments | « pkg/compiler/lib/src/ssa/rasta_ssa_builder_task.dart ('k') | tests/compiler/dart2js/type_combination_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698