Closed Bug 813996 Opened 12 years ago Closed 10 years ago

Support Array.push in parallel execution mode

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: nmatsakis, Unassigned)

References

Details

(Whiteboard: PJS)

It should be possible to execute:

    let x = [];
    for (var i = 0; i < 99; i++) x.push(i);

in parallel execution mode.

To do this right, it requires refactoring the various allocation pathways for the elements of objects to work without a JSContext* and so forth.
Blocks: PJS
Whiteboard: PJS
This was mostly done in bug 807853 / bug 829602.  You can write code like:

    let x = [];
    for (var i = 0; i < 99; i++) x[i] = i;

I am going to leave the bug open because the `push` method still doesn't work, but I will update the title.
Summary: Support array extension in parallel execution mode → Support Array.push in parallel execution mode
Assignee: general → nobody
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.