| Index: src/ic.cc
|
| diff --git a/src/ic.cc b/src/ic.cc
|
| index 38a0c149a8378178ac9f1f4f800553e76e9aba8c..90beb36d0dea33301d125f6a383e0c09da0ff776 100644
|
| --- a/src/ic.cc
|
| +++ b/src/ic.cc
|
| @@ -1850,7 +1850,8 @@ bool CallIC::DoCustomHandler(Handle<Object> receiver,
|
| isolate()->context()->native_context()->array_function(), isolate());
|
| if (array_function.is_identical_to(Handle<JSFunction>::cast(function))) {
|
| // Alter the slot.
|
| - vector->set(slot->value(), *isolate()->factory()->NewAllocationSite());
|
| + Handle<AllocationSite> new_site = isolate()->factory()->NewAllocationSite();
|
| + vector->set(slot->value(), *new_site);
|
| State new_state = state.ToMonomorphicArrayCallState();
|
| CallICStub stub(isolate(), new_state);
|
| set_target(*stub.GetCode());
|
|
|