| 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 interface HVisitor<R> { | 5 interface HVisitor<R> { |
| 6 R visitAdd(HAdd node); | 6 R visitAdd(HAdd node); |
| 7 R visitBailoutTarget(HBailoutTarget node); | 7 R visitBailoutTarget(HBailoutTarget node); |
| 8 R visitBitAnd(HBitAnd node); | 8 R visitBitAnd(HBitAnd node); |
| 9 R visitBitNot(HBitNot node); | 9 R visitBitNot(HBitNot node); |
| 10 R visitBitOr(HBitOr node); | 10 R visitBitOr(HBitOr node); |
| (...skipping 1903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1914 assert(!hasSideEffects()); | 1914 assert(!hasSideEffects()); |
| 1915 } | 1915 } |
| 1916 toString() => 'local ${sourceElement.name}'; | 1916 toString() => 'local ${sourceElement.name}'; |
| 1917 accept(HVisitor visitor) => visitor.visitLocalValue(this); | 1917 accept(HVisitor visitor) => visitor.visitLocalValue(this); |
| 1918 bool isCodeMotionInvariant() => true; | 1918 bool isCodeMotionInvariant() => true; |
| 1919 } | 1919 } |
| 1920 | 1920 |
| 1921 class HParameterValue extends HLocalValue { | 1921 class HParameterValue extends HLocalValue { |
| 1922 HParameterValue(Element element) : super(element); | 1922 HParameterValue(Element element) : super(element); |
| 1923 | 1923 |
| 1924 toString() => 'parameter ${sourceElement.name}'; | 1924 toString() => 'parameter ${sourceElement.name.slowToString()}'; |
| 1925 accept(HVisitor visitor) => visitor.visitParameterValue(this); | 1925 accept(HVisitor visitor) => visitor.visitParameterValue(this); |
| 1926 } | 1926 } |
| 1927 | 1927 |
| 1928 class HThis extends HParameterValue { | 1928 class HThis extends HParameterValue { |
| 1929 HThis([HType type = HType.UNKNOWN]) : super(null) { | 1929 HThis([HType type = HType.UNKNOWN]) : super(null) { |
| 1930 guaranteedType = type; | 1930 guaranteedType = type; |
| 1931 } | 1931 } |
| 1932 toString() => 'this'; | 1932 toString() => 'this'; |
| 1933 accept(HVisitor visitor) => visitor.visitThis(this); | 1933 accept(HVisitor visitor) => visitor.visitThis(this); |
| 1934 } | 1934 } |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2694 HBasicBlock get start() => expression.start; | 2694 HBasicBlock get start() => expression.start; |
| 2695 HBasicBlock get end() { | 2695 HBasicBlock get end() { |
| 2696 // We don't create a switch block if there are no cases. | 2696 // We don't create a switch block if there are no cases. |
| 2697 assert(!statements.isEmpty()); | 2697 assert(!statements.isEmpty()); |
| 2698 return statements.last().end; | 2698 return statements.last().end; |
| 2699 } | 2699 } |
| 2700 | 2700 |
| 2701 bool accept(HStatementInformationVisitor visitor) => | 2701 bool accept(HStatementInformationVisitor visitor) => |
| 2702 visitor.visitSwitchInfo(this); | 2702 visitor.visitSwitchInfo(this); |
| 2703 } | 2703 } |
| OLD | NEW |