| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 part of ssa; | 5 part of ssa; |
| 6 | 6 |
| 7 abstract class HVisitor<R> { | 7 abstract class HVisitor<R> { |
| 8 R visitAdd(HAdd node); | 8 R visitAdd(HAdd node); |
| 9 R visitBailoutTarget(HBailoutTarget node); | 9 R visitBailoutTarget(HBailoutTarget node); |
| 10 R visitBitAnd(HBitAnd node); | 10 R visitBitAnd(HBitAnd node); |
| (...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1447 accept(HVisitor visitor) => visitor.visitInvokeSuper(this); | 1447 accept(HVisitor visitor) => visitor.visitInvokeSuper(this); |
| 1448 | 1448 |
| 1449 HInstruction get value { | 1449 HInstruction get value { |
| 1450 assert(isSetter); | 1450 assert(isSetter); |
| 1451 // The 'inputs' are [receiver, value] or [interceptor, receiver, value]. | 1451 // The 'inputs' are [receiver, value] or [interceptor, receiver, value]. |
| 1452 return inputs.last; | 1452 return inputs.last; |
| 1453 } | 1453 } |
| 1454 } | 1454 } |
| 1455 | 1455 |
| 1456 class HInvokeConstructorBody extends HInvokeStatic { | 1456 class HInvokeConstructorBody extends HInvokeStatic { |
| 1457 // The 'inputs' are |
| 1458 // [receiver, arg1, ..., argN] or |
| 1459 // [interceptor, receiver, arg1, ... argN]. |
| 1457 HInvokeConstructorBody(element, inputs) | 1460 HInvokeConstructorBody(element, inputs) |
| 1458 : super(element, inputs, HType.UNKNOWN); | 1461 : super(element, inputs, HType.UNKNOWN); |
| 1459 | 1462 |
| 1460 String toString() => 'invoke constructor body: ${element.name}'; | 1463 String toString() => 'invoke constructor body: ${element.name}'; |
| 1461 accept(HVisitor visitor) => visitor.visitInvokeConstructorBody(this); | 1464 accept(HVisitor visitor) => visitor.visitInvokeConstructorBody(this); |
| 1462 } | 1465 } |
| 1463 | 1466 |
| 1464 abstract class HFieldAccess extends HInstruction { | 1467 abstract class HFieldAccess extends HInstruction { |
| 1465 final Element element; | 1468 final Element element; |
| 1466 | 1469 |
| (...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2780 HBasicBlock get start => expression.start; | 2783 HBasicBlock get start => expression.start; |
| 2781 HBasicBlock get end { | 2784 HBasicBlock get end { |
| 2782 // We don't create a switch block if there are no cases. | 2785 // We don't create a switch block if there are no cases. |
| 2783 assert(!statements.isEmpty); | 2786 assert(!statements.isEmpty); |
| 2784 return statements.last.end; | 2787 return statements.last.end; |
| 2785 } | 2788 } |
| 2786 | 2789 |
| 2787 bool accept(HStatementInformationVisitor visitor) => | 2790 bool accept(HStatementInformationVisitor visitor) => |
| 2788 visitor.visitSwitchInfo(this); | 2791 visitor.visitSwitchInfo(this); |
| 2789 } | 2792 } |
| OLD | NEW |