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) {
ExternalReference debug_hook =
ExternalReference::debug_hook_on_function_call_address(masm->isolate());
__ Move(scratch, debug_hook);
__ LoadByte(scratch, MemOperand(scratch), r0);
__ LoadU8(scratch, MemOperand(scratch), r0);
__ extsb(scratch, scratch);
__ CmpSmiLiteral(scratch, Smi::zero(), r0);
__ bne(&prepare_step_in_if_stepping);
......@@ -2436,7 +2436,7 @@ void Builtins::Generate_WasmCompileLazy(MacroAssembler* masm) {
// Check the comments under crrev.com/c/2645694 for more details.
Label push_empty_simd, simd_pushed;
__ 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.
__ ble(&push_empty_simd);
__ MultiPushV128(simd_regs);
......@@ -2464,7 +2464,7 @@ void Builtins::Generate_WasmCompileLazy(MacroAssembler* masm) {
// Restore registers.
Label pop_empty_simd, simd_popped;
__ 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.
__ ble(&pop_empty_simd);
__ MultiPopV128(simd_regs);
......
......@@ -1466,7 +1466,7 @@ void MacroAssembler::CheckDebugHook(Register fun, Register new_target,
ExternalReference debug_hook_active =
ExternalReference::debug_hook_on_function_call_address(isolate());
Move(r7, debug_hook_active);
LoadByte(r7, MemOperand(r7), r0);
LoadU8(r7, MemOperand(r7), r0);
extsb(r7, r7);
CmpSmiLiteral(r7, Smi::zero(), r0);
beq(&skip_hook);
......@@ -2865,13 +2865,13 @@ void MacroAssembler::StoreHalfWord(Register src, const MemOperand& mem,
// Variable length depending on whether offset fits into immediate field
// MemOperand currently only supports d-form
void MacroAssembler::LoadByte(Register dst, const MemOperand& mem,
Register scratch) {
void MacroAssembler::LoadU8(Register dst, const MemOperand& mem,
Register scratch) {
Register base = mem.ra();
int offset = mem.offset();
if (!is_int16(offset)) {
LoadIntLiteral(scratch, offset);
mov(scratch, Operand(offset));
lbzx(dst, MemOperand(base, scratch));
} else {
lbz(dst, mem);
......
......@@ -792,7 +792,7 @@ class V8_EXPORT_PRIVATE MacroAssembler : public TurboAssembler {
void LoadS16(Register dst, const MemOperand& mem, Register scratch = no_reg);
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 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