[turbofan] Index parameter to StoreWriteBarrier is word size.
authorBenedikt Meurer <bmeurer@chromium.org>
Wed, 14 Jan 2015 07:56:19 +0000 (08:56 +0100)
committerBenedikt Meurer <bmeurer@chromium.org>
Wed, 14 Jan 2015 07:56:39 +0000 (07:56 +0000)
R=jarin@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#26047}

src/compiler/arm64/code-generator-arm64.cc
src/compiler/x64/code-generator-x64.cc

index 5bb9ee6a6b525ed72f9a6ca5a177fa0ea3bf9e82..ecdf148cab5c6516d96231a1925ec56f675e322e 100644 (file)
@@ -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;
index 06b934f660a65032f1a0736960c483a4b3800fdc..73628a087e1537b186e8cfd4a7e8d92bdec47493 100644 (file)
@@ -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 =