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

Unified Diff: pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart

Issue 1136523008: Revert "dart2js cps: Introduce GetStatic/SetStatic." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart ('k') | pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart
diff --git a/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart b/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart
index 109dc42a284e14a8e1dcb74ad76f9bf597050a79..432c6c7d44a5c85156c98b99dfb803e537e8474c 100644
--- a/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart
+++ b/pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart
@@ -873,28 +873,6 @@ class SetField extends Expression implements JsSpecificNode {
accept1(ExpressionVisitor1 visitor, arg) => visitor.visitSetField(this, arg);
}
-class GetStatic extends Expression {
- Element element;
- SourceInformation sourceInformation;
-
- GetStatic(this.element, this.sourceInformation);
-
- accept(ExpressionVisitor visitor) => visitor.visitGetStatic(this);
- accept1(ExpressionVisitor1 visitor, arg) => visitor.visitGetStatic(this, arg);
-}
-
-
-class SetStatic extends Expression {
- Element element;
- Expression value;
- SourceInformation sourceInformation;
-
- SetStatic(this.element, this.value, this.sourceInformation);
-
- accept(ExpressionVisitor visitor) => visitor.visitSetStatic(this);
- accept1(ExpressionVisitor1 visitor, arg) => visitor.visitSetStatic(this, arg);
-}
-
class ReifyRuntimeType extends Expression implements JsSpecificNode {
Expression value;
@@ -977,14 +955,12 @@ abstract class ExpressionVisitor<E> {
E visitTypeOperator(TypeOperator node);
E visitFunctionExpression(FunctionExpression node);
E visitGetField(GetField node);
- E visitSetField(SetField node);
- E visitGetStatic(GetStatic node);
- E visitSetStatic(SetStatic node);
E visitCreateBox(CreateBox node);
E visitCreateInstance(CreateInstance node);
E visitReifyRuntimeType(ReifyRuntimeType node);
E visitReadTypeVariable(ReadTypeVariable node);
E visitTypeExpression(TypeExpression node);
+ E visitSetField(SetField node);
E visitCreateInvocationMirror(CreateInvocationMirror node);
}
@@ -1008,14 +984,12 @@ abstract class ExpressionVisitor1<E, A> {
E visitTypeOperator(TypeOperator node, A arg);
E visitFunctionExpression(FunctionExpression node, A arg);
E visitGetField(GetField node, A arg);
- E visitSetField(SetField node, A arg);
- E visitGetStatic(GetStatic node, A arg);
- E visitSetStatic(SetStatic node, A arg);
E visitCreateBox(CreateBox node, A arg);
E visitCreateInstance(CreateInstance node, A arg);
E visitReifyRuntimeType(ReifyRuntimeType node, A arg);
E visitReadTypeVariable(ReadTypeVariable node, A arg);
E visitTypeExpression(TypeExpression node, A arg);
+ E visitSetField(SetField node, A arg);
E visitCreateInvocationMirror(CreateInvocationMirror node, A arg);
}
@@ -1223,13 +1197,6 @@ abstract class RecursiveVisitor implements StatementVisitor, ExpressionVisitor {
visitExpression(node.value);
}
- visitGetStatic(GetStatic node) {
- }
-
- visitSetStatic(SetStatic node) {
- visitExpression(node.value);
- }
-
visitCreateBox(CreateBox node) {
}
@@ -1428,13 +1395,6 @@ class RecursiveTransformer extends Transformer {
return node;
}
- visitGetStatic(GetStatic node) => node;
-
- visitSetStatic(SetStatic node) {
- node.value = visitExpression(node.value);
- return node;
- }
-
visitCreateBox(CreateBox node) => node;
visitCreateInstance(CreateInstance node) {
« no previous file with comments | « pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart ('k') | pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698