Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index ea372ea3c9f21986ed0b600733a93429e53f2390..30fb52729d0df377afc7b0404d0e81d2f94890e4 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -3273,6 +3273,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 |