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

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

Issue 2813603002: Less direct Compiler use in SSA (Closed)
Patch Set: Created 3 years, 8 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_branch_builder.dart
diff --git a/pkg/compiler/lib/src/ssa/ssa_branch_builder.dart b/pkg/compiler/lib/src/ssa/ssa_branch_builder.dart
index 7493d308228359a99e812357a4d34505bdaa8de7..1c4e690ea7494a826dc9141d065cf9d735a48d3d 100644
--- a/pkg/compiler/lib/src/ssa/ssa_branch_builder.dart
+++ b/pkg/compiler/lib/src/ssa/ssa_branch_builder.dart
@@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import '../compiler.dart';
+import '../common.dart';
import '../io/source_information.dart';
import '../tree/tree.dart' as ast;
@@ -22,14 +22,14 @@ class SsaBranch {
class SsaBranchBuilder {
final GraphBuilder builder;
- final Compiler compiler;
final ast.Node diagnosticNode;
- SsaBranchBuilder(this.builder, this.compiler, [this.diagnosticNode]);
+ SsaBranchBuilder(this.builder, [this.diagnosticNode]);
void checkNotAborted() {
if (builder.isAborted()) {
- compiler.unimplemented(diagnosticNode, "aborted control flow");
+ throw new SpannableAssertionFailure(
+ diagnosticNode, "aborted control flow");
}
}

Powered by Google App Engine
This is Rietveld 408576698