PPC64: [turbofan] Fix DCHECK in AssembleSwap.
authormichael_dawson <michael_dawson@ca.ibm.com>
Thu, 26 Mar 2015 22:11:53 +0000 (15:11 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 26 Mar 2015 22:12:04 +0000 (22:12 +0000)
Fixes these tests in PPC,debug,non-sim

mjsunit/compiler/osr-maze1
mjsunit/compiler/regress-3
mjsunit/regress/regress-crbug-173907
mjsunit/regress/regress-crbug-173907b

R=mbrandy@us.ibm.com

BUG=

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

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

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

index 39247c2..c619833 100644 (file)
@@ -1380,8 +1380,8 @@ void CodeGenerator::AssembleSwap(InstructionOperand* source,
   } else if (source->IsStackSlot() || source->IsDoubleStackSlot()) {
 #else
   } else if (source->IsStackSlot()) {
-#endif
     DCHECK(destination->IsStackSlot());
+#endif
     Register temp_0 = kScratchReg;
     Register temp_1 = r0;
     MemOperand src = g.ToMemOperand(source);