| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index ea371a77b73187576de76acf0514df32ee8c8f89..ec870c70b52f512329eccad0d0428d918f797118 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -15937,6 +15937,14 @@ bool AllocationSite::DigestTransitionFeedback(Handle<AllocationSite> site,
|
| return result;
|
| }
|
|
|
| +AllocationSiteMode AllocationSite::GetMode(ElementsKind from, ElementsKind to) {
|
| + if (IsFastSmiElementsKind(from) &&
|
| + IsMoreGeneralElementsKindTransition(from, to)) {
|
| + return TRACK_ALLOCATION_SITE;
|
| + }
|
| +
|
| + return DONT_TRACK_ALLOCATION_SITE;
|
| +}
|
|
|
| const char* AllocationSite::PretenureDecisionName(PretenureDecision decision) {
|
| switch (decision) {
|
|
|