Closed Bug 1818516 Opened 1 year ago Closed 1 year ago

Refactor shell command line option processing

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: jonco, Assigned: jonco)

References

Details

Attachments

(10 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

Right now processing of shell command line options happen inline in several functions. Options are not grouped by area but are all mixed together. This would benefit from some more organisation.

Code motion only. Moves processing of options that are set prior to calling
JS_Init to their own function. (I don't know whether all of these actually
require calling before init.)

Depends on D170769

Same as previous patch, for options that are set post-init but before creating a context.

Depends on D170770

This moves the existing SetContextOptions to the end of the file with the other
option processing functions before adding to it in later patches.

Depends on D170771

Where possible, move setup of other GC options in to the new function.

Depends on D170776

Code motion only. This factors out a function to initialize the OptionParser.

Attachment #9319506 - Attachment description: Bug 1818516 - Part 10: Move other JIT option processing into SetContextJITOptions r?nbp → Bug 1818516 - Part 10: Move other parser option processing into SetContextOptions r?nbp
Pushed by jcoppeard@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9d6e8c2b8797
Part 0: Move shell options setup into a separate function r=nbp
https://hg.mozilla.org/integration/autoland/rev/9af7213c6005
Part 1: Move processing of pre-init shell global options to a separate function r=nbp
https://hg.mozilla.org/integration/autoland/rev/3884c0168cd8
Part 2: Move processing of post-init shell global options to a separate function r=nbp
https://hg.mozilla.org/integration/autoland/rev/993bef6e6474
Part 3: Move SetContextOptions to the end of the source file r=nbp
https://hg.mozilla.org/integration/autoland/rev/67d103bb6aec
Part 4: Split out Wasm options in to their own function r=nbp
https://hg.mozilla.org/integration/autoland/rev/5860f4e22343
Part 5: Split JIT options out into their own function r=nbp
https://hg.mozilla.org/integration/autoland/rev/10e1b40bac21
Part 6: Split GC options out into their own function r=nbp
https://hg.mozilla.org/integration/autoland/rev/5776938a5bfd
Part 8: Move other GC option processing into SetContextGCOptions r=nbp
https://hg.mozilla.org/integration/autoland/rev/5dd69ed2e447
Part 9: Move other Wasm option processing into SetContextWasmOptions r=nbp
https://hg.mozilla.org/integration/autoland/rev/fad377f07bd6
Part 10: Move other parser option processing into SetContextOptions r=nbp
Regressions: 1819351
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: