| 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 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 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1373 if (input == target) return HType.UNKNOWN; | 1373 if (input == target) return HType.UNKNOWN; |
| 1374 if (isString() || left.isString()) { | 1374 if (isString() || left.isString()) { |
| 1375 return (input == left) ? HType.STRING : HType.UNKNOWN; | 1375 return (input == left) ? HType.STRING : HType.UNKNOWN; |
| 1376 } | 1376 } |
| 1377 if (right.isString()) return HType.STRING; | 1377 if (right.isString()) return HType.STRING; |
| 1378 if (isNumber() || left.isNumber() || right.isNumber()) return HType.NUMBER; | 1378 if (isNumber() || left.isNumber() || right.isNumber()) return HType.NUMBER; |
| 1379 return HType.UNKNOWN; | 1379 return HType.UNKNOWN; |
| 1380 } | 1380 } |
| 1381 | 1381 |
| 1382 AddOperation get operation() => const AddOperation(); | 1382 AddOperation get operation() => const AddOperation(); |
| 1383 |
| 1383 int typeCode() => 5; | 1384 int typeCode() => 5; |
| 1384 bool typeEquals(other) => other is HAdd; | 1385 bool typeEquals(other) => other is HAdd; |
| 1385 bool dataEquals(HInstruction other) => true; | 1386 bool dataEquals(HInstruction other) => true; |
| 1386 } | 1387 } |
| 1387 | 1388 |
| 1388 class HDivide extends HBinaryArithmetic { | 1389 class HDivide extends HBinaryArithmetic { |
| 1389 HDivide(HStatic target, HInstruction left, HInstruction right) | 1390 HDivide(HStatic target, HInstruction left, HInstruction right) |
| 1390 : super(target, left, right); | 1391 : super(target, left, right); |
| 1391 accept(HVisitor visitor) => visitor.visitDivide(this); | 1392 accept(HVisitor visitor) => visitor.visitDivide(this); |
| 1392 | 1393 |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2133 class HIfBlockInformation { | 2134 class HIfBlockInformation { |
| 2134 final HIf branch; | 2135 final HIf branch; |
| 2135 final SubGraph thenGraph; | 2136 final SubGraph thenGraph; |
| 2136 final SubGraph elseGraph; | 2137 final SubGraph elseGraph; |
| 2137 final HBasicBlock joinBlock; | 2138 final HBasicBlock joinBlock; |
| 2138 HIfBlockInformation(this.branch, | 2139 HIfBlockInformation(this.branch, |
| 2139 this.thenGraph, | 2140 this.thenGraph, |
| 2140 this.elseGraph, | 2141 this.elseGraph, |
| 2141 this.joinBlock); | 2142 this.joinBlock); |
| 2142 } | 2143 } |
| OLD | NEW |