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

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

Issue 968843003: Implement type argument access and reification of runtime types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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
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 ceef60f7d0d55da3cad40e76ef36fc4c2a421c3e..791ecb95211389869f9d72dad866125e698c8d86 100644
--- a/pkg/compiler/lib/src/cps_ir/type_propagation.dart
+++ b/pkg/compiler/lib/src/cps_ir/type_propagation.dart
@@ -833,6 +833,14 @@ class _TypePropagationVisitor<T> extends Visitor {
void visitCreateInstance(CreateInstance node) {
setValue(node, nonConst());
}
+
+ void visitReifyRuntimeType(ReifyRuntimeType node) {
+ setValue(node, nonConst());
asgerf 2015/03/02 13:52:36 We could use nonConst(typeSystem.typeType) here, r
karlklose 2015/03/05 09:54:58 Done.
+ }
+
+ void visitReadTypeVariable(ReadTypeVariable node) {
+ setValue(node, nonConst());
+ }
}
/// Represents the abstract value of a primitive value at some point in the

Powered by Google App Engine
This is Rietveld 408576698