OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_GLOBALS_H_ | 5 #ifndef V8_GLOBALS_H_ |
6 #define V8_GLOBALS_H_ | 6 #define V8_GLOBALS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 #endif | 52 #endif |
53 #if (V8_TARGET_ARCH_PPC && !V8_HOST_ARCH_PPC) | 53 #if (V8_TARGET_ARCH_PPC && !V8_HOST_ARCH_PPC) |
54 #define USE_SIMULATOR 1 | 54 #define USE_SIMULATOR 1 |
55 #endif | 55 #endif |
56 #if (V8_TARGET_ARCH_MIPS && !V8_HOST_ARCH_MIPS) | 56 #if (V8_TARGET_ARCH_MIPS && !V8_HOST_ARCH_MIPS) |
57 #define USE_SIMULATOR 1 | 57 #define USE_SIMULATOR 1 |
58 #endif | 58 #endif |
59 #if (V8_TARGET_ARCH_MIPS64 && !V8_HOST_ARCH_MIPS64) | 59 #if (V8_TARGET_ARCH_MIPS64 && !V8_HOST_ARCH_MIPS64) |
60 #define USE_SIMULATOR 1 | 60 #define USE_SIMULATOR 1 |
61 #endif | 61 #endif |
| 62 #if (V8_TARGET_ARCH_S390 && !V8_HOST_ARCH_S390) |
| 63 #define USE_SIMULATOR 1 |
| 64 #endif |
62 #endif | 65 #endif |
63 | 66 |
64 // Determine whether the architecture uses an embedded constant pool | 67 // Determine whether the architecture uses an embedded constant pool |
65 // (contiguous constant pool embedded in code object). | 68 // (contiguous constant pool embedded in code object). |
66 #if V8_TARGET_ARCH_PPC | 69 #if V8_TARGET_ARCH_PPC |
67 #define V8_EMBEDDED_CONSTANT_POOL 1 | 70 #define V8_EMBEDDED_CONSTANT_POOL 1 |
68 #else | 71 #else |
69 #define V8_EMBEDDED_CONSTANT_POOL 0 | 72 #define V8_EMBEDDED_CONSTANT_POOL 0 |
70 #endif | 73 #endif |
71 | 74 |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 MIPSr1, | 693 MIPSr1, |
691 MIPSr2, | 694 MIPSr2, |
692 MIPSr6, | 695 MIPSr6, |
693 // ARM64 | 696 // ARM64 |
694 ALWAYS_ALIGN_CSP, | 697 ALWAYS_ALIGN_CSP, |
695 COHERENT_CACHE, | 698 COHERENT_CACHE, |
696 // PPC | 699 // PPC |
697 FPR_GPR_MOV, | 700 FPR_GPR_MOV, |
698 LWSYNC, | 701 LWSYNC, |
699 ISELECT, | 702 ISELECT, |
| 703 // S390 |
| 704 DISTINCT_OPS, |
| 705 GENERAL_INSTR_EXT, |
| 706 FLOATING_POINT_EXT, |
700 NUMBER_OF_CPU_FEATURES | 707 NUMBER_OF_CPU_FEATURES |
701 }; | 708 }; |
702 | 709 |
703 | |
704 // Defines hints about receiver values based on structural knowledge. | 710 // Defines hints about receiver values based on structural knowledge. |
705 enum class ConvertReceiverMode : unsigned { | 711 enum class ConvertReceiverMode : unsigned { |
706 kNullOrUndefined, // Guaranteed to be null or undefined. | 712 kNullOrUndefined, // Guaranteed to be null or undefined. |
707 kNotNullOrUndefined, // Guaranteed to never be null or undefined. | 713 kNotNullOrUndefined, // Guaranteed to never be null or undefined. |
708 kAny // No specific knowledge about receiver. | 714 kAny // No specific knowledge about receiver. |
709 }; | 715 }; |
710 | 716 |
711 inline size_t hash_value(ConvertReceiverMode mode) { | 717 inline size_t hash_value(ConvertReceiverMode mode) { |
712 return bit_cast<unsigned>(mode); | 718 return bit_cast<unsigned>(mode); |
713 } | 719 } |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1045 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> | 1051 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> |
1046 kPointerSizeLog2); | 1052 kPointerSizeLog2); |
1047 } | 1053 } |
1048 | 1054 |
1049 } // namespace internal | 1055 } // namespace internal |
1050 } // namespace v8 | 1056 } // namespace v8 |
1051 | 1057 |
1052 namespace i = v8::internal; | 1058 namespace i = v8::internal; |
1053 | 1059 |
1054 #endif // V8_GLOBALS_H_ | 1060 #endif // V8_GLOBALS_H_ |
OLD | NEW |