Index: src/compiler/mips/code-generator-mips.cc |
diff --git a/src/compiler/mips/code-generator-mips.cc b/src/compiler/mips/code-generator-mips.cc |
index 8bb47ef4f79e3fcc0196dd23e10b9d57f0df1850..a7806ccae236c2ee0e83399386915b1480f9d299 100644 |
--- a/src/compiler/mips/code-generator-mips.cc |
+++ b/src/compiler/mips/code-generator-mips.cc |
@@ -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(); |