[turbofan] use double temp registers for stack-stack swap on arm64
authorDan Carney <dcarney@chromium.org>
Thu, 20 Nov 2014 16:11:22 +0000 (17:11 +0100)
committerDan Carney <dcarney@chromium.org>
Thu, 20 Nov 2014 16:11:34 +0000 (16:11 +0000)
TBR=vogelheim@chromium.org

BUG=

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

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

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

index 74b4bd96718fb1fbdc2c44cc4927540c64100749..61e69fcf9cbc7f7840667c9fd59f96a1110353c1 100644 (file)
@@ -959,8 +959,8 @@ void CodeGenerator::AssembleSwap(InstructionOperand* source,
     }
   } else if (source->IsStackSlot() || source->IsDoubleStackSlot()) {
     UseScratchRegisterScope scope(masm());
-    CPURegister temp_0 = scope.AcquireX();
-    CPURegister temp_1 = scope.AcquireX();
+    DoubleRegister temp_0 = scope.AcquireD();
+    DoubleRegister temp_1 = scope.AcquireD();
     MemOperand src = g.ToMemOperand(source, masm());
     MemOperand dst = g.ToMemOperand(destination, masm());
     __ Ldr(temp_0, src);