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_INSTRUCTION_SELECTOR_H_ | 5 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_H_ |
6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_ | 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 } | 256 } |
257 void MarkAsFloat32(Node* node) { | 257 void MarkAsFloat32(Node* node) { |
258 MarkAsRepresentation(MachineRepresentation::kFloat32, node); | 258 MarkAsRepresentation(MachineRepresentation::kFloat32, node); |
259 } | 259 } |
260 void MarkAsFloat64(Node* node) { | 260 void MarkAsFloat64(Node* node) { |
261 MarkAsRepresentation(MachineRepresentation::kFloat64, node); | 261 MarkAsRepresentation(MachineRepresentation::kFloat64, node); |
262 } | 262 } |
263 void MarkAsSimd128(Node* node) { | 263 void MarkAsSimd128(Node* node) { |
264 MarkAsRepresentation(MachineRepresentation::kSimd128, node); | 264 MarkAsRepresentation(MachineRepresentation::kSimd128, node); |
265 } | 265 } |
266 void MarkAsSimd1x4(Node* node) { | |
267 if (kSimdMaskRegisters) { | |
268 MarkAsRepresentation(MachineRepresentation::kSimd1x4, node); | |
269 } else { | |
270 MarkAsSimd128(node); | |
271 } | |
272 } | |
273 void MarkAsSimd1x8(Node* node) { | |
274 if (kSimdMaskRegisters) { | |
275 MarkAsRepresentation(MachineRepresentation::kSimd1x8, node); | |
276 } else { | |
277 MarkAsSimd128(node); | |
278 } | |
279 } | |
280 void MarkAsSimd1x16(Node* node) { | |
281 if (kSimdMaskRegisters) { | |
282 MarkAsRepresentation(MachineRepresentation::kSimd1x16, node); | |
283 } else { | |
284 MarkAsSimd128(node); | |
285 } | |
286 } | |
287 void MarkAsReference(Node* node) { | 266 void MarkAsReference(Node* node) { |
288 MarkAsRepresentation(MachineRepresentation::kTagged, node); | 267 MarkAsRepresentation(MachineRepresentation::kTagged, node); |
289 } | 268 } |
290 | 269 |
291 // Inform the register allocation of the representation of the unallocated | 270 // Inform the register allocation of the representation of the unallocated |
292 // operand {op}. | 271 // operand {op}. |
293 void MarkAsRepresentation(MachineRepresentation rep, | 272 void MarkAsRepresentation(MachineRepresentation rep, |
294 const InstructionOperand& op); | 273 const InstructionOperand& op); |
295 | 274 |
296 enum CallBufferFlag { | 275 enum CallBufferFlag { |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 EnableSerialization enable_serialization_; | 393 EnableSerialization enable_serialization_; |
415 Frame* frame_; | 394 Frame* frame_; |
416 bool instruction_selection_failed_; | 395 bool instruction_selection_failed_; |
417 }; | 396 }; |
418 | 397 |
419 } // namespace compiler | 398 } // namespace compiler |
420 } // namespace internal | 399 } // namespace internal |
421 } // namespace v8 | 400 } // namespace v8 |
422 | 401 |
423 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ | 402 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ |
OLD | NEW |