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