Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index f9459dd3e1be9f088a634df0b40c06ec8744960b..1335a97ef16071740e594489a5c8f0b2a8fe7c25 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -2724,7 +2724,7 @@ void MacroAssembler::CheckFastSmiOnlyElements(Register map, |
void MacroAssembler::StoreNumberToDoubleElements( |
Register maybe_number, |
Register elements, |
- Register key, |
+ Register index, |
XMMRegister xmm_scratch, |
Label* fail) { |
Label smi_value, is_nan, maybe_nan, not_nan, have_double_value, done; |
@@ -2745,7 +2745,7 @@ void MacroAssembler::StoreNumberToDoubleElements( |
bind(¬_nan); |
movsd(xmm_scratch, FieldOperand(maybe_number, HeapNumber::kValueOffset)); |
bind(&have_double_value); |
- movsd(FieldOperand(elements, key, times_8, FixedDoubleArray::kHeaderSize), |
+ movsd(FieldOperand(elements, index, times_8, FixedDoubleArray::kHeaderSize), |
xmm_scratch); |
jmp(&done); |
@@ -2768,7 +2768,7 @@ void MacroAssembler::StoreNumberToDoubleElements( |
// Preserve original value. |
SmiToInteger32(kScratchRegister, maybe_number); |
cvtlsi2sd(xmm_scratch, kScratchRegister); |
- movsd(FieldOperand(elements, key, times_8, FixedDoubleArray::kHeaderSize), |
+ movsd(FieldOperand(elements, index, times_8, FixedDoubleArray::kHeaderSize), |
xmm_scratch); |
bind(&done); |
} |