Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 56fde30433158490204a50da96438175c046862b..bde418f4f3c5ed487f1afc8410ff374ef5e846a3 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1322,6 +1322,12 @@ bool JSObject::ShouldTrackAllocationInfo() { |
return false; |
} |
Michael Starzinger
2013/09/19 13:56:17
nit: Two empty newlines.
|
+void AllocationSite::Initialize() { |
+ SetElementsKind(GetInitialFastElementsKind()); |
+ set_dependent_code(DependentCode::cast(GetHeap()->empty_fixed_array()), |
+ SKIP_WRITE_BARRIER); |
+} |
+ |
// Heuristic: We only need to create allocation site info if the boilerplate |
// elements kind is the initial elements kind. |
@@ -4480,6 +4486,8 @@ ACCESSORS(SignatureInfo, args, Object, kArgsOffset) |
ACCESSORS(TypeSwitchInfo, types, Object, kTypesOffset) |
ACCESSORS(AllocationSite, transition_info, Object, kTransitionInfoOffset) |
+ACCESSORS(AllocationSite, dependent_code, DependentCode, |
+ kDependentCodeOffset) |
ACCESSORS(AllocationSite, weak_next, Object, kWeakNextOffset) |
ACCESSORS(AllocationMemento, allocation_site, Object, kAllocationSiteOffset) |