Open Bug 1866644 Opened 10 months ago Updated 9 months ago

Generate CommonPropertyNames.h from more structured data source

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

ASSIGNED

People

(Reporter: arai, Assigned: arai)

References

(Blocks 2 open bugs)

Details

As a preparation for bug 1866643, it's better dynamically generating CommonPropertyNames.h from more structured, easy-to-ready, and easy-to-maintain data source.

the header can be generated during build, with python script.

while working on this, I've found multiple obsolete entries in CommonPropertyNames.h,
which is hard to notice because of the current style that all items are put into single sorted list.

it's better storing the information for each prototype or feature, and generate a list from it.

we could also look into Symbols and ProtoKeys at the same time.

See Also: → 1768634

here's prototype that uses python's dictionary as a data source
https://treeherder.mozilla.org/jobs?repo=try&revision=b740130edd638336291ceb004b541a4cae1bb68c

We could use WebIDL as a data source, that will also make it possible to auto-generate the boilerplate for the built-ins.

Blocks: 1872226
You need to log in before you can comment on or make changes to this bug.