Closed Bug 1832264 Opened 3 years ago Closed 3 years ago

Try to simplify RegExpExec handling of CCWs

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(1 file)

After the changes in bug 1831314, we still call into self-hosted code in RegExpExec to unwrap via CallNonGenericMethod. I think we can instead change this to CheckedUnwrap.

It's a cold code path, but this is simpler.

Changes ReportIncompatibleSelfHostedMethod to take a Value so that we can call
it here too, to produce the same error messages.

The cross-compartment wrapper code is tested by the builtin-exec-wrapper.js jit-test
that was added in bug 1831314 part 3.

Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/88aea7fbf651 Avoid calling back into self-hosted code in RegExpExec. r=iain
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: