| Index: src/builtins.cc
|
| diff --git a/src/builtins.cc b/src/builtins.cc
|
| index d97a4778afba13fa8307a7e5c6baa74195765824..b1267004328a3e874e4f5edd0f01b87728234415 100644
|
| --- a/src/builtins.cc
|
| +++ b/src/builtins.cc
|
| @@ -211,8 +211,9 @@ static MaybeObject* ArrayCodeGenericCommon(Arguments* args,
|
|
|
| if (FLAG_optimize_constructed_arrays) {
|
| AllocationSiteInfo* info = AllocationSiteInfo::FindForJSObject(array);
|
| - ElementsKind to_kind = array->GetElementsKind();
|
| - if (info != NULL && info->GetElementsKindPayload(&to_kind)) {
|
| + if (info != NULL) {
|
| + AllocationSite* site = AllocationSite::cast(info->payload());
|
| + ElementsKind to_kind = site->GetElementsKindPayload();
|
| if (IsMoreGeneralElementsKindTransition(array->GetElementsKind(),
|
| to_kind)) {
|
| // We have advice that we should change the elements kind
|
|
|