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 static UseInfo TruncatingFloat64() { | 133 static UseInfo TruncatingFloat64() { |
134 return UseInfo(MachineRepresentation::kFloat64, Truncation::Float64()); | 134 return UseInfo(MachineRepresentation::kFloat64, Truncation::Float64()); |
135 } | 135 } |
136 static UseInfo PointerInt() { | 136 static UseInfo PointerInt() { |
137 return kPointerSize == 4 ? TruncatingWord32() : TruncatingWord64(); | 137 return kPointerSize == 4 ? TruncatingWord32() : TruncatingWord64(); |
138 } | 138 } |
139 static UseInfo AnyTagged() { | 139 static UseInfo AnyTagged() { |
140 return UseInfo(MachineRepresentation::kTagged, Truncation::Any()); | 140 return UseInfo(MachineRepresentation::kTagged, Truncation::Any()); |
141 } | 141 } |
| 142 static UseInfo TaggedSigned() { |
| 143 return UseInfo(MachineRepresentation::kTaggedSigned, Truncation::Any()); |
| 144 } |
| 145 static UseInfo TaggedPointer() { |
| 146 return UseInfo(MachineRepresentation::kTaggedPointer, Truncation::Any()); |
| 147 } |
142 | 148 |
143 // Possibly deoptimizing conversions. | 149 // Possibly deoptimizing conversions. |
144 static UseInfo CheckedSignedSmallAsWord32() { | 150 static UseInfo CheckedSignedSmallAsWord32() { |
145 return UseInfo(MachineRepresentation::kWord32, Truncation::Any(), | 151 return UseInfo(MachineRepresentation::kWord32, Truncation::Any(), |
146 TypeCheckKind::kSignedSmall); | 152 TypeCheckKind::kSignedSmall); |
147 } | 153 } |
148 static UseInfo CheckedSigned32AsWord32() { | 154 static UseInfo CheckedSigned32AsWord32() { |
149 return UseInfo(MachineRepresentation::kWord32, Truncation::Any(), | 155 return UseInfo(MachineRepresentation::kWord32, Truncation::Any(), |
150 TypeCheckKind::kSigned32); | 156 TypeCheckKind::kSigned32); |
151 } | 157 } |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 Factory* factory() const { return isolate()->factory(); } | 276 Factory* factory() const { return isolate()->factory(); } |
271 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } | 277 SimplifiedOperatorBuilder* simplified() { return jsgraph()->simplified(); } |
272 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } | 278 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } |
273 }; | 279 }; |
274 | 280 |
275 } // namespace compiler | 281 } // namespace compiler |
276 } // namespace internal | 282 } // namespace internal |
277 } // namespace v8 | 283 } // namespace v8 |
278 | 284 |
279 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_ | 285 #endif // V8_COMPILER_REPRESENTATION_CHANGE_H_ |
OLD | NEW |