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

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

Issue 831133004: Use closure conversion in new dart2js backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed redundant null-check Created 5 years, 11 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 9585ff9e154ad74ad5b9fee3e72aca884c01ce17..c68a91780509aa965fc2eae633b1f084c940ae77 100644
--- a/pkg/compiler/lib/src/cps_ir/type_propagation.dart
+++ b/pkg/compiler/lib/src/cps_ir/type_propagation.dart
@@ -786,6 +786,22 @@ class _TypePropagationVisitor<T> extends Visitor {
void visitInterceptor(Interceptor node) {
setReachable(node.input.definition);
}
+
+ void visitGetField(GetField node) {
+ setValue(node, nonConst());
+ }
+
+ void visitSetField(SetField node) {
+ setReachable(node.body);
+ }
+
+ void visitCreateBox(CreateBox node) {
+ setValue(node, nonConst());
+ }
+
+ void visitCreateClosureClass(CreateClosureClass node) {
+ setValue(node, nonConst());
+ }
}
/// Represents the abstract value of a primitive value at some point in the
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart ('k') | pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698