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

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

Issue 898463002: Rename ClosureVariable, use separate IR forms for declaration and assignment. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/shrinking_reductions.dart
diff --git a/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart b/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
index e9b99b005687dbe15d8c3e925adbb18c1905942a..b7cb2885cd22c71269ecb7fd68b07d07e6fe02d2 100644
--- a/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
+++ b/pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
@@ -512,6 +512,12 @@ class ParentVisitor extends RecursiveVisitor {
node.body.parent = node;
}
+ processLetMutable(LetMutable node) {
+ node.variable.parent = node;
+ node.value.parent = node;
+ node.body.parent = node;
+ }
+
processInvokeStatic(InvokeStatic node) {
node.arguments.forEach((Reference ref) => ref.parent = node);
node.continuation.parent = node;
@@ -555,12 +561,14 @@ class ParentVisitor extends RecursiveVisitor {
node.receiver.parent = node;
}
- processSetClosureVariable(SetClosureVariable node) {
+ processSetMutableVariable(SetMutableVariable node) {
+ node.variable.parent = node;
node.body.parent = node;
node.value.parent = node;
}
processDeclareFunction(DeclareFunction node) {
+ node.variable.parent = node;
node.definition.parent = node;
node.body.parent = node;
}
@@ -618,6 +626,10 @@ class ParentVisitor extends RecursiveVisitor {
node.object.parent = node;
}
+ processGetMutableVariable(GetMutableVariable node) {
+ node.variable.parent = node;
+ }
+
processCreateInstance(CreateInstance node) {
node.arguments.forEach((Reference ref) => ref.parent = node);
}

Powered by Google App Engine
This is Rietveld 408576698