| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 static UseInfo CheckedSignedSmallAsTaggedSigned() { | 191 static UseInfo CheckedSignedSmallAsTaggedSigned() { |
| 192 return UseInfo(MachineRepresentation::kTaggedSigned, Truncation::Any(), | 192 return UseInfo(MachineRepresentation::kTaggedSigned, Truncation::Any(), |
| 193 TypeCheckKind::kSignedSmall); | 193 TypeCheckKind::kSignedSmall); |
| 194 } | 194 } |
| 195 static UseInfo CheckedSignedSmallAsWord32(IdentifyZeros identify_zeros) { | 195 static UseInfo CheckedSignedSmallAsWord32(IdentifyZeros identify_zeros) { |
| 196 return UseInfo(MachineRepresentation::kWord32, | 196 return UseInfo(MachineRepresentation::kWord32, |
| 197 Truncation::Any(identify_zeros), | 197 Truncation::Any(identify_zeros), |
| 198 TypeCheckKind::kSignedSmall); | 198 TypeCheckKind::kSignedSmall); |
| 199 } | 199 } |
| 200 static UseInfo CheckedSigned32AsWord32(IdentifyZeros identify_zeros) { | 200 static UseInfo CheckedSigned32AsWord32(IdentifyZeros identify_zeros) { |
| 201 return UseInfo(MachineRepresentation::kWord32, Truncation::Any(), | 201 return UseInfo(MachineRepresentation::kWord32, |
| 202 TypeCheckKind::kSigned32); | 202 Truncation::Any(identify_zeros), TypeCheckKind::kSigned32); |
| 203 } | 203 } |
| 204 static UseInfo CheckedNumberAsFloat64() { | 204 static UseInfo CheckedNumberAsFloat64() { |
| 205 return UseInfo(MachineRepresentation::kFloat64, Truncation::Float64(), | 205 return UseInfo(MachineRepresentation::kFloat64, Truncation::Float64(), |
| 206 TypeCheckKind::kNumber); | 206 TypeCheckKind::kNumber); |
| 207 } | 207 } |
| 208 static UseInfo CheckedNumberAsWord32() { | 208 static UseInfo CheckedNumberAsWord32() { |
| 209 return UseInfo(MachineRepresentation::kWord32, Truncation::Word32(), | 209 return UseInfo(MachineRepresentation::kWord32, Truncation::Word32(), |
| 210 TypeCheckKind::kNumber); | 210 TypeCheckKind::kNumber); |
| 211 } | 211 } |
| 212 static UseInfo CheckedNumberOrOddballAsFloat64() { | 212 static UseInfo CheckedNumberOrOddballAsFloat64() { |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 Factory* factory() const { return isolate()->factory(); } | 333 Factory* factory() const { return isolate()->factory(); } |
| 334 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } | 334 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } |
| 335 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } | 335 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } |
| 336 }; | 336 }; |
| 337 | 337 |
| 338 } // namespace compiler | 338 } // namespace compiler |
| 339 } // namespace internal | 339 } // namespace internal |
| 340 } // namespace v8 | 340 } // namespace v8 |
| 341 | 341 |
| 342 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_ | 342 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_ |
| OLD | NEW |