Commit 90f5f22b authored by Junliang Yan's avatar Junliang Yan Committed by V8 LUCI CQ

ppc: [liftoff] implement LoadReturnStackSlot

Change-Id: I2ba262ae96f3205e8f2b15f68e0d0307bd244c34
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2992891Reviewed-by: 's avatarMilad Fa <mfarazma@redhat.com>
Commit-Queue: Junliang Yan <junyan@redhat.com>
Cr-Commit-Position: refs/heads/master@{#75417}
parent 5667bfe5
......@@ -522,7 +522,39 @@ void LiftoffAssembler::StoreCallerFrameSlot(LiftoffRegister src,
void LiftoffAssembler::LoadReturnStackSlot(LiftoffRegister dst, int offset,
ValueKind kind) {
bailout(kUnsupportedArchitecture, "LoadReturnStackSlot");
switch (kind) {
case kI32: {
#if defined(V8_TARGET_BIG_ENDIAN)
LoadS32(dst.gp(), MemOperand(sp, offset + 4), r0);
break;
#else
LoadS32(dst.gp(), MemOperand(sp, offset), r0);
break;
#endif
}
case kRef:
case kRtt:
case kOptRef:
case kRttWithDepth:
case kI64: {
LoadU64(dst.gp(), MemOperand(sp, offset), r0);
break;
}
case kF32: {
LoadF32(dst.fp(), MemOperand(sp, offset), r0);
break;
}
case kF64: {
LoadF64(dst.fp(), MemOperand(sp, offset), r0);
break;
}
case kS128: {
bailout(kSimd, "simd load");
break;
}
default:
UNREACHABLE();
}
}
#ifdef V8_TARGET_BIG_ENDIAN
......
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