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

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

Issue 807443002: Disable type propagation for the dart backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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 | pkg/compiler/lib/src/dart_backend/backend.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 ffb61e3932c155b4d21de27508f8736b8e25b141..dced6203e7936fad121befb8df87d9e179676d9f 100644
--- a/pkg/compiler/lib/src/cps_ir/type_propagation.dart
+++ b/pkg/compiler/lib/src/cps_ir/type_propagation.dart
@@ -21,6 +21,25 @@ abstract class TypeSystem<T> {
T typeOf(ConstantValue constant);
}
+class UnitTypeSystem implements TypeSystem<String> {
+ static const String UNIT = 'unit';
+
+ get boolType => UNIT;
+ get dynamicType => UNIT;
+ get functionType => UNIT;
+ get intType => UNIT;
+ get listType => UNIT;
+ get mapType => UNIT;
+ get stringType => UNIT;
+ get typeType => UNIT;
+
+ bool areAssignable(a, b) => true;
+ getParameterType(_) => UNIT;
+ getReturnType(_) => UNIT;
+ join(a, b) => UNIT;
+ typeOf(_) => UNIT;
+}
+
class TypeMaskSystem implements TypeSystem<TypeMask> {
final TypesTask inferrer;
final ClassWorld classWorld;
« no previous file with comments | « no previous file | pkg/compiler/lib/src/dart_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698