| Index: src/x64/code-stubs-x64.cc
|
| diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc
|
| index 04c3e6837b05fe3853fc2888c8af71ce6feb4df7..aaab53a30961e6790c168696eb5f08641d782847 100644
|
| --- a/src/x64/code-stubs-x64.cc
|
| +++ b/src/x64/code-stubs-x64.cc
|
| @@ -530,7 +530,15 @@ void FastCloneShallowArrayStub::Generate(MacroAssembler* masm) {
|
| __ ret(3 * kPointerSize);
|
|
|
| __ bind(&slow_case);
|
| - __ TailCallRuntime(Runtime::kCreateArrayLiteralShallow, 3, 1);
|
| +
|
| + // Add a flags argument, carefully preserving the return address on the stack.
|
| + int flags = allocation_site_mode_ == TRACK_ALLOCATION_SITE
|
| + ? ArrayLiteral::kCreateAllocationSiteInfos
|
| + : ArrayLiteral::kNoFlags;
|
| + __ pop(rcx);
|
| + __ Push(Smi::FromInt(flags));
|
| + __ push(rcx);
|
| + __ TailCallRuntime(Runtime::kCreateArrayLiteralShallow, 4, 1);
|
| }
|
|
|
|
|
|
|