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

Side by Side Diff: pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart

Issue 1129693005: MutableVariable no longer has a host Element. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update SExpressionUnstringifier 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // IrNodes are kept in a separate library to have precise control over their 5 // IrNodes are kept in a separate library to have precise control over their
6 // dependencies on other parts of the system. 6 // dependencies on other parts of the system.
7 library dart2js.ir_nodes; 7 library dart2js.ir_nodes;
8 8
9 import '../constants/expressions.dart'; 9 import '../constants/expressions.dart';
10 import '../constants/values.dart' as values show ConstantValue; 10 import '../constants/values.dart' as values show ConstantValue;
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 FieldDefinition.withoutInitializer(this.element) 856 FieldDefinition.withoutInitializer(this.element)
857 : this.body = null; 857 : this.body = null;
858 858
859 accept(Visitor visitor) => visitor.visitFieldDefinition(this); 859 accept(Visitor visitor) => visitor.visitFieldDefinition(this);
860 860
861 bool get isEmpty => body == null; 861 bool get isEmpty => body == null;
862 } 862 }
863 863
864 /// Identifies a mutable variable. 864 /// Identifies a mutable variable.
865 class MutableVariable extends Definition { 865 class MutableVariable extends Definition {
866 /// Body of source code that declares this mutable variable.
867 ExecutableElement host;
868 Entity hint; 866 Entity hint;
869 867
870 MutableVariable(this.host, this.hint); 868 MutableVariable(this.hint);
871 869
872 accept(Visitor v) => v.visitMutableVariable(this); 870 accept(Visitor v) => v.visitMutableVariable(this);
873 } 871 }
874 872
875 class Body extends InteriorNode { 873 class Body extends InteriorNode {
876 Expression body; 874 Expression body;
877 final Continuation returnContinuation; 875 final Continuation returnContinuation;
878 Body(this.body, this.returnContinuation); 876 Body(this.body, this.returnContinuation);
879 accept(Visitor visitor) => visitor.visitBody(this); 877 accept(Visitor visitor) => visitor.visitBody(this);
880 } 878 }
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 processNonTailThrow(node); 1407 processNonTailThrow(node);
1410 processReference(node.value); 1408 processReference(node.value);
1411 } 1409 }
1412 1410
1413 processCreateInvocationMirror(CreateInvocationMirror node) {} 1411 processCreateInvocationMirror(CreateInvocationMirror node) {}
1414 visitCreateInvocationMirror(CreateInvocationMirror node) { 1412 visitCreateInvocationMirror(CreateInvocationMirror node) {
1415 processCreateInvocationMirror(node); 1413 processCreateInvocationMirror(node);
1416 node.arguments.forEach(processReference); 1414 node.arguments.forEach(processReference);
1417 } 1415 }
1418 } 1416 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart ('k') | pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698