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

Unified Diff: pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart

Issue 1134063002: dart2js cps: Introduce GetStatic/SetStatic. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix SExpression parsing/unparsing 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
Index: pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart
diff --git a/pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart b/pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart
index 3bef3f0879b07b116d136b217ba90f569358c685..643aeb23c285b5a6e919b9dc0ff315188abad885 100644
--- a/pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart
+++ b/pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart
@@ -593,6 +593,15 @@ class StatementRewriter extends Transformer implements Pass {
return node;
}
+ Expression visitGetStatic(GetStatic node) {
+ return node;
+ }
+
+ Expression visitSetStatic(SetStatic node) {
+ node.value = visitExpression(node.value);
+ return node;
+ }
+
Expression visitCreateBox(CreateBox node) {
return node;
}

Powered by Google App Engine
This is Rietveld 408576698