Open
Bug 1824088
Opened 2 years ago
Updated 2 years ago
Consider flattening chains of bound functions
Categories
(Core :: JavaScript Engine, task, P3)
Core
JavaScript Engine
Tracking
()
NEW
People
(Reporter: jandem, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [sp3])
When we're binding an already-bound function, we could be smarter and avoid the multiple levels of bound functions. This enables JIT bound function call optimizations. After the rewrite in bug 1483869 this should be possible now, so I'm filing this as future work.
What makes this annoying is that we need to preserve the original target too for instanceof
(observable Symbol.hasInstance
lookup, see this WebKit bug I filed).
Updated•2 years ago
|
Whiteboard: [sp3]
Updated•2 years ago
|
See Also: → https://mozilla-hub.atlassian.net/browse/SP3-299
You need to log in
before you can comment on or make changes to this bug.
Description
•