| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 visitBitAnd(HBitAnd node); | 7 R visitBitAnd(HBitAnd node); |
| 8 R visitBitNot(HBitNot node); | 8 R visitBitNot(HBitNot node); |
| 9 R visitBitOr(HBitOr node); | 9 R visitBitOr(HBitOr node); |
| 10 R visitBitXor(HBitXor node); | 10 R visitBitXor(HBitXor node); |
| (...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 oldInputUsers[i] = oldInputUsers[oldInput.usedBy.length - 1]; | 928 oldInputUsers[i] = oldInputUsers[oldInput.usedBy.length - 1]; |
| 929 oldInputUsers.length = oldInputUsers.length - 1; | 929 oldInputUsers.length = oldInputUsers.length - 1; |
| 930 } | 930 } |
| 931 } | 931 } |
| 932 } | 932 } |
| 933 | 933 |
| 934 bool isConstant() => false; | 934 bool isConstant() => false; |
| 935 bool isConstantBoolean() => false; | 935 bool isConstantBoolean() => false; |
| 936 bool isConstantNull() => false; | 936 bool isConstantNull() => false; |
| 937 bool isConstantNumber() => false; | 937 bool isConstantNumber() => false; |
| 938 bool isConstantInteger() => false; |
| 938 bool isConstantString() => false; | 939 bool isConstantString() => false; |
| 939 bool isConstantList() => false; | 940 bool isConstantList() => false; |
| 940 bool isConstantMap() => false; | 941 bool isConstantMap() => false; |
| 941 bool isConstantFalse() => false; | 942 bool isConstantFalse() => false; |
| 942 bool isConstantTrue() => false; | 943 bool isConstantTrue() => false; |
| 943 bool isConstantInteger() => false; | |
| 944 | 944 |
| 945 bool isValid() { | 945 bool isValid() { |
| 946 HValidator validator = new HValidator(); | 946 HValidator validator = new HValidator(); |
| 947 validator.currentBlock = block; | 947 validator.currentBlock = block; |
| 948 validator.visitInstruction(this); | 948 validator.visitInstruction(this); |
| 949 return validator.isValid; | 949 return validator.isValid; |
| 950 } | 950 } |
| 951 | 951 |
| 952 /** | 952 /** |
| 953 * The code for computing a bailout environment, and the code | 953 * The code for computing a bailout environment, and the code |
| (...skipping 1627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2581 HBasicBlock get start() => expression.start; | 2581 HBasicBlock get start() => expression.start; |
| 2582 HBasicBlock get end() { | 2582 HBasicBlock get end() { |
| 2583 // We don't create a switch block if there are no cases. | 2583 // We don't create a switch block if there are no cases. |
| 2584 assert(!statements.isEmpty()); | 2584 assert(!statements.isEmpty()); |
| 2585 return statements.last().end; | 2585 return statements.last().end; |
| 2586 } | 2586 } |
| 2587 | 2587 |
| 2588 bool accept(HStatementInformationVisitor visitor) => | 2588 bool accept(HStatementInformationVisitor visitor) => |
| 2589 visitor.visitSwitchInfo(this); | 2589 visitor.visitSwitchInfo(this); |
| 2590 } | 2590 } |
| OLD | NEW |