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

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

Issue 981523002: Integrity checker for CPS and Tree IR. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Stronger checks on Tree IR and update status file Created 5 years, 9 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 | Annotate | Revision Log
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 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 727
728 Continuation(this.parameters); 728 Continuation(this.parameters);
729 729
730 Continuation.retrn() : parameters = <Parameter>[new Parameter(null)]; 730 Continuation.retrn() : parameters = <Parameter>[new Parameter(null)];
731 731
732 accept(Visitor visitor) => visitor.visitContinuation(this); 732 accept(Visitor visitor) => visitor.visitContinuation(this);
733 } 733 }
734 734
735 abstract class ExecutableDefinition implements Node { 735 abstract class ExecutableDefinition implements Node {
736 RunnableBody get body; 736 RunnableBody get body;
737 Element get element;
737 738
738 applyPass(Pass pass); 739 applyPass(Pass pass);
739 } 740 }
740 741
741 // This is basically a function definition with an empty parameter list and a 742 // This is basically a function definition with an empty parameter list and a
742 // field element instead of a function element and no const declarations, and 743 // field element instead of a function element and no const declarations, and
743 // never a getter or setter, though that's less important. 744 // never a getter or setter, though that's less important.
744 class FieldDefinition extends Node implements ExecutableDefinition { 745 class FieldDefinition extends Node implements ExecutableDefinition {
745 final FieldElement element; 746 final FieldElement element;
746 RunnableBody body; 747 RunnableBody body;
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 1446
1446 void visitIdentical(Identical node) { 1447 void visitIdentical(Identical node) {
1447 visitReference(node.left); 1448 visitReference(node.left);
1448 visitReference(node.right); 1449 visitReference(node.right);
1449 } 1450 }
1450 1451
1451 void visitInterceptor(Interceptor node) { 1452 void visitInterceptor(Interceptor node) {
1452 visitReference(node.input); 1453 visitReference(node.input);
1453 } 1454 }
1454 } 1455 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_integrity.dart ('k') | pkg/compiler/lib/src/cps_ir/optimizers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698