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

Unified Diff: pkg/compiler/lib/src/cps_ir/type_propagation.dart

Issue 1091443003: Move constant systems into their own libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix try/poi/forget_element_test Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/optimizers.dart ('k') | pkg/compiler/lib/src/dart2jslib.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/cps_ir/type_propagation.dart
diff --git a/pkg/compiler/lib/src/cps_ir/type_propagation.dart b/pkg/compiler/lib/src/cps_ir/type_propagation.dart
index ae1e609cf7b53d5e8806be1e4336805801617ec7..8c8668ef3e175d1c825919d372acb48eb18aa793 100644
--- a/pkg/compiler/lib/src/cps_ir/type_propagation.dart
+++ b/pkg/compiler/lib/src/cps_ir/type_propagation.dart
@@ -92,7 +92,7 @@ class TypePropagator<T> extends Pass {
// The constant system is used for evaluation of expressions with constant
// arguments.
- final dart2js.ConstantSystem _constantSystem;
+ final ConstantSystem _constantSystem;
final TypeSystem _typeSystem;
final dart2js.InternalErrorFunction _internalError;
final Map<Node, _AbstractValue> _types;
@@ -301,7 +301,7 @@ class _TypePropagationVisitor<T> implements Visitor {
// since their lattice value has changed.
final Set<Definition> defWorkset = new Set<Definition>();
- final dart2js.ConstantSystem constantSystem;
+ final ConstantSystem constantSystem;
final TypeSystem<T> typeSystem;
final dart2js.InternalErrorFunction internalError;
final types.DartTypes _dartTypes;
@@ -522,7 +522,7 @@ class _TypePropagationVisitor<T> implements Visitor {
if (opname == "unary-") {
opname = "-";
}
- dart2js.UnaryOperation operation = constantSystem.lookupUnary(opname);
+ UnaryOperation operation = constantSystem.lookupUnary(opname);
if (operation != null) {
result = operation.fold(lhs.constant);
}
@@ -535,7 +535,7 @@ class _TypePropagationVisitor<T> implements Visitor {
return;
}
- dart2js.BinaryOperation operation = constantSystem.lookupBinary(opname);
+ BinaryOperation operation = constantSystem.lookupBinary(opname);
if (operation != null) {
result = operation.fold(lhs.constant, rhs.constant);
}
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/optimizers.dart ('k') | pkg/compiler/lib/src/dart2jslib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698