8299172: RISC-V: [TESTBUG] Fix stack alignment logic in jvmci RISCV64TestAssembler.java
Reviewed-by: fyang
This commit is contained in:
parent
19ce23c645
commit
da75de3184
@ -226,8 +226,7 @@ public class RISCV64TestAssembler extends TestAssembler {
|
||||
|
||||
@Override
|
||||
public void emitCallPrologue(CallingConvention cc, Object... prim) {
|
||||
emitGrowStack(cc.getStackSize());
|
||||
frameSize += cc.getStackSize();
|
||||
growFrame(cc.getStackSize());
|
||||
AllocatableValue[] args = cc.getArguments();
|
||||
for (int i = 0; i < args.length; i++) {
|
||||
emitLoad(args[i], prim[i]);
|
||||
@ -236,8 +235,7 @@ public class RISCV64TestAssembler extends TestAssembler {
|
||||
|
||||
@Override
|
||||
public void emitCallEpilogue(CallingConvention cc) {
|
||||
emitGrowStack(-cc.getStackSize());
|
||||
frameSize -= cc.getStackSize();
|
||||
growFrame(-cc.getStackSize());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user