Index: src/ppc/macro-assembler-ppc.cc |
diff --git a/src/ppc/macro-assembler-ppc.cc b/src/ppc/macro-assembler-ppc.cc |
index 1d34e3d5d642dce0102cdde7ae9311a19f78700c..56f7bcb0432a91734240a9b944ca4104a44fde91 100644 |
--- a/src/ppc/macro-assembler-ppc.cc |
+++ b/src/ppc/macro-assembler-ppc.cc |
@@ -2960,6 +2960,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 |