Index: src/x64/builtins-x64.cc |
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc |
index 4730ed14d59142c9fd3d532de071ccd4a1a8c99b..33ff31b09c74cb622bd2d25a5644d7f4c0353d86 100644 |
--- a/src/x64/builtins-x64.cc |
+++ b/src/x64/builtins-x64.cc |
@@ -944,9 +944,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)); |