| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 4795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4806 inline static FreeSpace* cast(HeapObject* obj); | 4806 inline static FreeSpace* cast(HeapObject* obj); |
| 4807 | 4807 |
| 4808 // Dispatched behavior. | 4808 // Dispatched behavior. |
| 4809 DECLARE_PRINTER(FreeSpace) | 4809 DECLARE_PRINTER(FreeSpace) |
| 4810 DECLARE_VERIFIER(FreeSpace) | 4810 DECLARE_VERIFIER(FreeSpace) |
| 4811 | 4811 |
| 4812 // Layout description. | 4812 // Layout description. |
| 4813 // Size is smi tagged when it is stored. | 4813 // Size is smi tagged when it is stored. |
| 4814 static const int kSizeOffset = HeapObject::kHeaderSize; | 4814 static const int kSizeOffset = HeapObject::kHeaderSize; |
| 4815 static const int kNextOffset = POINTER_SIZE_ALIGN(kSizeOffset + kPointerSize); | 4815 static const int kNextOffset = POINTER_SIZE_ALIGN(kSizeOffset + kPointerSize); |
| 4816 static const int kSize = kNextOffset + kPointerSize; |
| 4816 | 4817 |
| 4817 private: | 4818 private: |
| 4818 DISALLOW_IMPLICIT_CONSTRUCTORS(FreeSpace); | 4819 DISALLOW_IMPLICIT_CONSTRUCTORS(FreeSpace); |
| 4819 }; | 4820 }; |
| 4820 | 4821 |
| 4821 | 4822 |
| 4822 // V has parameters (Type, type, TYPE, C type, element_size) | 4823 // V has parameters (Type, type, TYPE, C type, element_size) |
| 4823 #define TYPED_ARRAYS(V) \ | 4824 #define TYPED_ARRAYS(V) \ |
| 4824 V(Uint8, uint8, UINT8, uint8_t, 1) \ | 4825 V(Uint8, uint8, UINT8, uint8_t, 1) \ |
| 4825 V(Int8, int8, INT8, int8_t, 1) \ | 4826 V(Int8, int8, INT8, int8_t, 1) \ |
| (...skipping 6377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11203 } | 11204 } |
| 11204 return value; | 11205 return value; |
| 11205 } | 11206 } |
| 11206 }; | 11207 }; |
| 11207 | 11208 |
| 11208 | 11209 |
| 11209 } // NOLINT, false-positive due to second-order macros. | 11210 } // NOLINT, false-positive due to second-order macros. |
| 11210 } // NOLINT, false-positive due to second-order macros. | 11211 } // NOLINT, false-positive due to second-order macros. |
| 11211 | 11212 |
| 11212 #endif // V8_OBJECTS_H_ | 11213 #endif // V8_OBJECTS_H_ |
| OLD | NEW |