Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 7e482ee3fa363f42a69dd0f66f236bff274342da..8ec1af59b6e7ed353a0c29fd205d3f34d77c4e4a 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -2822,6 +2822,7 @@ void LCodeGen::DoReturn(LReturn* instr) { |
__ Ret((ToInteger32(instr->constant_parameter_count()) + 1) * kPointerSize, |
rcx); |
} else { |
+ DCHECK(info()->IsStub()); // Functions would need to drop one more value. |
Register reg = ToRegister(instr->parameter_count()); |
// The argument count parameter is a smi |
__ SmiToInteger32(reg, reg); |