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 cb465f2d3ed6b069837f9d05074a66f06f711f11..534ebfb09e5da459388d612f33a4008f2bb62b74 100644 |
--- a/src/compiler/mips64/code-generator-mips64.cc |
+++ b/src/compiler/mips64/code-generator-mips64.cc |
@@ -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(); |