| 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 part of ssa; | 5 part of ssa; |
| 6 | 6 |
| 7 abstract class HVisitor<R> { | 7 abstract class HVisitor<R> { |
| 8 R visitAdd(HAdd node); | 8 R visitAdd(HAdd node); |
| 9 R visitBailoutTarget(HBailoutTarget node); | 9 R visitBailoutTarget(HBailoutTarget node); |
| 10 R visitBitAnd(HBitAnd node); | 10 R visitBitAnd(HBitAnd node); |
| (...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 bool isMutableArray() => instructionType.isMutableArray(); | 831 bool isMutableArray() => instructionType.isMutableArray(); |
| 832 bool isExtendableArray() => instructionType.isExtendableArray(); | 832 bool isExtendableArray() => instructionType.isExtendableArray(); |
| 833 bool isFixedArray() => instructionType.isFixedArray(); | 833 bool isFixedArray() => instructionType.isFixedArray(); |
| 834 bool isBoolean() => instructionType.isBoolean(); | 834 bool isBoolean() => instructionType.isBoolean(); |
| 835 bool isInteger() => instructionType.isInteger(); | 835 bool isInteger() => instructionType.isInteger(); |
| 836 bool isDouble() => instructionType.isDouble(); | 836 bool isDouble() => instructionType.isDouble(); |
| 837 bool isNumber() => instructionType.isNumber(); | 837 bool isNumber() => instructionType.isNumber(); |
| 838 bool isNumberOrNull() => instructionType.isNumberOrNull(); | 838 bool isNumberOrNull() => instructionType.isNumberOrNull(); |
| 839 bool isString() => instructionType.isString(); | 839 bool isString() => instructionType.isString(); |
| 840 bool isPrimitive() => instructionType.isPrimitive(); | 840 bool isPrimitive() => instructionType.isPrimitive(); |
| 841 bool isNull() => instructionType.isNull(); |
| 841 bool canBeNull() => instructionType.canBeNull(); | 842 bool canBeNull() => instructionType.canBeNull(); |
| 842 bool canBePrimitive(Compiler compiler) => | 843 bool canBePrimitive(Compiler compiler) => |
| 843 instructionType.canBePrimitive(compiler); | 844 instructionType.canBePrimitive(compiler); |
| 844 | 845 |
| 845 bool isIndexable(Compiler compiler) => | 846 bool isIndexable(Compiler compiler) => |
| 846 instructionType.isIndexable(compiler); | 847 instructionType.isIndexable(compiler); |
| 847 bool isMutableIndexable(Compiler compiler) => | 848 bool isMutableIndexable(Compiler compiler) => |
| 848 instructionType.isMutableIndexable(compiler); | 849 instructionType.isMutableIndexable(compiler); |
| 849 | 850 |
| 850 // TODO(kasperl): Get rid of this one. | 851 // TODO(kasperl): Get rid of this one. |
| (...skipping 1812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2663 HBasicBlock get start => expression.start; | 2664 HBasicBlock get start => expression.start; |
| 2664 HBasicBlock get end { | 2665 HBasicBlock get end { |
| 2665 // We don't create a switch block if there are no cases. | 2666 // We don't create a switch block if there are no cases. |
| 2666 assert(!statements.isEmpty); | 2667 assert(!statements.isEmpty); |
| 2667 return statements.last.end; | 2668 return statements.last.end; |
| 2668 } | 2669 } |
| 2669 | 2670 |
| 2670 bool accept(HStatementInformationVisitor visitor) => | 2671 bool accept(HStatementInformationVisitor visitor) => |
| 2671 visitor.visitSwitchInfo(this); | 2672 visitor.visitSwitchInfo(this); |
| 2672 } | 2673 } |
| OLD | NEW |