Closed Bug 1816682 Opened 1 year ago Closed 1 year ago

Transpile CallClassHook

Categories

(Core :: JavaScript Engine: JIT, task, P2)

task

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(2 files)

CallClassHook is one of the few CacheIR instructions we don't transpile yet. My bound function rewrite prototype uses class hooks for bound function calls so we should just fix this.

newObjectWithCallHook() returns an object that's callable because it has call/construct
hooks. These hooks return a new object with information about the arguments passed to the
call, so that we can write tests for this more easily.

This adds an MCallBase base class that's shared with MCall. This lets us
reuse some of the MCall code for MCallClassHook.

Depends on D170070

Attachment #9318150 - Attachment description: Bug 1816682 part 1 - Add testing function for JSClass call/construct hooks. r?iain! → Bug 1816682 part 1 - Add testing function and tests for JSClass call/construct hooks. r?iain!
Pushed by jdemooij@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/46a9548d4831
part 1 - Add testing function and tests for JSClass call/construct hooks. r=iain
https://hg.mozilla.org/integration/autoland/rev/3afd6d54fc75
part 2 - Transpile CallClassHook. r=iain
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
Whiteboard: [sp3]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: