| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index e60f0f36f1890f6819bcafa50f3ca7a6bff887ab..f82476eef583ca2458a4215ed6081355f1683abd 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -1304,7 +1304,7 @@ bool JSObject::ShouldTrackAllocationInfo() {
|
| return true;
|
| }
|
|
|
| - return AllocationSiteInfo::GetMode(GetElementsKind()) ==
|
| + return AllocationSite::GetMode(GetElementsKind()) ==
|
| TRACK_ALLOCATION_SITE;
|
| }
|
| return false;
|
| @@ -1313,7 +1313,7 @@ bool JSObject::ShouldTrackAllocationInfo() {
|
|
|
| // Heuristic: We only need to create allocation site info if the boilerplate
|
| // elements kind is the initial elements kind.
|
| -AllocationSiteMode AllocationSiteInfo::GetMode(
|
| +AllocationSiteMode AllocationSite::GetMode(
|
| ElementsKind boilerplate_elements_kind) {
|
| if (FLAG_track_allocation_sites &&
|
| IsFastSmiElementsKind(boilerplate_elements_kind)) {
|
| @@ -1324,8 +1324,8 @@ AllocationSiteMode AllocationSiteInfo::GetMode(
|
| }
|
|
|
|
|
| -AllocationSiteMode AllocationSiteInfo::GetMode(ElementsKind from,
|
| - ElementsKind to) {
|
| +AllocationSiteMode AllocationSite::GetMode(ElementsKind from,
|
| + ElementsKind to) {
|
| if (FLAG_track_allocation_sites &&
|
| IsFastSmiElementsKind(from) &&
|
| (IsFastObjectElementsKind(to) || IsFastDoubleElementsKind(to))) {
|
| @@ -4435,6 +4435,7 @@ ACCESSORS(SignatureInfo, args, Object, kArgsOffset)
|
|
|
| ACCESSORS(TypeSwitchInfo, types, Object, kTypesOffset)
|
|
|
| +ACCESSORS(AllocationSite, payload, Object, kPayloadOffset)
|
| ACCESSORS(AllocationSiteInfo, payload, Object, kPayloadOffset)
|
|
|
| ACCESSORS(Script, source, Object, kSourceOffset)
|
|
|