| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_COMPILER_REPRESENTATION_CHANGE_H_ | 5 #ifndef V8_COMPILER_REPRESENTATION_CHANGE_H_ |
| 6 #define V8_COMPILER_REPRESENTATION_CHANGE_H_ | 6 #define V8_COMPILER_REPRESENTATION_CHANGE_H_ |
| 7 | 7 |
| 8 #include "src/compiler/js-graph.h" | 8 #include "src/compiler/js-graph.h" |
| 9 #include "src/compiler/simplified-operator.h" | 9 #include "src/compiler/simplified-operator.h" |
| 10 | 10 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 // Possibly deoptimizing conversions. | 133 // Possibly deoptimizing conversions. |
| 134 static UseInfo CheckedSigned32AsWord32() { | 134 static UseInfo CheckedSigned32AsWord32() { |
| 135 return UseInfo(MachineRepresentation::kWord32, Truncation::Any(), | 135 return UseInfo(MachineRepresentation::kWord32, Truncation::Any(), |
| 136 TypeCheckKind::kSigned32); | 136 TypeCheckKind::kSigned32); |
| 137 } | 137 } |
| 138 static UseInfo CheckedNumberOrOddballAsFloat64() { | 138 static UseInfo CheckedNumberOrOddballAsFloat64() { |
| 139 return UseInfo(MachineRepresentation::kFloat64, Truncation::Any(), | 139 return UseInfo(MachineRepresentation::kFloat64, Truncation::Any(), |
| 140 TypeCheckKind::kNumberOrOddball); | 140 TypeCheckKind::kNumberOrOddball); |
| 141 } | 141 } |
| 142 static UseInfo CheckedNumberOrOddballAsWord32() { |
| 143 return UseInfo(MachineRepresentation::kWord32, Truncation::Word32(), |
| 144 TypeCheckKind::kNumberOrOddball); |
| 145 } |
| 142 | 146 |
| 143 // Undetermined representation. | 147 // Undetermined representation. |
| 144 static UseInfo Any() { | 148 static UseInfo Any() { |
| 145 return UseInfo(MachineRepresentation::kNone, Truncation::Any()); | 149 return UseInfo(MachineRepresentation::kNone, Truncation::Any()); |
| 146 } | 150 } |
| 147 static UseInfo AnyTruncatingToBool() { | 151 static UseInfo AnyTruncatingToBool() { |
| 148 return UseInfo(MachineRepresentation::kNone, Truncation::Bool()); | 152 return UseInfo(MachineRepresentation::kNone, Truncation::Bool()); |
| 149 } | 153 } |
| 150 | 154 |
| 151 // Value not used. | 155 // Value not used. |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 Factory* factory() const { return isolate()->factory(); } | 247 Factory* factory() const { return isolate()->factory(); } |
| 244 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } | 248 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } |
| 245 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } | 249 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } |
| 246 }; | 250 }; |
| 247 | 251 |
| 248 } // namespace compiler | 252 } // namespace compiler |
| 249 } // namespace internal | 253 } // namespace internal |
| 250 } // namespace v8 | 254 } // namespace v8 |
| 251 | 255 |
| 252 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_ | 256 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_ |
| OLD | NEW |