Add setPrefValue in the JS shell
Categories
(Core :: JavaScript Engine, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox134 | --- | fixed |
People
(Reporter: rhunt, Assigned: rhunt)
Details
Attachments
(1 file)
From talking with Christian, we're hoping to be able to do some differential testing of wasm lazy tiering/inlining and that requires runtime flipping of prefs. We have a getPrefValue, but no setPrefValue. I think it should be possible to support this in the JS shell.
| Assignee | ||
Comment 1•1 year ago
|
||
Adds a setPrefValue that mirrors the getPrefValue function. It is only
available in the JS shell because the browser has its own way of setting
a pref.
I had to either define this builtin away from all the other JS pref functions
in js.cpp, or else move all the JS pref functions up in the file so this
builtin can be used in shell_functions. I chose to move them all up, but
I'm fine the other way.
I also renamed the functions from JSPref to just Pref to match the name of
the builtin, but again I can go the other way too.
Comment 3•1 year ago
|
||
Backed out for causing SM failures
Backout link: https://hg.mozilla.org/integration/autoland/rev/c0b0e3bde4400b1324a08ed035b935a0c8db7a16
Failure log -> TEST-UNEXPECTED-FAIL | js/src/jit-test/tests/wasm/max-module.js
| Assignee | ||
Comment 4•1 year ago
|
||
Unrelated test got added to the commit when I was fixing a review comment.
Comment 6•1 year ago
|
||
| bugherder | ||
Description
•