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 #include "src/compiler/simplified-lowering.h" | 5 #include "src/compiler/simplified-lowering.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "src/address-map.h" | 9 #include "src/address-map.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 return UseInfo::CheckedNumberAsFloat64(); | 113 return UseInfo::CheckedNumberAsFloat64(); |
114 case NumberOperationHint::kNumberOrOddball: | 114 case NumberOperationHint::kNumberOrOddball: |
115 return UseInfo::CheckedNumberOrOddballAsFloat64(); | 115 return UseInfo::CheckedNumberOrOddballAsFloat64(); |
116 } | 116 } |
117 UNREACHABLE(); | 117 UNREACHABLE(); |
118 return UseInfo::None(); | 118 return UseInfo::None(); |
119 } | 119 } |
120 | 120 |
121 UseInfo TruncatingUseInfoFromRepresentation(MachineRepresentation rep) { | 121 UseInfo TruncatingUseInfoFromRepresentation(MachineRepresentation rep) { |
122 switch (rep) { | 122 switch (rep) { |
| 123 case MachineRepresentation::kTaggedSigned: |
| 124 case MachineRepresentation::kTaggedPointer: |
123 case MachineRepresentation::kTagged: | 125 case MachineRepresentation::kTagged: |
124 return UseInfo::AnyTagged(); | 126 return UseInfo::AnyTagged(); |
125 case MachineRepresentation::kFloat64: | 127 case MachineRepresentation::kFloat64: |
126 return UseInfo::TruncatingFloat64(); | 128 return UseInfo::TruncatingFloat64(); |
127 case MachineRepresentation::kFloat32: | 129 case MachineRepresentation::kFloat32: |
128 return UseInfo::TruncatingFloat32(); | 130 return UseInfo::TruncatingFloat32(); |
129 case MachineRepresentation::kWord64: | 131 case MachineRepresentation::kWord64: |
130 return UseInfo::TruncatingWord64(); | 132 return UseInfo::TruncatingWord64(); |
131 case MachineRepresentation::kWord8: | 133 case MachineRepresentation::kWord8: |
132 case MachineRepresentation::kWord16: | 134 case MachineRepresentation::kWord16: |
(...skipping 3223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3356 isolate(), graph()->zone(), callable.descriptor(), 0, flags, | 3358 isolate(), graph()->zone(), callable.descriptor(), 0, flags, |
3357 Operator::kNoProperties); | 3359 Operator::kNoProperties); |
3358 to_number_operator_.set(common()->Call(desc)); | 3360 to_number_operator_.set(common()->Call(desc)); |
3359 } | 3361 } |
3360 return to_number_operator_.get(); | 3362 return to_number_operator_.get(); |
3361 } | 3363 } |
3362 | 3364 |
3363 } // namespace compiler | 3365 } // namespace compiler |
3364 } // namespace internal | 3366 } // namespace internal |
3365 } // namespace v8 | 3367 } // namespace v8 |
OLD | NEW |