Commit 1ab39b49 authored by akos.palfi's avatar akos.palfi Committed by Commit bot

MIPS: Fix '[turbofan] Add CalleeSavedFPRegisters to CallDescriptor.'

Fixes debug mode assertions.

TEST=cctest/test-run-machops/RunChangeUint32ToFloat64_B
BUG=

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

Cr-Commit-Position: refs/heads/master@{#29420}
parent 78ef2e5b
......@@ -1082,7 +1082,9 @@ void CodeGenerator::AssemblePrologue() {
const RegList saves = descriptor->CalleeSavedRegisters();
// Save callee-saved registers.
__ MultiPush(saves);
DCHECK(kNumCalleeSaved == base::bits::CountPopulation32(saves));
// kNumCalleeSaved includes the fp register, but the fp register
// is saved separately in TF.
DCHECK(kNumCalleeSaved == base::bits::CountPopulation32(saves) + 1);
int register_save_area_size = kNumCalleeSaved * kPointerSize;
const RegList saves_fpu = descriptor->CalleeSavedFPRegisters();
......
......@@ -1155,7 +1155,9 @@ void CodeGenerator::AssemblePrologue() {
const RegList saves = descriptor->CalleeSavedRegisters();
// Save callee-saved registers.
__ MultiPush(saves);
DCHECK(kNumCalleeSaved == base::bits::CountPopulation32(saves));
// kNumCalleeSaved includes the fp register, but the fp register
// is saved separately in TF.
DCHECK(kNumCalleeSaved == base::bits::CountPopulation32(saves) + 1);
int register_save_area_size = kNumCalleeSaved * kPointerSize;
const RegList saves_fpu = descriptor->CalleeSavedFPRegisters();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment