Index: src/x64/ic-x64.cc |
=================================================================== |
--- src/x64/ic-x64.cc (revision 8365) |
+++ src/x64/ic-x64.cc (working copy) |
@@ -1308,12 +1308,18 @@ |
Operand mapped_location = GenerateMappedArgumentsLookup( |
masm, rdx, rcx, rbx, rdi, r8, ¬in, &slow); |
__ movq(mapped_location, rax); |
+ __ lea(r9, mapped_location); |
+ __ movq(r8, rax); |
+ __ RecordWrite(rbx, r9, r8); |
__ Ret(); |
__ bind(¬in); |
// The unmapped lookup expects that the parameter map is in rbx. |
Operand unmapped_location = |
GenerateUnmappedArgumentsLookup(masm, rcx, rbx, rdi, &slow); |
__ movq(unmapped_location, rax); |
+ __ lea(r9, unmapped_location); |
+ __ movq(r8, rax); |
+ __ RecordWrite(rbx, r9, r8); |
__ Ret(); |
__ bind(&slow); |
GenerateMiss(masm, false); |