Commit bf6e35a2 authored by Benedikt Meurer's avatar Benedikt Meurer

[turbofan] Index parameter to StoreWriteBarrier is word size.

R=jarin@chromium.org

Review URL: https://codereview.chromium.org/818173004

Cr-Commit-Position: refs/heads/master@{#26047}
parent 284e1108
......@@ -720,7 +720,7 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) {
Register object = i.InputRegister(0);
Register index = i.InputRegister(1);
Register value = i.InputRegister(2);
__ Add(index, object, Operand(index, SXTW));
__ Add(index, object, index);
__ Str(value, MemOperand(index));
SaveFPRegsMode mode =
frame()->DidAllocateDoubleRegisters() ? kSaveFPRegs : kDontSaveFPRegs;
......
......@@ -962,7 +962,6 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) {
Register object = i.InputRegister(0);
Register index = i.InputRegister(1);
Register value = i.InputRegister(2);
__ movsxlq(index, index);
__ movq(Operand(object, index, times_1, 0), value);
__ leaq(index, Operand(object, index, times_1, 0));
SaveFPRegsMode mode =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment