Warp: transpile getter/setter calls
Categories
(Core :: JavaScript Engine: JIT, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox82 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
Details
Attachments
(6 external files)
| Assignee | ||
Comment 1•6 years ago
|
||
We had different CacheIR ops for receiver-is-object and receiver-is-Value. This
patch unifies them by always using the receiver-is-Value version. This makes it
easier to transpile in Warp.
When generating CacheIR, pass and use the receiverId (Value) in a few places
instead of objId. This also lets us support non-object receivers for super.prop
There are two places where this doesn't work and boxObject is used to convert
from object-id to value-id. In the future this could be a dedicated CacheIR op
instead of a cast, but that would require BaselineInspector changes.
| Assignee | ||
Comment 2•6 years ago
|
||
This is for use by the transpiler, similar to GuardSpecificFunction.
Depends on D88264
| Assignee | ||
Comment 3•6 years ago
|
||
Depends on D88265
| Assignee | ||
Comment 4•6 years ago
|
||
We can reuse most of the code in maybeCallTarget for creating a WrappedFunction
from callee/nargs/flags, so that was factored out as a helper function.
Instead of the "stack spoofing" that IonBuilder does (see ensureHasSlots call),
add initForGetterCall to CallInfo so we can set callee/thisv directly.
Depends on D88266
| Assignee | ||
Comment 5•6 years ago
|
||
Add nargsAndFlags, add sameRealm flag to CallNativeSetter.
Depends on D88267
| Assignee | ||
Comment 6•6 years ago
|
||
Again similar to the IonBuilder code but without the stack spoofing.
IonBuilder uses BytecodeIsPopped(pc) for ignoresReturnValue but the return value
of a setter is never used so we can just pass true.
Depends on D88268
Comment 8•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/fc681a8e552e
https://hg.mozilla.org/mozilla-central/rev/d01415c7707e
https://hg.mozilla.org/mozilla-central/rev/e25e289e016c
https://hg.mozilla.org/mozilla-central/rev/a86d23fda071
https://hg.mozilla.org/mozilla-central/rev/73140c7a14a4
https://hg.mozilla.org/mozilla-central/rev/04787b6cf6a3
Description
•