PPC: Fix "Implement the function.sent proposal."

StoreP needs a scratch register for unaligned immediate offset.

R=neis@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com
BUG=v8:4700
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#33619}
This commit is contained in:
mbrandy 2016-01-29 11:33:49 -08:00 committed by Commit bot
parent 3641a44883
commit ceb2d18d82

View File

@ -2054,7 +2054,7 @@ void FullCodeGenerator::EmitGeneratorResume(
// Store input value into generator object. // Store input value into generator object.
__ StoreP(result_register(), __ StoreP(result_register(),
FieldMemOperand(r4, JSGeneratorObject::kInputOffset)); FieldMemOperand(r4, JSGeneratorObject::kInputOffset), r0);
__ mr(r5, result_register()); __ mr(r5, result_register());
__ RecordWriteField(r4, JSGeneratorObject::kInputOffset, r5, r6, __ RecordWriteField(r4, JSGeneratorObject::kInputOffset, r5, r6,
kLRHasBeenSaved, kDontSaveFPRegs); kLRHasBeenSaved, kDontSaveFPRegs);