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

Unified Diff: lib/compiler/implementation/ssa/nodes.dart

Issue 10693059: remove HIf.hasElse. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « lib/compiler/implementation/ssa/codegen.dart ('k') | lib/compiler/implementation/ssa/optimize.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/nodes.dart
diff --git a/lib/compiler/implementation/ssa/nodes.dart b/lib/compiler/implementation/ssa/nodes.dart
index cfc8a8a32fedd0bedbec50e30aae75b2aeaa3e3d..49c0943a7d049655ff717aa319ed93adb9bb06a3 100644
--- a/lib/compiler/implementation/ssa/nodes.dart
+++ b/lib/compiler/implementation/ssa/nodes.dart
@@ -1748,9 +1748,8 @@ class HTry extends HControlFlow {
}
class HIf extends HConditionalBranch {
- bool hasElse;
HBlockFlow blockInformation = null;
- HIf(HInstruction condition, this.hasElse) : super(<HInstruction>[condition]);
+ HIf(HInstruction condition) : super(<HInstruction>[condition]);
toString() => 'if';
accept(HVisitor visitor) => visitor.visitIf(this);
@@ -1760,12 +1759,8 @@ class HIf extends HConditionalBranch {
}
HBasicBlock get elseBlock() {
- if (hasElse) {
- assert(block.dominatedBlocks[1] === block.successors[1]);
- return block.successors[1];
- } else {
- return null;
- }
+ assert(block.dominatedBlocks[1] === block.successors[1]);
+ return block.successors[1];
}
HBasicBlock get joinBlock() => blockInformation.continuation;
« no previous file with comments | « lib/compiler/implementation/ssa/codegen.dart ('k') | lib/compiler/implementation/ssa/optimize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698