Closed Bug 1754405 Opened 4 years ago Closed 4 years ago

Remove remaining JSID_* APIs

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

Details

Attachments

(15 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
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

It's now pretty straight-forward to get rid of the remaining C-style APIs and clean up PropertyKey.

Depends on D138273

It's very common to call JS::GetWellKnownSymbol and then creating a PropertyKey.
We can make this a bit more ergonomic with this API.

Depends on D138276

Depends on D138277

Depends on D138280

Also change from size_t to uintptr_t.

Depends on D138281

Keywords: leave-open
Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f6d164570075 part 1 - Remove JSID_IS_STRING/JSID_TO_STRING. r=evilpie https://hg.mozilla.org/integration/autoland/rev/6f6b6a6dd8f7 part 2 - Remove JSID_IS_INT/JSID_TO_INT. r=evilpie https://hg.mozilla.org/integration/autoland/rev/a593faefbad7 part 3 - Remove JSID_IS_VOID. r=evilpie https://hg.mozilla.org/integration/autoland/rev/e4f4811ae8ff part 4 - Remove JSID_TO_LINEAR_STRING. r=evilpie
Attachment #9263041 - Attachment description: Bug 1754405 part 8 - Rename JSID_VOID to JS::VoidPropertyKey. r?evilpie! → Bug 1754405 part 8 - Rename JSID_VOID to PropertyKey::Void(). r?evilpie!
Attachment #9263043 - Attachment description: Bug 1754405 part 10 - Add PropertyKey::Type, remove JSID_BITS. r?evilpie! → Bug 1754405 part 10 - Remove JSID_BITS. r?evilpie!
Attachment #9263047 - Attachment description: Bug 1754405 part 14 - Fix gdb pretty printers. r?evilpie! → Bug 1754405 part 15 - Fix gdb pretty printers. r?evilpie!
Keywords: leave-open
Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/04fd07f96d38 part 5 - Remove INT_FITS_IN_JSID/INT_TO_JSID. r=evilpie https://hg.mozilla.org/integration/autoland/rev/38128ccff550 part 6 - Add JS::GetWellKnownSymbolKey. r=evilpie https://hg.mozilla.org/integration/autoland/rev/75e45f7f6059 part 7 - Remove SYMBOL_TO_JSID. r=evilpie https://hg.mozilla.org/integration/autoland/rev/b74cec4cdb71 part 8 - Rename JSID_VOID to PropertyKey::Void(). r=evilpie https://hg.mozilla.org/integration/autoland/rev/e9eb1c19565c part 9 - Add PropertyKey::asRawBits. r=evilpie https://hg.mozilla.org/integration/autoland/rev/0fadeefca66a part 10 - Remove JSID_BITS. r=evilpie https://hg.mozilla.org/integration/autoland/rev/0a7a67b4c67e part 11 - Make PropertyKey bits field private. r=evilpie https://hg.mozilla.org/integration/autoland/rev/7b0041c599de part 12 - Move type tag constants into PropertyKey. r=evilpie https://hg.mozilla.org/integration/autoland/rev/8ea332be8add part 13 - Move min/max int constants into PropertyKey. r=evilpie https://hg.mozilla.org/integration/autoland/rev/60ad9ac4de32 part 14 - Rename PropertyKey::fromNonIntAtom to PropertyKey::NonIntAtom. r=evilpie https://hg.mozilla.org/integration/autoland/rev/b531d439f265 part 15 - Fix gdb pretty printers. r=evilpie
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: