| 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 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 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 750 HNonPrimitiveType temp = other; | 750 HNonPrimitiveType temp = other; |
| 751 if (this.type === temp.type) return this; | 751 if (this.type === temp.type) return this; |
| 752 } | 752 } |
| 753 if (other.isUnknown()) return this; | 753 if (other.isUnknown()) return this; |
| 754 return HType.CONFLICTING; | 754 return HType.CONFLICTING; |
| 755 } | 755 } |
| 756 | 756 |
| 757 String toString() => type.toString(); | 757 String toString() => type.toString(); |
| 758 Element lookupMember(SourceString name) { | 758 Element lookupMember(SourceString name) { |
| 759 ClassElement classElement = type.element; | 759 ClassElement classElement = type.element; |
| 760 classElement.lookupMember(name); | 760 return classElement.lookupMember(name); |
| 761 } | 761 } |
| 762 } | 762 } |
| 763 | 763 |
| 764 class HInstruction implements Hashable { | 764 class HInstruction implements Hashable { |
| 765 Element sourceElement; | 765 Element sourceElement; |
| 766 | 766 |
| 767 final int id; | 767 final int id; |
| 768 static int idCounter; | 768 static int idCounter; |
| 769 | 769 |
| 770 final List<HInstruction> inputs; | 770 final List<HInstruction> inputs; |
| (...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2300 final bool isAnd; | 2300 final bool isAnd; |
| 2301 final SubExpression left; | 2301 final SubExpression left; |
| 2302 final SubExpression right; | 2302 final SubExpression right; |
| 2303 final HBasicBlock joinBlock; | 2303 final HBasicBlock joinBlock; |
| 2304 HAndOrBlockInformation(this.isAnd, | 2304 HAndOrBlockInformation(this.isAnd, |
| 2305 this.left, | 2305 this.left, |
| 2306 this.right, | 2306 this.right, |
| 2307 this.joinBlock); | 2307 this.joinBlock); |
| 2308 bool accept(HBlockInformationVisitor visitor) => visitor.visitAndOrInfo(this); | 2308 bool accept(HBlockInformationVisitor visitor) => visitor.visitAndOrInfo(this); |
| 2309 } | 2309 } |
| OLD | NEW |