| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 visitBitAnd(HBitAnd node); | 7 R visitBitAnd(HBitAnd node); |
| 8 R visitBitNot(HBitNot node); | 8 R visitBitNot(HBitNot node); |
| 9 R visitBitOr(HBitOr node); | 9 R visitBitOr(HBitOr node); |
| 10 R visitBitXor(HBitXor node); | 10 R visitBitXor(HBitXor node); |
| (...skipping 1152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1163 | 1163 |
| 1164 HType computeDesiredTypeForInput(HInstruction input) { | 1164 HType computeDesiredTypeForInput(HInstruction input) { |
| 1165 // TODO(floitsch): we want the target to be a function. | 1165 // TODO(floitsch): we want the target to be a function. |
| 1166 if (input == target) return HType.UNKNOWN; | 1166 if (input == target) return HType.UNKNOWN; |
| 1167 return computeDesiredTypeForNonTargetInput(input); | 1167 return computeDesiredTypeForNonTargetInput(input); |
| 1168 } | 1168 } |
| 1169 | 1169 |
| 1170 HType computeDesiredTypeForNonTargetInput(HInstruction input) { | 1170 HType computeDesiredTypeForNonTargetInput(HInstruction input) { |
| 1171 return HType.UNKNOWN; | 1171 return HType.UNKNOWN; |
| 1172 } | 1172 } |
| 1173 | |
| 1174 bool get builtin() => isArrayConstructor(); | |
| 1175 } | 1173 } |
| 1176 | 1174 |
| 1177 class HInvokeSuper extends HInvokeStatic { | 1175 class HInvokeSuper extends HInvokeStatic { |
| 1178 HInvokeSuper(selector, inputs) : super(selector, inputs); | 1176 HInvokeSuper(selector, inputs) : super(selector, inputs); |
| 1179 toString() => 'invoke super: ${element.name}'; | 1177 toString() => 'invoke super: ${element.name}'; |
| 1180 accept(HVisitor visitor) => visitor.visitInvokeSuper(this); | 1178 accept(HVisitor visitor) => visitor.visitInvokeSuper(this); |
| 1181 } | 1179 } |
| 1182 | 1180 |
| 1183 class HInvokeInterceptor extends HInvokeStatic { | 1181 class HInvokeInterceptor extends HInvokeStatic { |
| 1184 final SourceString name; | 1182 final SourceString name; |
| (...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2297 final bool isAnd; | 2295 final bool isAnd; |
| 2298 final SubExpression left; | 2296 final SubExpression left; |
| 2299 final SubExpression right; | 2297 final SubExpression right; |
| 2300 final HBasicBlock joinBlock; | 2298 final HBasicBlock joinBlock; |
| 2301 HAndOrBlockInformation(this.isAnd, | 2299 HAndOrBlockInformation(this.isAnd, |
| 2302 this.left, | 2300 this.left, |
| 2303 this.right, | 2301 this.right, |
| 2304 this.joinBlock); | 2302 this.joinBlock); |
| 2305 bool accept(HBlockInformationVisitor visitor) => visitor.visitAndOrInfo(this); | 2303 bool accept(HBlockInformationVisitor visitor) => visitor.visitAndOrInfo(this); |
| 2306 } | 2304 } |
| OLD | NEW |