Index: src/x64/frames-x64.h |
diff --git a/src/x64/frames-x64.h b/src/x64/frames-x64.h |
index 0faa3497ece68f652b74b4506330b77b0e19c218..b988c534623322577ec384c9b7b53e01ed0d268d 100644 |
--- a/src/x64/frames-x64.h |
+++ b/src/x64/frames-x64.h |
@@ -133,6 +133,10 @@ inline Object* JavaScriptFrame::function_slot_object() const { |
inline void StackHandler::SetFp(Address slot, Address fp) { |
+ if (kFPOnStackSize == 2 * kPointerSize) { |
+ // Zero out the high-32 bit of FP for x32 port. |
+ Memory::Address_at(slot + kPointerSize) = 0; |
+ } |
Memory::Address_at(slot) = fp; |
} |