Skip to content

Commit

Permalink
Remove redundant cmn in JIT ProhibitInvoke check
Browse files Browse the repository at this point in the history
Summary: This is already emitted by `emit_sh_ljs_is_undefined`.

Reviewed By: avp

Differential Revision: D64667265

fbshipit-source-id: 77bb93ddcef022a67d8a66a04693369679abeb04
  • Loading branch information
neildhar authored and facebook-github-bot committed Oct 21, 2024
1 parent 25d892b commit b74bd2c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/VM/JIT/arm64/JitEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,6 @@ void Emitter::frameSetup(
a64::x1, StackFrameLayout::NewTarget * (int)sizeof(SHLegacyValue)));
// Compare new.target against undefined.
emit_sh_ljs_is_undefined(a, a64::x1, a64::x1);
a.cmn(a64::x1, -HVETag_Undefined);

if (prohibitInvoke == ProhibitInvoke::Call) {
// If regular calls are prohibited, then we jump to throwInvalidInvoke if
Expand Down

0 comments on commit b74bd2c

Please sign in to comment.