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

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

Issue 1154173002: dart2js cps: Track underlying value of interceptors in type propagation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Status file Created 5 years, 7 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 | tests/co19/co19-dart2js.status » ('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 8b7141f1303cf5c31c266239a4a9af1509b6fc2f..87f9abeb58e426b238675eff6af539112b913ace 100644
--- a/pkg/compiler/lib/src/cps_ir/type_propagation.dart
+++ b/pkg/compiler/lib/src/cps_ir/type_propagation.dart
@@ -839,6 +839,10 @@ class _TypePropagationVisitor<T> implements Visitor {
void visitInterceptor(Interceptor node) {
setReachable(node.input.definition);
+ _AbstractValue<T> value = getValue(node.input.definition);
+ if (!value.isNothing) {
+ setValue(node, nonConstant());
+ }
}
void visitGetField(GetField node) {
« no previous file with comments | « no previous file | tests/co19/co19-dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698