Chromium Code Reviews| Index: src/arm/code-stubs-arm.cc |
| diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
| index 62fcc9a981ccd5946ed7946d006d7e6d5224d4d1..e34292bf5a49372696cd523d8179ad550bd77d27 100644 |
| --- a/src/arm/code-stubs-arm.cc |
| +++ b/src/arm/code-stubs-arm.cc |
| @@ -496,7 +496,14 @@ void FastCloneShallowArrayStub::Generate(MacroAssembler* masm) { |
| __ Ret(); |
| __ bind(&slow_case); |
| - __ TailCallRuntime(Runtime::kCreateArrayLiteralShallow, 3, 1); |
| + |
| + // Add a flags argument, carefully preserving the return address on the stack. |
|
danno
2013/02/11 15:05:21
The comment is a bit misleading for ARM, since the
mvstanton
2013/02/15 07:36:43
Done.
|
| + int flags = allocation_site_mode_ == TRACK_ALLOCATION_SITE |
| + ? ArrayLiteral::kAllocationSiteInfoAllowed |
| + : ArrayLiteral::kNoFlags; |
| + __ mov(r0, Operand(Smi::FromInt(flags))); |
| + __ push(r0); |
| + __ TailCallRuntime(Runtime::kCreateArrayLiteralShallow, 4, 1); |
| } |