Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 4685dc7d314cf4c4a99f6fcdd69b0c8455f35704..b4388c373605c108d6c0889c8cc736faa5fb184b 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -7816,11 +7816,10 @@ class AllocationSite: public Struct { |
static const uint32_t kMaximumArrayBytesToPretransition = 8 * 1024; |
DECL_ACCESSORS(transition_info, Object) |
+ DECL_ACCESSORS(dependent_code, DependentCode) |
DECL_ACCESSORS(weak_next, Object) |
- void Initialize() { |
- SetElementsKind(GetInitialFastElementsKind()); |
- } |
+ inline void Initialize(); |
ElementsKind GetElementsKind() { |
ASSERT(!IsLiteralSite()); |
@@ -7847,11 +7846,12 @@ class AllocationSite: public Struct { |
static inline AllocationSiteMode GetMode(ElementsKind from, ElementsKind to); |
static const int kTransitionInfoOffset = HeapObject::kHeaderSize; |
- static const int kWeakNextOffset = kTransitionInfoOffset + kPointerSize; |
+ static const int kDependentCodeOffset = kTransitionInfoOffset + kPointerSize; |
+ static const int kWeakNextOffset = kDependentCodeOffset + kPointerSize; |
static const int kSize = kWeakNextOffset + kPointerSize; |
typedef FixedBodyDescriptor<HeapObject::kHeaderSize, |
- kTransitionInfoOffset + kPointerSize, |
+ kDependentCodeOffset + kPointerSize, |
kSize> BodyDescriptor; |
private: |