Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(895)

Unified Diff: src/compiler/linkage.cc

Issue 1376173003: [arm64] Use SP-offset rather than FP-offset. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/frame.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/linkage.cc
diff --git a/src/compiler/linkage.cc b/src/compiler/linkage.cc
index c3f6074fa635453b5945947e60246793f981fb26..306224bc8bec6e657eee3174ad190e2652945d1c 100644
--- a/src/compiler/linkage.cc
+++ b/src/compiler/linkage.cc
@@ -205,10 +205,8 @@ FrameOffset Linkage::GetFrameOffset(int spill_slot, Frame* frame) const {
} else {
// No frame. Retrieve all parameters relative to stack pointer.
DCHECK(spill_slot < 0); // Must be a parameter.
- int offsetSpToFp =
- kPointerSize * (StandardFrameConstants::kFixedSlotCountAboveFp -
- frame->GetTotalFrameSlotCount());
- return FrameOffset::FromStackPointer(offset - offsetSpToFp);
+ int sp_offset = offset + (frame->GetSpToFpSlotCount() * kPointerSize);
+ return FrameOffset::FromStackPointer(sp_offset);
}
}
« no previous file with comments | « src/compiler/frame.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698