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_H_ | 5 #ifndef V8_COMPILER_INSTRUCTION_H_ |
6 #define V8_COMPILER_INSTRUCTION_H_ | 6 #define V8_COMPILER_INSTRUCTION_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 #include <map> | 10 #include <map> |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 return RepresentationField::decode(value_); | 459 return RepresentationField::decode(value_); |
460 } | 460 } |
461 | 461 |
462 static bool IsSupportedRepresentation(MachineRepresentation rep) { | 462 static bool IsSupportedRepresentation(MachineRepresentation rep) { |
463 switch (rep) { | 463 switch (rep) { |
464 case MachineRepresentation::kWord32: | 464 case MachineRepresentation::kWord32: |
465 case MachineRepresentation::kWord64: | 465 case MachineRepresentation::kWord64: |
466 case MachineRepresentation::kFloat32: | 466 case MachineRepresentation::kFloat32: |
467 case MachineRepresentation::kFloat64: | 467 case MachineRepresentation::kFloat64: |
468 case MachineRepresentation::kSimd128: | 468 case MachineRepresentation::kSimd128: |
| 469 case MachineRepresentation::kTaggedSigned: |
| 470 case MachineRepresentation::kTaggedPointer: |
469 case MachineRepresentation::kTagged: | 471 case MachineRepresentation::kTagged: |
470 return true; | 472 return true; |
471 case MachineRepresentation::kBit: | 473 case MachineRepresentation::kBit: |
472 case MachineRepresentation::kWord8: | 474 case MachineRepresentation::kWord8: |
473 case MachineRepresentation::kWord16: | 475 case MachineRepresentation::kWord16: |
474 case MachineRepresentation::kNone: | 476 case MachineRepresentation::kNone: |
475 return false; | 477 return false; |
476 } | 478 } |
477 UNREACHABLE(); | 479 UNREACHABLE(); |
478 return false; | 480 return false; |
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1486 | 1488 |
1487 | 1489 |
1488 std::ostream& operator<<(std::ostream& os, | 1490 std::ostream& operator<<(std::ostream& os, |
1489 const PrintableInstructionSequence& code); | 1491 const PrintableInstructionSequence& code); |
1490 | 1492 |
1491 } // namespace compiler | 1493 } // namespace compiler |
1492 } // namespace internal | 1494 } // namespace internal |
1493 } // namespace v8 | 1495 } // namespace v8 |
1494 | 1496 |
1495 #endif // V8_COMPILER_INSTRUCTION_H_ | 1497 #endif // V8_COMPILER_INSTRUCTION_H_ |
OLD | NEW |