Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 80d0505d70e7956bf3aa19a23cdced695a11e18c..62340108f326cf1a94c29fdb7a2b5bd21d08580a 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -6074,6 +6074,7 @@ void MacroAssembler::CallCFunction(Register function, |
void MacroAssembler::CallCFunctionHelper(Register function, |
int num_reg_arguments, |
int num_double_arguments) { |
+ DCHECK_LE(num_reg_arguments + num_double_arguments, kMaxCParameters); |
DCHECK(has_frame()); |
// Make sure that the stack is aligned before calling a C function unless |
// running in the simulator. The simulator has its own alignment check which |