Commit 36663a0a authored by Liu Yu's avatar Liu Yu Committed by V8 LUCI CQ

[loong64][mips64][safepoints] Various refactors

Port commit c7e47c30

Bug: v8:7700
Change-Id: I59d5e483867118fa8efc50cc52e00bd3321fa01a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3487428
Auto-Submit: Yu Liu <liuyu@loongson.cn>
Reviewed-by: 's avatarZhao Jiazhong <zhaojiazhong-hf@loongson.cn>
Commit-Queue: Zhao Jiazhong <zhaojiazhong-hf@loongson.cn>
Cr-Commit-Position: refs/heads/main@{#79245}
parent de436c69
......@@ -2635,15 +2635,14 @@ void LiftoffAssembler::PopRegisters(LiftoffRegList regs) {
addi_d(sp, sp, gp_offset);
}
void LiftoffAssembler::RecordSpillsInSafepoint(Safepoint& safepoint,
LiftoffRegList all_spills,
LiftoffRegList ref_spills,
int spill_offset) {
void LiftoffAssembler::RecordSpillsInSafepoint(
SafepointTableBuilder::Safepoint& safepoint, LiftoffRegList all_spills,
LiftoffRegList ref_spills, int spill_offset) {
int spill_space_size = 0;
while (!all_spills.is_empty()) {
LiftoffRegister reg = all_spills.GetFirstRegSet();
if (ref_spills.has(reg)) {
safepoint.DefinePointerSlot(spill_offset);
safepoint.DefineTaggedStackSlot(spill_offset);
}
all_spills.clear(reg);
++spill_offset;
......
......@@ -2956,15 +2956,14 @@ void LiftoffAssembler::PopRegisters(LiftoffRegList regs) {
addiu(sp, sp, gp_offset);
}
void LiftoffAssembler::RecordSpillsInSafepoint(Safepoint& safepoint,
LiftoffRegList all_spills,
LiftoffRegList ref_spills,
int spill_offset) {
void LiftoffAssembler::RecordSpillsInSafepoint(
SafepointTableBuilder::Safepoint& safepoint, LiftoffRegList all_spills,
LiftoffRegList ref_spills, int spill_offset) {
int spill_space_size = 0;
while (!all_spills.is_empty()) {
LiftoffRegister reg = all_spills.GetFirstRegSet();
if (ref_spills.has(reg)) {
safepoint.DefinePointerSlot(spill_offset);
safepoint.DefineTaggedStackSlot(spill_offset);
}
all_spills.clear(reg);
++spill_offset;
......
......@@ -3122,15 +3122,14 @@ void LiftoffAssembler::PopRegisters(LiftoffRegList regs) {
daddiu(sp, sp, gp_offset);
}
void LiftoffAssembler::RecordSpillsInSafepoint(Safepoint& safepoint,
LiftoffRegList all_spills,
LiftoffRegList ref_spills,
int spill_offset) {
void LiftoffAssembler::RecordSpillsInSafepoint(
SafepointTableBuilder::Safepoint& safepoint, LiftoffRegList all_spills,
LiftoffRegList ref_spills, int spill_offset) {
int spill_space_size = 0;
while (!all_spills.is_empty()) {
LiftoffRegister reg = all_spills.GetFirstRegSet();
if (ref_spills.has(reg)) {
safepoint.DefinePointerSlot(spill_offset);
safepoint.DefineTaggedStackSlot(spill_offset);
}
all_spills.clear(reg);
++spill_offset;
......
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