Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index c31b5ac379e033072bf08a8c1bb5a5f050d6e860..a80feeb778365762451f037f20716c1bc5945abb 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -4786,6 +4786,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()) { |