Code generation for method decorators
Categories
(Core :: JavaScript Engine, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox109 | --- | fixed |
People
(Reporter: dminor, Assigned: dminor)
References
(Blocks 1 open bug)
Details
Attachments
(4 files, 2 obsolete files)
Code generation for decorators is likely to be complicated, so we'll split it into multiple bugs. This bug covers code generation for method decorators.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
This adds a stub DecoratorEmitter to the build system.
Assignee | ||
Comment 2•2 years ago
|
||
We'll need to be able to throw a TypeError if the decorator returns something
other than a callable or undefined.
Depends on D162139
Assignee | ||
Comment 3•2 years ago
|
||
This is a basic implementation of applying a decorator to a method, leaving
many details to subsequent patches and bugs.
Depends on D162140
Assignee | ||
Comment 4•2 years ago
|
||
This implements the DecorationState object. It is used with the addInitializer
function, which will be implemented in a follow up bug.
Depends on D162141
Assignee | ||
Comment 5•2 years ago
|
||
This implements the emitter for DecoratorContext objects. The implementations of
the DecoratorAccess object and addInitializer are postponed to follow up bugs.
Depends on D162142
Updated•2 years ago
|
Assignee | ||
Comment 6•2 years ago
|
||
Depends on D162140
Updated•2 years ago
|
Comment 8•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b1336c4324c8
https://hg.mozilla.org/mozilla-central/rev/0c77dba9ef46
https://hg.mozilla.org/mozilla-central/rev/55eb595186b8
https://hg.mozilla.org/mozilla-central/rev/92f6495bff44
Description
•