Index: src/s390/macro-assembler-s390.cc |
diff --git a/src/s390/macro-assembler-s390.cc b/src/s390/macro-assembler-s390.cc |
index bd6f962a8487895241f51da0867596e2cced3fe8..6671a140a58c5400ac8ccd194d46972990bdbef8 100644 |
--- a/src/s390/macro-assembler-s390.cc |
+++ b/src/s390/macro-assembler-s390.cc |
@@ -2712,6 +2712,7 @@ void MacroAssembler::CallCFunction(Register function, int num_arguments) { |
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()); |
// Just call directly. The function called cannot cause a GC, or |