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

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

Issue 2896853002: Create SsaBuilderTask stub for KernelBackendStrategy (Closed)
Patch Set: Rebased Created 3 years, 7 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/kernel/kernel_strategy.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/element_strategy.dart
diff --git a/pkg/compiler/lib/src/js_backend/element_strategy.dart b/pkg/compiler/lib/src/js_backend/element_strategy.dart
index 2fb66213046ec6d5a05e6d6cf3e18b2389269ecd..5001724f086a73daaba2c9b547416ed2d521d82e 100644
--- a/pkg/compiler/lib/src/js_backend/element_strategy.dart
+++ b/pkg/compiler/lib/src/js_backend/element_strategy.dart
@@ -11,9 +11,13 @@ import '../common/work.dart';
import '../compiler.dart';
import '../elements/elements.dart';
import '../enqueue.dart';
+import '../io/source_information.dart';
import '../js_backend/backend.dart';
import '../js_backend/native_data.dart';
import '../js_emitter/sorter.dart';
+import '../ssa/builder.dart';
+import '../ssa/builder_kernel.dart';
+import '../ssa/ssa.dart';
import '../options.dart';
import '../universe/world_builder.dart';
import '../universe/world_impact.dart';
@@ -53,6 +57,14 @@ class ElementBackendStrategy implements BackendStrategy {
return new ElementCodegenWorkItemBuilder(
_compiler.backend, closedWorld, _compiler.options);
}
+
+ @override
+ SsaBuilderTask createSsaBuilderTask(JavaScriptBackend backend,
+ SourceInformationStrategy sourceInformationStrategy) {
+ return _compiler.options.useKernel
+ ? new SsaAstKernelBuilderTask(backend, sourceInformationStrategy)
+ : new SsaAstBuilderTask(backend, sourceInformationStrategy);
+ }
}
/// Builder that creates the work item necessary for the code generation of a
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/kernel/kernel_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698