Closed
Bug 1859207
Opened 1 year ago
Closed 1 year ago
Assert FunctionFlags integrity between FunctionKind and other bits
Categories
(Core :: JavaScript Engine, task, P3)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
120 Branch
Tracking | Status | |
---|---|---|
firefox120 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
References
Details
Attachments
(1 file)
In order to handle native getter/setter with lazy function name, we need to add some flag, or modify existing flag to FunctionFlags
.
FunctionFlags
and its FunctionKind
are used both from native function and interpreted function, and it's better clarifying which bit or kind is used by which one.
for example, FunctionKind::Getter
seems to be used only from interpreted function, and
native getter/setter defined with JSPropertySpec
uses FunctionKind::NormalFunction
, which is confusing, and it at least requires comment and possibly assertions.
This will clarify which bits are used by which case, and also allows compressing flag bits, by sharing single bit from different kind for different purpose.
Assignee | ||
Comment 1•1 year ago
|
||
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/4091bed4a0aa
Assert FunctionFlags integrity between FunctionKind and other bits. r=jandem
Comment 3•1 year ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox120:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•