Commit bc3ef802 authored by Camillo's avatar Camillo Committed by V8 LUCI CQ

[maglev] CheckMaps: Deopt if the object is a Smi

Bug: v8:7700
Change-Id: Ib5b6b570829cfb7de9c61115b45bb37437c70dde
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3702804Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/main@{#81159}
parent 3366abb2
......@@ -622,6 +622,10 @@ void CheckMaps::AllocateVreg(MaglevVregAllocationState* vreg_state,
void CheckMaps::GenerateCode(MaglevCodeGenState* code_gen_state,
const ProcessingState& state) {
Register object = ToRegister(actual_map_input());
Condition is_smi = __ CheckSmi(object);
EmitEagerDeoptIf(is_smi, code_gen_state, this);
RegList temps = temporaries();
Register map_tmp = temps.PopFirst();
......
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