Index: src/ppc/code-stubs-ppc.h |
diff --git a/src/ppc/code-stubs-ppc.h b/src/ppc/code-stubs-ppc.h |
index 3c71a23ea2af8fe4fc55018176b4b49ab5adb87d..238c9f741e93577745c8fdf2836368027c842f73 100644 |
--- a/src/ppc/code-stubs-ppc.h |
+++ b/src/ppc/code-stubs-ppc.h |
@@ -181,7 +181,7 @@ class RecordWriteStub : public PlatformCodeStub { |
masm->MultiPush(kJSCallerSaved & ~scratch1_.bit()); |
if (mode == kSaveFPRegs) { |
// Save all volatile FP registers except d0. |
- masm->SaveFPRegs(sp, 1, DoubleRegister::kNumVolatileRegisters - 1); |
+ masm->MultiPushDoubles(kCallerSavedDoubles & ~d0.bit()); |
} |
} |
@@ -189,7 +189,7 @@ class RecordWriteStub : public PlatformCodeStub { |
SaveFPRegsMode mode) { |
if (mode == kSaveFPRegs) { |
// Restore all volatile FP registers except d0. |
- masm->RestoreFPRegs(sp, 1, DoubleRegister::kNumVolatileRegisters - 1); |
+ masm->MultiPopDoubles(kCallerSavedDoubles & ~d0.bit()); |
} |
masm->MultiPop(kJSCallerSaved & ~scratch1_.bit()); |
masm->pop(r0); |