Commit 1e948174 authored by Thibaud Michaud's avatar Thibaud Michaud Committed by V8 LUCI CQ

[wasm][liftoff] Fix stack move width for full pointers

R=jkummerow@chromium.org

Bug: chromium:1307946
Change-Id: I5827f6ce3e854b440c027f8f4862f5a43b088e01
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3553111Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Thibaud Michaud <thibaudm@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79647}
parent 8c94b7ec
......@@ -872,7 +872,12 @@ void LiftoffAssembler::MoveStackValue(uint32_t dst_offset, uint32_t src_offset,
DCHECK_NE(dst_offset, src_offset);
Operand dst = liftoff::GetStackSlot(dst_offset);
Operand src = liftoff::GetStackSlot(src_offset);
switch (element_size_log2(kind)) {
size_t size = element_size_log2(kind);
if (kind == kRef || kind == kOptRef || kind == kRtt) {
// Pointers are uncompressed on the stack!
size = kSystemPointerSizeLog2;
}
switch (size) {
case 2:
movl(kScratchRegister, src);
movl(dst, kScratchRegister);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment