Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 83781f2c449c58afeff408ce186f113ba7452074..239e2315c3ca4b3163edbad8feee568ca200a9b5 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -12316,13 +12316,13 @@ MaybeObject* JSObject::UpdateAllocationSite(ElementsKind to_kind) { |
// Walk through to the Allocation Site |
AllocationSite* site = info->GetAllocationSite(); |
if (site->IsLiteralSite()) { |
- JSArray* payload = JSArray::cast(site->payload()); |
- ElementsKind kind = payload->GetElementsKind(); |
+ JSArray* transition_info = JSArray::cast(site->transition_info()); |
+ ElementsKind kind = transition_info->GetElementsKind(); |
if (AllocationSite::GetMode(kind, to_kind) == TRACK_ALLOCATION_SITE) { |
// If the array is huge, it's not likely to be defined in a local |
// function, so we shouldn't make new instances of it very often. |
uint32_t length = 0; |
- CHECK(payload->length()->ToArrayIndex(&length)); |
+ CHECK(transition_info->length()->ToArrayIndex(&length)); |
if (length <= AllocationSite::kMaximumArrayBytesToPretransition) { |
if (FLAG_trace_track_allocation_sites) { |
PrintF( |
@@ -12331,11 +12331,11 @@ MaybeObject* JSObject::UpdateAllocationSite(ElementsKind to_kind) { |
ElementsKindToString(kind), |
ElementsKindToString(to_kind)); |
} |
- return payload->TransitionElementsKind(to_kind); |
+ return transition_info->TransitionElementsKind(to_kind); |
} |
} |
} else { |
- ElementsKind kind = site->GetElementsKindPayload(); |
+ ElementsKind kind = site->GetElementsKind(); |
if (AllocationSite::GetMode(kind, to_kind) == TRACK_ALLOCATION_SITE) { |
if (FLAG_trace_track_allocation_sites) { |
PrintF("AllocationSite: JSArray %p site updated %s->%s\n", |
@@ -12343,7 +12343,7 @@ MaybeObject* JSObject::UpdateAllocationSite(ElementsKind to_kind) { |
ElementsKindToString(kind), |
ElementsKindToString(to_kind)); |
} |
- site->set_payload(Smi::FromInt(to_kind)); |
+ site->set_transition_info(Smi::FromInt(to_kind)); |
} |
} |
return this; |