Index: src/compiler/c-linkage.cc |
diff --git a/src/compiler/c-linkage.cc b/src/compiler/c-linkage.cc |
index e4795ad0b29f503b9c3b7798352e4e9e5ad2f549..d8fc12624d40cf8e999e049dcbf9ebd1661ba90a 100644 |
--- a/src/compiler/c-linkage.cc |
+++ b/src/compiler/c-linkage.cc |
@@ -155,6 +155,8 @@ LinkageLocation regloc(Register reg, MachineType type) { |
// General code uses the above configuration data. |
CallDescriptor* Linkage::GetSimplifiedCDescriptor( |
Zone* zone, const MachineSignature* msig, bool set_initialize_root_flag) { |
+ DCHECK_LE(msig->parameter_count(), static_cast<size_t>(kMaxCParameters)); |
+ |
LocationSignature::Builder locations(zone, msig->return_count(), |
msig->parameter_count()); |
// Check the types of the signature. |