Skip to content

Commit 4e3d9cb

Browse files
committed
Bug 1841082: Don't unlink empty IC chain r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D182530
1 parent 74d3b8a commit 4e3d9cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

js/src/jit/WarpOracle.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,9 @@ AbortReasonOr<bool> WarpScriptOracle::maybeInlineCall(
10321032
// If the target script can't be warp-compiled, mark it as
10331033
// uninlineable, clean up, and fall through to the non-inlined path.
10341034
ICEntry* entry = icScript_->icEntryForStub(fallbackStub);
1035-
fallbackStub->unlinkStub(cx_->zone(), entry, /*prev=*/nullptr, stub);
1035+
if (entry->firstStub() == stub) {
1036+
fallbackStub->unlinkStub(cx_->zone(), entry, /*prev=*/nullptr, stub);
1037+
}
10361038
targetScript->setUninlineable();
10371039
info_->inlineScriptTree()->removeCallee(inlineScriptTree);
10381040
if (isTrialInlined) {

0 commit comments

Comments
 (0)