Index: src/x64/ic-x64.cc |
diff --git a/src/x64/ic-x64.cc b/src/x64/ic-x64.cc |
index f668f0c8f3a4881b031d5e8032561ace2fc99d63..83247355a7f51d233c413e5b6819daf7efdd140a 100644 |
--- a/src/x64/ic-x64.cc |
+++ b/src/x64/ic-x64.cc |
@@ -1013,6 +1013,7 @@ void KeyedStoreIC::GenerateGeneric(MacroAssembler* masm) { |
__ movq(FieldOperand(rbx, index2.reg, index2.scale, FixedArray::kHeaderSize), |
rax); |
__ movq(rdx, rax); |
+ __ SmiToInteger32(rcx, rcx); |
__ RecordWriteNonSmi(rbx, 0, rdx, rcx); |
__ ret(0); |
} |