Index: src/x64/frames-x64.h |
diff --git a/src/x64/frames-x64.h b/src/x64/frames-x64.h |
index 1fb77ffa6cd118597ec7029d6267c429b866f9ad..0faa3497ece68f652b74b4506330b77b0e19c218 100644 |
--- a/src/x64/frames-x64.h |
+++ b/src/x64/frames-x64.h |
@@ -56,11 +56,12 @@ class EntryFrameConstants : public AllStatic { |
static const int kXMMRegistersBlockSize = |
kXMMRegisterSize * kCalleeSaveXMMRegisters; |
static const int kCallerFPOffset = |
- -10 * kPointerSize - kXMMRegistersBlockSize; |
+ -3 * kPointerSize + -7 * kRegisterSize - kXMMRegistersBlockSize; |
#else |
- static const int kCallerFPOffset = -8 * kPointerSize; |
+ // We have 3 Push and 5 pushq in the JSEntryStub::GenerateBody. |
+ static const int kCallerFPOffset = -3 * kPointerSize + -5 * kRegisterSize; |
#endif |
- static const int kArgvOffset = 6 * kPointerSize; |
+ static const int kArgvOffset = 6 * kPointerSize; |
}; |