Index: src/x64/builtins-x64.cc |
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc |
index aa2fdc194dee55cbf19d4c21c7ec36fcec098ac7..df6acb6f0c02e61a6807cc9cd2df3719b963eff2 100644 |
--- a/src/x64/builtins-x64.cc |
+++ b/src/x64/builtins-x64.cc |
@@ -881,9 +881,9 @@ void Builtins::Generate_FunctionApply(MacroAssembler* masm) { |
// rbp[16] : function arguments |
// rbp[24] : receiver |
// rbp[32] : function |
- static const int kArgumentsOffset = 2 * kPointerSize; |
- static const int kReceiverOffset = 3 * kPointerSize; |
- static const int kFunctionOffset = 4 * kPointerSize; |
+ static const int kArgumentsOffset = kFPOnStackSize + kPCOnStackSize; |
+ static const int kReceiverOffset = kArgumentsOffset + kPointerSize; |
+ static const int kFunctionOffset = kReceiverOffset + kPointerSize; |
__ push(Operand(rbp, kFunctionOffset)); |
__ push(Operand(rbp, kArgumentsOffset)); |