Index: src/x64/builtins-x64.cc |
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc |
index e550835d42b4e6267817e8959cd542f722172243..eaae88aa3780639d30a27601499595a17a9e7701 100644 |
--- a/src/x64/builtins-x64.cc |
+++ b/src/x64/builtins-x64.cc |
@@ -1780,6 +1780,9 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { |
// Call the entry point. |
__ bind(&invoke); |
+ __ movp(rax, rbx); |
+ // rax : expected number of arguments |
+ // rdi: function (passed through to callee) |
__ call(rdx); |
// Store offset of return address for deoptimizer. |