Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index 137c34c15b18d8288f0f69a870a55b8a4e21a485..918c90df7bd5860bd6e2bc8c9fd108e7060fd672 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -2480,6 +2480,7 @@ void MacroAssembler::CallCFunction(ExternalReference function, |
void MacroAssembler::CallCFunction(Register function, |
int num_arguments) { |
+ DCHECK_LE(num_arguments, kMaxCParameters); |
DCHECK(has_frame()); |
// Check stack alignment. |
if (emit_debug_code()) { |