[maglev] Use Sub instead of sub

Because the Immediate might not fit in an immediate.

Bug: v8:7700
Change-Id: Ie5efca4af40cc4b10766144a295046f99cb5f25c
Fixed: chromium:1412730
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4224462
Auto-Submit: Leszek Swirski <leszeks@chromium.org>
Reviewed-by: Victor Gomes <victorgomes@chromium.org>
Commit-Queue: Victor Gomes <victorgomes@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/main@{#85690}
This commit is contained in:
Leszek Swirski 2023-02-06 17:17:17 +01:00 committed by V8 LUCI CQ
parent 11c99c33fe
commit 32e94af866

View File

@ -431,7 +431,7 @@ void MaglevAssembler::Prologue(Graph* graph) {
remaining_stack_slots += (remaining_stack_slots % 2);
// Extend sp by the size of the remaining untagged part of the frame,
// no need to initialise these.
sub(sp, sp, Immediate(remaining_stack_slots * kSystemPointerSize));
Sub(sp, sp, Immediate(remaining_stack_slots * kSystemPointerSize));
}
}