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

Side by Side Diff: lib/compiler/implementation/ssa/nodes.dart

Issue 10122005: Fix some type warnings. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | lib/compiler/implementation/ssa/optimize.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 HType combine(HType other) { 748 HType combine(HType other) {
749 if (other.isNonPrimitive()) { 749 if (other.isNonPrimitive()) {
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) => type.element.lookupMember(name); 758 Element lookupMember(SourceString name) {
759 ClassElement classElement = type.element;
760 classElement.lookupMember(name);
761 }
759 } 762 }
760 763
761 class HInstruction implements Hashable { 764 class HInstruction implements Hashable {
762 Element sourceElement; 765 Element sourceElement;
763 766
764 final int id; 767 final int id;
765 static int idCounter; 768 static int idCounter;
766 769
767 final List<HInstruction> inputs; 770 final List<HInstruction> inputs;
768 final List<HInstruction> usedBy; 771 final List<HInstruction> usedBy;
(...skipping 1528 matching lines...) Expand 10 before | Expand all | Expand 10 after
2297 final bool isAnd; 2300 final bool isAnd;
2298 final SubExpression left; 2301 final SubExpression left;
2299 final SubExpression right; 2302 final SubExpression right;
2300 final HBasicBlock joinBlock; 2303 final HBasicBlock joinBlock;
2301 HAndOrBlockInformation(this.isAnd, 2304 HAndOrBlockInformation(this.isAnd,
2302 this.left, 2305 this.left,
2303 this.right, 2306 this.right,
2304 this.joinBlock); 2307 this.joinBlock);
2305 bool accept(HBlockInformationVisitor visitor) => visitor.visitAndOrInfo(this); 2308 bool accept(HBlockInformationVisitor visitor) => visitor.visitAndOrInfo(this);
2306 } 2309 }
OLDNEW
« no previous file with comments | « no previous file | lib/compiler/implementation/ssa/optimize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698