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_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // - SeqTwoByteInternalizedString | 108 // - SeqTwoByteInternalizedString |
109 // - ConsInternalizedString | 109 // - ConsInternalizedString |
110 // - ExternalInternalizedString | 110 // - ExternalInternalizedString |
111 // - ExternalOneByteInternalizedString | 111 // - ExternalOneByteInternalizedString |
112 // - ExternalTwoByteInternalizedString | 112 // - ExternalTwoByteInternalizedString |
113 // - Symbol | 113 // - Symbol |
114 // - HeapNumber | 114 // - HeapNumber |
115 // - Simd128Value | 115 // - Simd128Value |
116 // - Float32x4 | 116 // - Float32x4 |
117 // - Int32x4 | 117 // - Int32x4 |
| 118 // - Uint32x4 |
118 // - Bool32x4 | 119 // - Bool32x4 |
119 // - Int16x8 | 120 // - Int16x8 |
| 121 // - Uint16x8 |
120 // - Bool16x8 | 122 // - Bool16x8 |
121 // - Int8x16 | 123 // - Int8x16 |
| 124 // - Uint8x16 |
122 // - Bool8x16 | 125 // - Bool8x16 |
123 // - Cell | 126 // - Cell |
124 // - PropertyCell | 127 // - PropertyCell |
125 // - Code | 128 // - Code |
126 // - Map | 129 // - Map |
127 // - Oddball | 130 // - Oddball |
128 // - Foreign | 131 // - Foreign |
129 // - SharedFunctionInfo | 132 // - SharedFunctionInfo |
130 // - Struct | 133 // - Struct |
131 // - Box | 134 // - Box |
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 V(Smi) \ | 862 V(Smi) \ |
860 V(HeapObject) \ | 863 V(HeapObject) \ |
861 V(Number) | 864 V(Number) |
862 | 865 |
863 #define HEAP_OBJECT_TYPE_LIST(V) \ | 866 #define HEAP_OBJECT_TYPE_LIST(V) \ |
864 V(HeapNumber) \ | 867 V(HeapNumber) \ |
865 V(MutableHeapNumber) \ | 868 V(MutableHeapNumber) \ |
866 V(Simd128Value) \ | 869 V(Simd128Value) \ |
867 V(Float32x4) \ | 870 V(Float32x4) \ |
868 V(Int32x4) \ | 871 V(Int32x4) \ |
| 872 V(Uint32x4) \ |
869 V(Bool32x4) \ | 873 V(Bool32x4) \ |
870 V(Int16x8) \ | 874 V(Int16x8) \ |
| 875 V(Uint16x8) \ |
871 V(Bool16x8) \ | 876 V(Bool16x8) \ |
872 V(Int8x16) \ | 877 V(Int8x16) \ |
| 878 V(Uint8x16) \ |
873 V(Bool8x16) \ | 879 V(Bool8x16) \ |
874 V(Name) \ | 880 V(Name) \ |
875 V(UniqueName) \ | 881 V(UniqueName) \ |
876 V(String) \ | 882 V(String) \ |
877 V(SeqString) \ | 883 V(SeqString) \ |
878 V(ExternalString) \ | 884 V(ExternalString) \ |
879 V(ConsString) \ | 885 V(ConsString) \ |
880 V(SlicedString) \ | 886 V(SlicedString) \ |
881 V(ExternalTwoByteString) \ | 887 V(ExternalTwoByteString) \ |
882 V(ExternalOneByteString) \ | 888 V(ExternalOneByteString) \ |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1585 | 1591 |
1586 private: | 1592 private: |
1587 DISALLOW_IMPLICIT_CONSTRUCTORS(Simd128Value); | 1593 DISALLOW_IMPLICIT_CONSTRUCTORS(Simd128Value); |
1588 }; | 1594 }; |
1589 | 1595 |
1590 | 1596 |
1591 // V has parameters (TYPE, Type, type, lane count, lane type) | 1597 // V has parameters (TYPE, Type, type, lane count, lane type) |
1592 #define SIMD128_TYPES(V) \ | 1598 #define SIMD128_TYPES(V) \ |
1593 V(FLOAT32X4, Float32x4, float32x4, 4, float) \ | 1599 V(FLOAT32X4, Float32x4, float32x4, 4, float) \ |
1594 V(INT32X4, Int32x4, int32x4, 4, int32_t) \ | 1600 V(INT32X4, Int32x4, int32x4, 4, int32_t) \ |
| 1601 V(UINT32X4, Uint32x4, uint32x4, 4, uint32_t) \ |
1595 V(BOOL32X4, Bool32x4, bool32x4, 4, bool) \ | 1602 V(BOOL32X4, Bool32x4, bool32x4, 4, bool) \ |
1596 V(INT16X8, Int16x8, int16x8, 8, int16_t) \ | 1603 V(INT16X8, Int16x8, int16x8, 8, int16_t) \ |
| 1604 V(UINT16X8, Uint16x8, uint16x8, 8, uint16_t) \ |
1597 V(BOOL16X8, Bool16x8, bool16x8, 8, bool) \ | 1605 V(BOOL16X8, Bool16x8, bool16x8, 8, bool) \ |
1598 V(INT8X16, Int8x16, int8x16, 16, int8_t) \ | 1606 V(INT8X16, Int8x16, int8x16, 16, int8_t) \ |
| 1607 V(UINT8X16, Uint8x16, uint8x16, 16, uint8_t) \ |
1599 V(BOOL8X16, Bool8x16, bool8x16, 16, bool) | 1608 V(BOOL8X16, Bool8x16, bool8x16, 16, bool) |
1600 | 1609 |
1601 #define SIMD128_VALUE_CLASS(TYPE, Type, type, lane_count, lane_type) \ | 1610 #define SIMD128_VALUE_CLASS(TYPE, Type, type, lane_count, lane_type) \ |
1602 class Type final : public Simd128Value { \ | 1611 class Type final : public Simd128Value { \ |
1603 public: \ | 1612 public: \ |
1604 inline lane_type get_lane(int lane) const; \ | 1613 inline lane_type get_lane(int lane) const; \ |
1605 inline void set_lane(int lane, lane_type value); \ | 1614 inline void set_lane(int lane, lane_type value); \ |
1606 \ | 1615 \ |
1607 DECLARE_CAST(Type) \ | 1616 DECLARE_CAST(Type) \ |
1608 \ | 1617 \ |
(...skipping 8696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10305 } else { | 10314 } else { |
10306 value &= ~(1 << bit_position); | 10315 value &= ~(1 << bit_position); |
10307 } | 10316 } |
10308 return value; | 10317 return value; |
10309 } | 10318 } |
10310 }; | 10319 }; |
10311 | 10320 |
10312 } } // namespace v8::internal | 10321 } } // namespace v8::internal |
10313 | 10322 |
10314 #endif // V8_OBJECTS_H_ | 10323 #endif // V8_OBJECTS_H_ |
OLD | NEW |