Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Unified Diff: src/compiler/mips64/code-generator-mips64.cc

Issue 1211143003: MIPS: Fix '[turbofan] Add CalleeSavedFPRegisters to CallDescriptor.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/mips/code-generator-mips.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « src/compiler/mips/code-generator-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698