Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index 4c099fdc31d0e3b2f21533b5927d31ef3094348b..043b0bd75a89bed3690658943c9fc03c5c5bdf7a 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -7827,11 +7827,15 @@ class AllocationSite: public Struct { |
| static const uint32_t kMaximumArrayBytesToPretransition = 8 * 1024; |
| DECL_ACCESSORS(transition_info, Object) |
| + DECL_ACCESSORS(nested_sites, Object) |
|
Hannes Payer (out of office)
2013/09/24 08:04:40
I think we should call it next or nested_sit and s
mvstanton
2013/09/24 08:39:15
Done.
|
| DECL_ACCESSORS(dependent_code, DependentCode) |
| DECL_ACCESSORS(weak_next, Object) |
| inline void Initialize(); |
| + AllocationSite* GetLastNestedSite(); |
| + void AppendNestedSite(AllocationSite* nested_site); |
| + |
| ElementsKind GetElementsKind() { |
| ASSERT(!IsLiteralSite()); |
| return static_cast<ElementsKind>(Smi::cast(transition_info())->value()); |
| @@ -7858,7 +7862,8 @@ class AllocationSite: public Struct { |
| static inline bool CanTrack(InstanceType type); |
| static const int kTransitionInfoOffset = HeapObject::kHeaderSize; |
| - static const int kDependentCodeOffset = kTransitionInfoOffset + kPointerSize; |
| + static const int kNestedSitesOffset = kTransitionInfoOffset + kPointerSize; |
|
Hannes Payer (out of office)
2013/09/24 08:04:40
kNextOffset or kNestedSiteOffset
mvstanton
2013/09/24 08:39:15
Done.
|
| + static const int kDependentCodeOffset = kNestedSitesOffset + kPointerSize; |
| static const int kWeakNextOffset = kDependentCodeOffset + kPointerSize; |
| static const int kSize = kWeakNextOffset + kPointerSize; |