Index: src/x64/builtins-x64.cc |
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc |
index a6dc0037098063244db9f6ee3c18bf9a8caa1e8c..f30cd0622456ab45b0aaf64de498ff573ad7646a 100644 |
--- a/src/x64/builtins-x64.cc |
+++ b/src/x64/builtins-x64.cc |
@@ -896,9 +896,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)); |