Commit 4c5a2b12 authored by Junliang Yan's avatar Junliang Yan Committed by V8 LUCI CQ

ppc: [liftoff] implement smi_check

Change-Id: Ifc75747a179486b6fe173c2d34f72f66c1918d88
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3124813Reviewed-by: 's avatarMilad Fa <mfarazma@redhat.com>
Commit-Queue: Junliang Yan <junyan@redhat.com>
Cr-Commit-Position: refs/heads/main@{#76544}
parent 938eead7
...@@ -1222,7 +1222,9 @@ void LiftoffAssembler::LoadTransform(LiftoffRegister dst, Register src_addr, ...@@ -1222,7 +1222,9 @@ void LiftoffAssembler::LoadTransform(LiftoffRegister dst, Register src_addr,
void LiftoffAssembler::emit_smi_check(Register obj, Label* target, void LiftoffAssembler::emit_smi_check(Register obj, Label* target,
SmiCheckMode mode) { SmiCheckMode mode) {
bailout(kUnsupportedArchitecture, "emit_smi_check"); TestIfSmi(obj, r0);
Condition condition = mode == kJumpOnSmi ? eq : ne;
b(condition, target, cr0); // branch if SMI
} }
void LiftoffAssembler::LoadLane(LiftoffRegister dst, LiftoffRegister src, void LiftoffAssembler::LoadLane(LiftoffRegister dst, LiftoffRegister src,
......
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