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/s390/macro-assembler-s390.cc

Issue 1865443002: S390: Fix LA overflow in return sequence (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: get ride of r0 Created 4 years, 8 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/s390/macro-assembler-s390.cc
diff --git a/src/s390/macro-assembler-s390.cc b/src/s390/macro-assembler-s390.cc
index 6ae50eea082f3505172048aab719ab5a307aaca9..8465fd71c618d7ec4f4b462b372db3856aa6cf53 100644
--- a/src/s390/macro-assembler-s390.cc
+++ b/src/s390/macro-assembler-s390.cc
@@ -154,7 +154,14 @@ void MacroAssembler::Call(Handle<Code> code, RelocInfo::Mode rmode,
void MacroAssembler::Drop(int count) {
if (count > 0) {
- la(sp, MemOperand(sp, count * kPointerSize));
+ int total = count * kPointerSize;
+ if (is_uint12(total)) {
+ la(sp, MemOperand(sp, total));
+ } else if (is_int20(total)) {
+ lay(sp, MemOperand(sp, total));
+ } else {
+ AddP(sp, Operand(total));
+ }
}
}
« 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