| 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 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 885 V(Smi) \ | 888 V(Smi) \ |
| 886 V(HeapObject) \ | 889 V(HeapObject) \ |
| 887 V(Number) | 890 V(Number) |
| 888 | 891 |
| 889 #define HEAP_OBJECT_TYPE_LIST(V) \ | 892 #define HEAP_OBJECT_TYPE_LIST(V) \ |
| 890 V(HeapNumber) \ | 893 V(HeapNumber) \ |
| 891 V(MutableHeapNumber) \ | 894 V(MutableHeapNumber) \ |
| 892 V(Simd128Value) \ | 895 V(Simd128Value) \ |
| 893 V(Float32x4) \ | 896 V(Float32x4) \ |
| 894 V(Int32x4) \ | 897 V(Int32x4) \ |
| 898 V(Uint32x4) \ |
| 895 V(Bool32x4) \ | 899 V(Bool32x4) \ |
| 896 V(Int16x8) \ | 900 V(Int16x8) \ |
| 901 V(Uint16x8) \ |
| 897 V(Bool16x8) \ | 902 V(Bool16x8) \ |
| 898 V(Int8x16) \ | 903 V(Int8x16) \ |
| 904 V(Uint8x16) \ |
| 899 V(Bool8x16) \ | 905 V(Bool8x16) \ |
| 900 V(Name) \ | 906 V(Name) \ |
| 901 V(UniqueName) \ | 907 V(UniqueName) \ |
| 902 V(String) \ | 908 V(String) \ |
| 903 V(SeqString) \ | 909 V(SeqString) \ |
| 904 V(ExternalString) \ | 910 V(ExternalString) \ |
| 905 V(ConsString) \ | 911 V(ConsString) \ |
| 906 V(SlicedString) \ | 912 V(SlicedString) \ |
| 907 V(ExternalTwoByteString) \ | 913 V(ExternalTwoByteString) \ |
| 908 V(ExternalOneByteString) \ | 914 V(ExternalOneByteString) \ |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1612 | 1618 |
| 1613 private: | 1619 private: |
| 1614 DISALLOW_IMPLICIT_CONSTRUCTORS(Simd128Value); | 1620 DISALLOW_IMPLICIT_CONSTRUCTORS(Simd128Value); |
| 1615 }; | 1621 }; |
| 1616 | 1622 |
| 1617 | 1623 |
| 1618 // V has parameters (TYPE, Type, type, lane count, lane type) | 1624 // V has parameters (TYPE, Type, type, lane count, lane type) |
| 1619 #define SIMD128_TYPES(V) \ | 1625 #define SIMD128_TYPES(V) \ |
| 1620 V(FLOAT32X4, Float32x4, float32x4, 4, float) \ | 1626 V(FLOAT32X4, Float32x4, float32x4, 4, float) \ |
| 1621 V(INT32X4, Int32x4, int32x4, 4, int32_t) \ | 1627 V(INT32X4, Int32x4, int32x4, 4, int32_t) \ |
| 1628 V(UINT32X4, Uint32x4, uint32x4, 4, uint32_t) \ |
| 1622 V(BOOL32X4, Bool32x4, bool32x4, 4, bool) \ | 1629 V(BOOL32X4, Bool32x4, bool32x4, 4, bool) \ |
| 1623 V(INT16X8, Int16x8, int16x8, 8, int16_t) \ | 1630 V(INT16X8, Int16x8, int16x8, 8, int16_t) \ |
| 1631 V(UINT16X8, Uint16x8, uint16x8, 8, uint16_t) \ |
| 1624 V(BOOL16X8, Bool16x8, bool16x8, 8, bool) \ | 1632 V(BOOL16X8, Bool16x8, bool16x8, 8, bool) \ |
| 1625 V(INT8X16, Int8x16, int8x16, 16, int8_t) \ | 1633 V(INT8X16, Int8x16, int8x16, 16, int8_t) \ |
| 1634 V(UINT8X16, Uint8x16, uint8x16, 16, uint8_t) \ |
| 1626 V(BOOL8X16, Bool8x16, bool8x16, 16, bool) | 1635 V(BOOL8X16, Bool8x16, bool8x16, 16, bool) |
| 1627 | 1636 |
| 1628 #define SIMD128_VALUE_CLASS(TYPE, Type, type, lane_count, lane_type) \ | 1637 #define SIMD128_VALUE_CLASS(TYPE, Type, type, lane_count, lane_type) \ |
| 1629 class Type final : public Simd128Value { \ | 1638 class Type final : public Simd128Value { \ |
| 1630 public: \ | 1639 public: \ |
| 1631 inline lane_type get_lane(int lane) const; \ | 1640 inline lane_type get_lane(int lane) const; \ |
| 1632 inline void set_lane(int lane, lane_type value); \ | 1641 inline void set_lane(int lane, lane_type value); \ |
| 1633 \ | 1642 \ |
| 1634 DECLARE_CAST(Type) \ | 1643 DECLARE_CAST(Type) \ |
| 1635 \ | 1644 \ |
| (...skipping 8620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10256 } else { | 10265 } else { |
| 10257 value &= ~(1 << bit_position); | 10266 value &= ~(1 << bit_position); |
| 10258 } | 10267 } |
| 10259 return value; | 10268 return value; |
| 10260 } | 10269 } |
| 10261 }; | 10270 }; |
| 10262 | 10271 |
| 10263 } } // namespace v8::internal | 10272 } } // namespace v8::internal |
| 10264 | 10273 |
| 10265 #endif // V8_OBJECTS_H_ | 10274 #endif // V8_OBJECTS_H_ |
| OLD | NEW |