Support generators in self-hosted code
Categories
(Core :: JavaScript Engine, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox79 | --- | fixed |
People
(Reporter: avandolder, Assigned: jorendorff)
References
Details
Attachments
(6 files)
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review |
Generator functions currently can't be defined in self-hosted code, as they requires the Iterator prototype to be already defined, leading to the following error when attempting to run the JS console:
Assertion failure: shape, at /js/src/vm/SelfHosting.cpp:2763
| Assignee | ||
Comment 1•6 years ago
|
||
The first hurdle is to stop giving prototypes to self-hosted functions that live in the self-hosted realm. That part is easy.
The second hurdle is to make JSFunction::generatorKind() work for lazy self-hosted functions.
| Assignee | ||
Comment 2•6 years ago
|
||
| Assignee | ||
Comment 3•6 years ago
|
||
Depends on D75219
| Assignee | ||
Comment 4•6 years ago
|
||
Work-in-progress patches. Still failing a few warp tests, but Adam, if you apply these locally, you should be able to get a little farther at least.
| Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
| Assignee | ||
Comment 5•6 years ago
|
||
Depends on D75220
| Assignee | ||
Comment 6•6 years ago
|
||
Depends on D76336
| Assignee | ||
Comment 7•6 years ago
|
||
Depends on D76337
| Assignee | ||
Comment 8•6 years ago
|
||
Depends on D75219
Comment 10•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/c424830cdaf9
https://hg.mozilla.org/mozilla-central/rev/b0dd4d14f584
https://hg.mozilla.org/mozilla-central/rev/d119bd2522d8
https://hg.mozilla.org/mozilla-central/rev/9f6e9f146c37
https://hg.mozilla.org/mozilla-central/rev/da3acd236f47
https://hg.mozilla.org/mozilla-central/rev/8acea7464a54
Description
•