| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 interface HVisitor<R> { | 5 interface HVisitor<R> { |
| 6 R visitAdd(HAdd node); | 6 R visitAdd(HAdd node); |
| 7 R visitBailoutTarget(HBailoutTarget node); | 7 R visitBailoutTarget(HBailoutTarget node); |
| 8 R visitBitAnd(HBitAnd node); | 8 R visitBitAnd(HBitAnd node); |
| 9 R visitBitNot(HBitNot node); | 9 R visitBitNot(HBitNot node); |
| 10 R visitBitOr(HBitOr node); | 10 R visitBitOr(HBitOr node); |
| (...skipping 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1628 accept(HVisitor visitor) => visitor.visitExit(this); | 1628 accept(HVisitor visitor) => visitor.visitExit(this); |
| 1629 } | 1629 } |
| 1630 | 1630 |
| 1631 class HGoto extends HControlFlow { | 1631 class HGoto extends HControlFlow { |
| 1632 HGoto() : super(const <HInstruction>[]); | 1632 HGoto() : super(const <HInstruction>[]); |
| 1633 toString() => 'goto'; | 1633 toString() => 'goto'; |
| 1634 accept(HVisitor visitor) => visitor.visitGoto(this); | 1634 accept(HVisitor visitor) => visitor.visitGoto(this); |
| 1635 } | 1635 } |
| 1636 | 1636 |
| 1637 class HTry extends HControlFlow { | 1637 class HTry extends HControlFlow { |
| 1638 HParameterValue exception; |
| 1638 HBasicBlock finallyBlock; | 1639 HBasicBlock finallyBlock; |
| 1639 HTry() : super(const <HInstruction>[]); | 1640 HTry() : super(const <HInstruction>[]); |
| 1640 toString() => 'try'; | 1641 toString() => 'try'; |
| 1641 accept(HVisitor visitor) => visitor.visitTry(this); | 1642 accept(HVisitor visitor) => visitor.visitTry(this); |
| 1642 } | 1643 } |
| 1643 | 1644 |
| 1644 class HIf extends HConditionalBranch { | 1645 class HIf extends HConditionalBranch { |
| 1645 bool hasElse; | 1646 bool hasElse; |
| 1646 HIf(HInstruction condition, this.hasElse) : super(<HInstruction>[condition]); | 1647 HIf(HInstruction condition, this.hasElse) : super(<HInstruction>[condition]); |
| 1647 toString() => 'if'; | 1648 toString() => 'if'; |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2130 | 2131 |
| 2131 HInstruction get expression() => inputs[0]; | 2132 HInstruction get expression() => inputs[0]; |
| 2132 | 2133 |
| 2133 HType computeType() => HType.BOOLEAN; | 2134 HType computeType() => HType.BOOLEAN; |
| 2134 bool hasExpectedType() => true; | 2135 bool hasExpectedType() => true; |
| 2135 | 2136 |
| 2136 accept(HVisitor visitor) => visitor.visitIs(this); | 2137 accept(HVisitor visitor) => visitor.visitIs(this); |
| 2137 | 2138 |
| 2138 toString() => "$expression is $typeExpression"; | 2139 toString() => "$expression is $typeExpression"; |
| 2139 } | 2140 } |
| OLD | NEW |