| 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 '../dart2jslib.dart' as dart2js show Constant, ConstructedConstant; | 9 import '../dart2jslib.dart' as dart2js show Constant, ConstructedConstant; |
| 10 import '../elements/elements.dart' | 10 import '../elements/elements.dart' |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 Constant(this.value); | 303 Constant(this.value); |
| 304 | 304 |
| 305 dart2js.Constant get constant => value; | 305 dart2js.Constant get constant => value; |
| 306 | 306 |
| 307 accept(Visitor visitor) => visitor.visitConstant(this); | 307 accept(Visitor visitor) => visitor.visitConstant(this); |
| 308 } | 308 } |
| 309 | 309 |
| 310 class This extends Primitive { | 310 class This extends Primitive { |
| 311 This(); | 311 This(); |
| 312 | 312 |
| 313 dart2js.Constant get constant => null; |
| 314 |
| 313 accept(Visitor visitor) => visitor.visitThis(this); | 315 accept(Visitor visitor) => visitor.visitThis(this); |
| 314 } | 316 } |
| 315 | 317 |
| 316 class LiteralList extends Primitive { | 318 class LiteralList extends Primitive { |
| 317 /// The List type being created; this is not the type argument. | 319 /// The List type being created; this is not the type argument. |
| 318 final GenericType type; | 320 final GenericType type; |
| 319 final List<Reference> values; | 321 final List<Reference> values; |
| 320 | 322 |
| 321 /// Set to null if this is not a const literal list. | 323 /// Set to null if this is not a const literal list. |
| 322 final dart2js.Constant constant; | 324 final dart2js.Constant constant; |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 681 for (int i = node.parameters.length - 1; i >= 0; --i) { | 683 for (int i = node.parameters.length - 1; i >= 0; --i) { |
| 682 release(node.parameters[i]); | 684 release(node.parameters[i]); |
| 683 } | 685 } |
| 684 } | 686 } |
| 685 | 687 |
| 686 void visitIsTrue(IsTrue node) { | 688 void visitIsTrue(IsTrue node) { |
| 687 visitReference(node.value); | 689 visitReference(node.value); |
| 688 } | 690 } |
| 689 | 691 |
| 690 } | 692 } |
| OLD | NEW |