Index: src/compiler/mips64/code-generator-mips64.cc |
diff --git a/src/compiler/mips64/code-generator-mips64.cc b/src/compiler/mips64/code-generator-mips64.cc |
index ae79a72295d055ac44c2899ba64f6aaef6f5b6e1..23200a4ed3789211c530149a457f3dcc7e547370 100644 |
--- a/src/compiler/mips64/code-generator-mips64.cc |
+++ b/src/compiler/mips64/code-generator-mips64.cc |
@@ -1240,9 +1240,9 @@ void CodeGenerator::AssembleSwap(InstructionOperand* source, |
Register temp_0 = kScratchReg; |
FPURegister temp_1 = kScratchDoubleReg; |
MemOperand src0 = g.ToMemOperand(source); |
- MemOperand src1(src0.rm(), src0.offset() + kPointerSize); |
+ MemOperand src1(src0.rm(), src0.offset() + kIntSize); |
MemOperand dst0 = g.ToMemOperand(destination); |
- MemOperand dst1(dst0.rm(), dst0.offset() + kPointerSize); |
+ MemOperand dst1(dst0.rm(), dst0.offset() + kIntSize); |
__ ldc1(temp_1, dst0); // Save destination in temp_1. |
__ lw(temp_0, src0); // Then use temp_0 to copy source to destination. |
__ sw(temp_0, dst0); |