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

Unified Diff: frog/leg/ssa/nodes.dart

Issue 9784002: Support non-speculative type propagation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | frog/leg/ssa/optimize.dart » ('j') | frog/leg/ssa/types.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/ssa/nodes.dart
===================================================================
--- frog/leg/ssa/nodes.dart (revision 5905)
+++ frog/leg/ssa/nodes.dart (working copy)
@@ -842,26 +842,6 @@
// inserted to make sure the users get the right type in.
bool hasExpectedType() => false;
- // Re-compute and update the type of the instruction. Returns
- // whether or not the type was changed.
- bool updateType() {
- if (type.isConflicting()) return false;
- HType newType = computeType();
- HType desiredType = computeDesiredType();
- HType combined = newType.combine(desiredType);
- if (combined.isKnown()) newType = combined;
-
- bool changed = (type != newType);
- if (type.isUnknown()) {
- type = newType;
- return changed;
- } else if (changed) {
- type = type.combine(newType);
- return changed;
- }
- return false;
- }
-
bool isInBasicBlock() => block !== null;
String inputsToString() {
@@ -1800,12 +1780,6 @@
return true;
}
- void setInitialTypeForLoopPhi() {
- assert(block.isLoopHeader());
- assert(type.isUnknown());
- type = inputs[0].type;
- }
-
bool isLogicalOperator() => logicalOperatorType != IS_NOT_LOGICAL_OPERATOR;
String logicalOperator() {
« no previous file with comments | « no previous file | frog/leg/ssa/optimize.dart » ('j') | frog/leg/ssa/types.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698