[riscv] Fix error for computing the slot size of element
Change-Id: I0dcfadc4cdddecb7d6cd601626a4e78a7560b581 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4144628 Reviewed-by: ji qiu <qiuji@iscas.ac.cn> Auto-Submit: Yahan Lu <yahan@iscas.ac.cn> Commit-Queue: Yahan Lu <yahan@iscas.ac.cn> Cr-Commit-Position: refs/heads/main@{#85150}
This commit is contained in:
parent
b985e8d83b
commit
e5b3790fc7
@ -4765,7 +4765,7 @@ void CodeGenerator::AssembleSwap(InstructionOperand* source,
|
||||
|
||||
AllocatedOperand CodeGenerator::Push(InstructionOperand* source) {
|
||||
auto rep = LocationOperand::cast(source)->representation();
|
||||
int new_slots = RoundUp<2>(ElementSizeInPointers(rep));
|
||||
int new_slots = ElementSizeInPointers(rep);
|
||||
RiscvOperandConverter g(this, nullptr);
|
||||
int last_frame_slot_id =
|
||||
frame_access_state_->frame()->GetTotalFrameSlotCount() - 1;
|
||||
@ -4793,7 +4793,7 @@ AllocatedOperand CodeGenerator::Push(InstructionOperand* source) {
|
||||
}
|
||||
|
||||
void CodeGenerator::Pop(InstructionOperand* dest, MachineRepresentation rep) {
|
||||
int new_slots = RoundUp<2>(ElementSizeInPointers(rep));
|
||||
int new_slots = ElementSizeInPointers(rep);
|
||||
frame_access_state()->IncreaseSPDelta(-new_slots);
|
||||
RiscvOperandConverter g(this, nullptr);
|
||||
if (dest->IsRegister()) {
|
||||
|
Loading…
Reference in New Issue
Block a user