| 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; |
| 6 |
| 5 /** | 7 /** |
| 6 * A [Value] represents both symbolic values like the value of a | 8 * A [Value] represents both symbolic values like the value of a |
| 7 * parameter, or the length of an array, and concrete values, like | 9 * parameter, or the length of an array, and concrete values, like |
| 8 * constants. | 10 * constants. |
| 9 */ | 11 */ |
| 10 abstract class Value { | 12 abstract class Value { |
| 11 const Value(); | 13 const Value(); |
| 12 | 14 |
| 13 Value operator +(Value other); | 15 Value operator +(Value other); |
| 14 Value operator -(Value other); | 16 Value operator -(Value other); |
| (...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 937 if (instruction is HPhi && !instruction.block.isLoopHeader()) { | 939 if (instruction is HPhi && !instruction.block.isLoopHeader()) { |
| 938 HInstruction result = unwrap(instruction.inputs[0]); | 940 HInstruction result = unwrap(instruction.inputs[0]); |
| 939 for (int i = 1; i < instruction.inputs.length; i++) { | 941 for (int i = 1; i < instruction.inputs.length; i++) { |
| 940 if (result != unwrap(instruction.inputs[i])) return instruction; | 942 if (result != unwrap(instruction.inputs[i])) return instruction; |
| 941 } | 943 } |
| 942 return result; | 944 return result; |
| 943 } | 945 } |
| 944 return instruction; | 946 return instruction; |
| 945 } | 947 } |
| 946 } | 948 } |
| OLD | NEW |