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

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

Issue 16104002: Detect (null type == null type), and change it to true. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 | sdk/lib/_internal/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) 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/ssa/optimize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698