Closed Bug 1840644 Opened 2 years ago Closed 2 years ago

Sync Iterator Helpers proposal implementation to latest spec draft

Categories

(Core :: JavaScript Engine, task, P2)

task

Tracking

()

RESOLVED FIXED
117 Branch
Tracking Status
firefox116 --- wontfix
firefox117 --- fixed

People

(Reporter: anba, Assigned: anba)

References

Details

Attachments

(7 files)

No description provided.
Severity: -- → N/A
Priority: -- → P2

Add accessors for the callee and the arguments, which makes the code a bit
easier to read when compared to using the BinaryNode left and right
accessors.

[...allowContentIterWith(array, usingIterator)] was evaluated exactly the same
as [...allowContentIter(array)], i.e. the explicit iterator method usingIterator
was ignored.

  • Adds BytecodeEmitter::emitIterable() to push the iterator operands on the stack.
  • Removes some default parameters to make it more explicit when content iteration is
    disallowed.

Depends on D182232

Add allowContentIterWithNext in preparation for the next part. This operation
can be used when both the iterator and its next method have already been
computed.

Depends on D182233

More or less a complete re-implementation to match the current proposal text.
The code has been rewritten to use normal for-of loops instead of performing
manual iteration. This should make it easier to follow the implementation and
needs fewer lines of code.

Depends on D182234

Pushed by andre.bargull@gmail.com: https://hg.mozilla.org/integration/autoland/rev/a3a37fcd2c9d Part 1: Add callee and args accessors to CallNode. r=spidermonkey-reviewers,dminor https://hg.mozilla.org/integration/autoland/rev/3d8eb27c8dcf Part 2: Support allowContentIterWith in array-spread expressions. r=spidermonkey-reviewers,dminor https://hg.mozilla.org/integration/autoland/rev/567dc198af07 Part 3: Add allowContentIterWithNext for self-hosting code. r=spidermonkey-reviewers,dminor https://hg.mozilla.org/integration/autoland/rev/f8f18f75269d Part 4: Rewrite Iterator Helpers proposal to match current spec draft. r=spidermonkey-reviewers,dminor https://hg.mozilla.org/integration/autoland/rev/a15459ef243d Part 5: Replace self-hosted IteratorClose function with JSOp::CloseIter. r=spidermonkey-reviewers,dminor https://hg.mozilla.org/integration/autoland/rev/3ea9299f7ad6 Part 6: Enable Iterator Helpers tests from test262. r=spidermonkey-reviewers,dminor https://hg.mozilla.org/integration/autoland/rev/781accfc609a Part 7: Reimport test262 to apply new flags. r=spidermonkey-reviewers,dminor
Flags: needinfo?(andrebargull)
Pushed by andre.bargull@gmail.com: https://hg.mozilla.org/integration/autoland/rev/0fbebc734f3a Part 1: Add callee and args accessors to CallNode. r=spidermonkey-reviewers,dminor https://hg.mozilla.org/integration/autoland/rev/a346d4afdc4e Part 2: Support allowContentIterWith in array-spread expressions. r=spidermonkey-reviewers,dminor https://hg.mozilla.org/integration/autoland/rev/af9e47636935 Part 3: Add allowContentIterWithNext for self-hosting code. r=spidermonkey-reviewers,dminor https://hg.mozilla.org/integration/autoland/rev/6a662868b8b3 Part 4: Rewrite Iterator Helpers proposal to match current spec draft. r=spidermonkey-reviewers,dminor https://hg.mozilla.org/integration/autoland/rev/6029d99b6795 Part 5: Replace self-hosted IteratorClose function with JSOp::CloseIter. r=spidermonkey-reviewers,dminor https://hg.mozilla.org/integration/autoland/rev/ad2a1c8d112a Part 6: Enable Iterator Helpers tests from test262. r=spidermonkey-reviewers,dminor https://hg.mozilla.org/integration/autoland/rev/5b919b11b30b Part 7: Reimport test262 to apply new flags. r=spidermonkey-reviewers,dminor
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: