| 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 3158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3169 static const int kEnumCacheBridgeCacheIndex = 0; | 3169 static const int kEnumCacheBridgeCacheIndex = 0; |
| 3170 static const int kEnumCacheBridgeIndicesCacheIndex = 1; | 3170 static const int kEnumCacheBridgeIndicesCacheIndex = 1; |
| 3171 | 3171 |
| 3172 // Layout description. | 3172 // Layout description. |
| 3173 static const int kDescriptorLengthOffset = FixedArray::kHeaderSize; | 3173 static const int kDescriptorLengthOffset = FixedArray::kHeaderSize; |
| 3174 static const int kEnumCacheOffset = kDescriptorLengthOffset + kPointerSize; | 3174 static const int kEnumCacheOffset = kDescriptorLengthOffset + kPointerSize; |
| 3175 static const int kFirstOffset = kEnumCacheOffset + kPointerSize; | 3175 static const int kFirstOffset = kEnumCacheOffset + kPointerSize; |
| 3176 | 3176 |
| 3177 // Layout description for the bridge array. | 3177 // Layout description for the bridge array. |
| 3178 static const int kEnumCacheBridgeCacheOffset = FixedArray::kHeaderSize; | 3178 static const int kEnumCacheBridgeCacheOffset = FixedArray::kHeaderSize; |
| 3179 static const int kEnumCacheBridgeIndicesCacheOffset = |
| 3180 kEnumCacheBridgeCacheOffset + kPointerSize; |
| 3179 | 3181 |
| 3180 // Layout of descriptor. | 3182 // Layout of descriptor. |
| 3181 // Naming is consistent with Dictionary classes for easy templating. | 3183 // Naming is consistent with Dictionary classes for easy templating. |
| 3182 static const int kEntryKeyIndex = 0; | 3184 static const int kEntryKeyIndex = 0; |
| 3183 static const int kEntryDetailsIndex = 1; | 3185 static const int kEntryDetailsIndex = 1; |
| 3184 static const int kEntryValueIndex = 2; | 3186 static const int kEntryValueIndex = 2; |
| 3185 static const int kEntrySize = 3; | 3187 static const int kEntrySize = 3; |
| 3186 | 3188 |
| 3187 #if defined(DEBUG) || defined(OBJECT_PRINT) | 3189 #if defined(DEBUG) || defined(OBJECT_PRINT) |
| 3188 // For our gdb macros, we should perhaps change these in the future. | 3190 // For our gdb macros, we should perhaps change these in the future. |
| (...skipping 8399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11588 } | 11590 } |
| 11589 }; | 11591 }; |
| 11590 | 11592 |
| 11591 | 11593 |
| 11592 } // NOLINT, false-positive due to second-order macros. | 11594 } // NOLINT, false-positive due to second-order macros. |
| 11593 } // NOLINT, false-positive due to second-order macros. | 11595 } // NOLINT, false-positive due to second-order macros. |
| 11594 | 11596 |
| 11595 #include "src/objects/object-macros-undef.h" | 11597 #include "src/objects/object-macros-undef.h" |
| 11596 | 11598 |
| 11597 #endif // V8_OBJECTS_H_ | 11599 #endif // V8_OBJECTS_H_ |
| OLD | NEW |