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

Unified Diff: src/crankshaft/s390/lithium-codegen-s390.cc

Issue 1843673002: S390: Fix prologue offset in GeneratePrologue (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/crankshaft/s390/lithium-codegen-s390.cc
diff --git a/src/crankshaft/s390/lithium-codegen-s390.cc b/src/crankshaft/s390/lithium-codegen-s390.cc
index 9a6c498472b89672482b26fb2c4bf9a53ad4d51f..9fc58f9d811b932348e54858946ae4cbf374256e 100644
--- a/src/crankshaft/s390/lithium-codegen-s390.cc
+++ b/src/crankshaft/s390/lithium-codegen-s390.cc
@@ -108,7 +108,8 @@ bool LCodeGen::GeneratePrologue() {
// Prologue logic requires its starting address in ip and the
// corresponding offset from the function entry. Need to add
// 4 bytes for the size of AHI/AGHI that AddP expands into.
- __ AddP(ip, ip, Operand(prologue_offset + sizeof(FourByteInstr)));
+ prologue_offset += sizeof(FourByteInstr);
+ __ AddP(ip, ip, Operand(prologue_offset));
}
info()->set_prologue_offset(prologue_offset);
if (NeedsEagerFrame()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698