| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |