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

Unified Diff: pkg/compiler/lib/src/ssa/builder_kernel.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/kernel/kernel_strategy.dart ('k') | pkg/compiler/lib/src/ssa/ssa.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_kernel.dart
diff --git a/pkg/compiler/lib/src/ssa/builder_kernel.dart b/pkg/compiler/lib/src/ssa/builder_kernel.dart
index 89ca7e01945b19f44f1d7164bbe0b058805afc9e..a3879ecf2a86df97217705c1fc996a24224eb8d1 100644
--- a/pkg/compiler/lib/src/ssa/builder_kernel.dart
+++ b/pkg/compiler/lib/src/ssa/builder_kernel.dart
@@ -6,8 +6,9 @@ import 'package:kernel/ast.dart' as ir;
import '../closure.dart';
import '../common.dart';
-import '../common/codegen.dart' show CodegenRegistry;
+import '../common/codegen.dart' show CodegenWorkItem, CodegenRegistry;
import '../common/names.dart';
+import '../common/tasks.dart';
import '../compiler.dart';
import '../constants/values.dart'
show
@@ -39,17 +40,19 @@ import 'kernel_string_builder.dart';
import 'locals_handler.dart';
import 'loop_handler.dart';
import 'nodes.dart';
+import 'ssa.dart';
import 'ssa_branch_builder.dart';
import 'switch_continue_analysis.dart';
import 'type_builder.dart';
import 'types.dart' show TypeMaskFactory;
-class SsaKernelBuilderTask extends SsaAstBuilderBase {
+class SsaAstKernelBuilderTask extends SsaAstBuilderBase {
final SourceInformationStrategy sourceInformationFactory;
String get name => 'SSA kernel builder';
- SsaKernelBuilderTask(JavaScriptBackend backend, this.sourceInformationFactory)
+ SsaAstKernelBuilderTask(
+ JavaScriptBackend backend, this.sourceInformationFactory)
: super(backend);
HGraph build(ElementCodegenWorkItem work, ClosedWorld closedWorld) {
@@ -91,6 +94,15 @@ class SsaKernelBuilderTask extends SsaAstBuilderBase {
}
}
+class KernelSsaBuilderTask extends CompilerTask implements SsaBuilderTask {
+ KernelSsaBuilderTask(Measurer measurer) : super(measurer);
+
+ @override
+ HGraph build(CodegenWorkItem work, ClosedWorld closedWorld) {
+ throw new UnimplementedError("KernelSsaBuilderTask.build");
+ }
+}
+
class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
ir.Node target;
bool _targetIsConstructorBody = false;
« no previous file with comments | « pkg/compiler/lib/src/kernel/kernel_strategy.dart ('k') | pkg/compiler/lib/src/ssa/ssa.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698