Closed Bug 1605200 Opened 4 years ago Closed 4 years ago

Cleanup JSFunction FunctionFlags

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: tcampbell, Assigned: tcampbell)

References

Details

Attachments

(3 files)

The JSFunction FunctionFlags should be cleaned up for readability.

Fix the formatting, commenting, ordering of the flags. Also move the function
kind bits to the beginning of the flag word.

Cleanup the aliases we use for constructing different types of functions.
Always specify the function kind explicitly for readability.

Depends on D57851

Also add this helper to FunctionBox for consistency.

Depends on D57852

Blocks: 1605207
Pushed by tcampbell@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/be05ad009c21
Cleanup JSFunction FunctionFlags. r=jandem
https://hg.mozilla.org/integration/autoland/rev/a14f6d02534c
Cleanup the derived JSFunction flags. r=jandem
https://hg.mozilla.org/integration/autoland/rev/ad5fcfb30860
Use JSFunction::isClassConstructor shorthand. r=jandem
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: