Commit 5361950a authored by Junliang Yan's avatar Junliang Yan Committed by V8 LUCI CQ

ppc: rename LoadByte to LoadU8

Change-Id: Id1a468a51c0f37c99bb36b388aaa803ae6ed8516
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2905193Reviewed-by: 's avatarMilad Fa <mfarazma@redhat.com>
Commit-Queue: Junliang Yan <junyan@redhat.com>
Cr-Commit-Position: refs/heads/master@{#74670}
parent da300746
...@@ -363,7 +363,7 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) { ...@@ -363,7 +363,7 @@ void Builtins::Generate_ResumeGeneratorTrampoline(MacroAssembler* masm) {
ExternalReference debug_hook = ExternalReference debug_hook =
ExternalReference::debug_hook_on_function_call_address(masm->isolate()); ExternalReference::debug_hook_on_function_call_address(masm->isolate());
__ Move(scratch, debug_hook); __ Move(scratch, debug_hook);
__ LoadByte(scratch, MemOperand(scratch), r0); __ LoadU8(scratch, MemOperand(scratch), r0);
__ extsb(scratch, scratch); __ extsb(scratch, scratch);
__ CmpSmiLiteral(scratch, Smi::zero(), r0); __ CmpSmiLiteral(scratch, Smi::zero(), r0);
__ bne(&prepare_step_in_if_stepping); __ bne(&prepare_step_in_if_stepping);
...@@ -2436,7 +2436,7 @@ void Builtins::Generate_WasmCompileLazy(MacroAssembler* masm) { ...@@ -2436,7 +2436,7 @@ void Builtins::Generate_WasmCompileLazy(MacroAssembler* masm) {
// Check the comments under crrev.com/c/2645694 for more details. // Check the comments under crrev.com/c/2645694 for more details.
Label push_empty_simd, simd_pushed; Label push_empty_simd, simd_pushed;
__ Move(ip, ExternalReference::supports_wasm_simd_128_address()); __ Move(ip, ExternalReference::supports_wasm_simd_128_address());
__ LoadByte(ip, MemOperand(ip), r0); __ LoadU8(ip, MemOperand(ip), r0);
__ cmpi(ip, Operand::Zero()); // If > 0 then simd is available. __ cmpi(ip, Operand::Zero()); // If > 0 then simd is available.
__ ble(&push_empty_simd); __ ble(&push_empty_simd);
__ MultiPushV128(simd_regs); __ MultiPushV128(simd_regs);
...@@ -2464,7 +2464,7 @@ void Builtins::Generate_WasmCompileLazy(MacroAssembler* masm) { ...@@ -2464,7 +2464,7 @@ void Builtins::Generate_WasmCompileLazy(MacroAssembler* masm) {
// Restore registers. // Restore registers.
Label pop_empty_simd, simd_popped; Label pop_empty_simd, simd_popped;
__ Move(ip, ExternalReference::supports_wasm_simd_128_address()); __ Move(ip, ExternalReference::supports_wasm_simd_128_address());
__ LoadByte(ip, MemOperand(ip), r0); __ LoadU8(ip, MemOperand(ip), r0);
__ cmpi(ip, Operand::Zero()); // If > 0 then simd is available. __ cmpi(ip, Operand::Zero()); // If > 0 then simd is available.
__ ble(&pop_empty_simd); __ ble(&pop_empty_simd);
__ MultiPopV128(simd_regs); __ MultiPopV128(simd_regs);
......
...@@ -1466,7 +1466,7 @@ void MacroAssembler::CheckDebugHook(Register fun, Register new_target, ...@@ -1466,7 +1466,7 @@ void MacroAssembler::CheckDebugHook(Register fun, Register new_target,
ExternalReference debug_hook_active = ExternalReference debug_hook_active =
ExternalReference::debug_hook_on_function_call_address(isolate()); ExternalReference::debug_hook_on_function_call_address(isolate());
Move(r7, debug_hook_active); Move(r7, debug_hook_active);
LoadByte(r7, MemOperand(r7), r0); LoadU8(r7, MemOperand(r7), r0);
extsb(r7, r7); extsb(r7, r7);
CmpSmiLiteral(r7, Smi::zero(), r0); CmpSmiLiteral(r7, Smi::zero(), r0);
beq(&skip_hook); beq(&skip_hook);
...@@ -2865,13 +2865,13 @@ void MacroAssembler::StoreHalfWord(Register src, const MemOperand& mem, ...@@ -2865,13 +2865,13 @@ void MacroAssembler::StoreHalfWord(Register src, const MemOperand& mem,
// Variable length depending on whether offset fits into immediate field // Variable length depending on whether offset fits into immediate field
// MemOperand currently only supports d-form // MemOperand currently only supports d-form
void MacroAssembler::LoadByte(Register dst, const MemOperand& mem, void MacroAssembler::LoadU8(Register dst, const MemOperand& mem,
Register scratch) { Register scratch) {
Register base = mem.ra(); Register base = mem.ra();
int offset = mem.offset(); int offset = mem.offset();
if (!is_int16(offset)) { if (!is_int16(offset)) {
LoadIntLiteral(scratch, offset); mov(scratch, Operand(offset));
lbzx(dst, MemOperand(base, scratch)); lbzx(dst, MemOperand(base, scratch));
} else { } else {
lbz(dst, mem); lbz(dst, mem);
......
...@@ -792,7 +792,7 @@ class V8_EXPORT_PRIVATE MacroAssembler : public TurboAssembler { ...@@ -792,7 +792,7 @@ class V8_EXPORT_PRIVATE MacroAssembler : public TurboAssembler {
void LoadS16(Register dst, const MemOperand& mem, Register scratch = no_reg); void LoadS16(Register dst, const MemOperand& mem, Register scratch = no_reg);
void StoreHalfWord(Register src, const MemOperand& mem, Register scratch); void StoreHalfWord(Register src, const MemOperand& mem, Register scratch);
void LoadByte(Register dst, const MemOperand& mem, Register scratch); void LoadU8(Register dst, const MemOperand& mem, Register scratch);
void StoreByte(Register src, const MemOperand& mem, Register scratch); void StoreByte(Register src, const MemOperand& mem, Register scratch);
void LoadDoubleU(DoubleRegister dst, const MemOperand& mem, void LoadDoubleU(DoubleRegister dst, const MemOperand& mem,
......
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