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

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

Issue 10579014: Postpone the argument type optimizations until the types are stable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix comment. Created 8 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
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 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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698