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 6242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6253 kPrototypeOffset + kPointerSize; | 6253 kPrototypeOffset + kPointerSize; |
6254 // When there is only one transition, it is stored directly in this field; | 6254 // When there is only one transition, it is stored directly in this field; |
6255 // otherwise a transition array is used. | 6255 // otherwise a transition array is used. |
6256 // For prototype maps, this slot is used to store this map's PrototypeInfo | 6256 // For prototype maps, this slot is used to store this map's PrototypeInfo |
6257 // struct. | 6257 // struct. |
6258 static const int kTransitionsOrPrototypeInfoOffset = | 6258 static const int kTransitionsOrPrototypeInfoOffset = |
6259 kConstructorOrBackPointerOffset + kPointerSize; | 6259 kConstructorOrBackPointerOffset + kPointerSize; |
6260 static const int kDescriptorsOffset = | 6260 static const int kDescriptorsOffset = |
6261 kTransitionsOrPrototypeInfoOffset + kPointerSize; | 6261 kTransitionsOrPrototypeInfoOffset + kPointerSize; |
6262 #if V8_DOUBLE_FIELDS_UNBOXING | 6262 #if V8_DOUBLE_FIELDS_UNBOXING |
6263 static const int kLayoutDecriptorOffset = kDescriptorsOffset + kPointerSize; | 6263 static const int kLayoutDescriptorOffset = kDescriptorsOffset + kPointerSize; |
6264 static const int kCodeCacheOffset = kLayoutDecriptorOffset + kPointerSize; | 6264 static const int kCodeCacheOffset = kLayoutDescriptorOffset + kPointerSize; |
6265 #else | 6265 #else |
6266 static const int kLayoutDecriptorOffset = 1; // Must not be ever accessed. | 6266 static const int kLayoutDescriptorOffset = 1; // Must not be ever accessed. |
6267 static const int kCodeCacheOffset = kDescriptorsOffset + kPointerSize; | 6267 static const int kCodeCacheOffset = kDescriptorsOffset + kPointerSize; |
6268 #endif | 6268 #endif |
6269 static const int kDependentCodeOffset = kCodeCacheOffset + kPointerSize; | 6269 static const int kDependentCodeOffset = kCodeCacheOffset + kPointerSize; |
6270 static const int kWeakCellCacheOffset = kDependentCodeOffset + kPointerSize; | 6270 static const int kWeakCellCacheOffset = kDependentCodeOffset + kPointerSize; |
6271 static const int kSize = kWeakCellCacheOffset + kPointerSize; | 6271 static const int kSize = kWeakCellCacheOffset + kPointerSize; |
6272 | 6272 |
6273 // Layout of pointer fields. Heap iteration code relies on them | 6273 // Layout of pointer fields. Heap iteration code relies on them |
6274 // being continuously allocated. | 6274 // being continuously allocated. |
6275 static const int kPointerFieldsBeginOffset = Map::kPrototypeOffset; | 6275 static const int kPointerFieldsBeginOffset = Map::kPrototypeOffset; |
6276 static const int kPointerFieldsEndOffset = kSize; | 6276 static const int kPointerFieldsEndOffset = kSize; |
(...skipping 4786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11063 } | 11063 } |
11064 return value; | 11064 return value; |
11065 } | 11065 } |
11066 }; | 11066 }; |
11067 | 11067 |
11068 | 11068 |
11069 } // NOLINT, false-positive due to second-order macros. | 11069 } // NOLINT, false-positive due to second-order macros. |
11070 } // NOLINT, false-positive due to second-order macros. | 11070 } // NOLINT, false-positive due to second-order macros. |
11071 | 11071 |
11072 #endif // V8_OBJECTS_H_ | 11072 #endif // V8_OBJECTS_H_ |
OLD | NEW |