• Caitlin Potter's avatar
    Reland "[builtins] Implement Object.fromEntries" · 8a9cbdac
    Caitlin Potter authored
    This is a reland of a5336471
    
    Original change's description:
    > [builtins] Implement Object.fromEntries
    > 
    > Adds the Object.fromEntries() method behind
    > --harmony-object-from-entries.
    > 
    > 
> Includes an initial implementation of the new experimental builtin
    > Object.fromEntries implemented by Daniel Clifford, and
    > has been modified by Caitlin Potter to support a fast case to skip
    > the iterator protocol when it can be done unobservably in common cases.
    > 
    > There are some incidental changes: A number of CSA macros have been
    > updated to use TNodes, and some Context arguments have been
    > re-arranged to be implicit in Torque.
> 
    > 
    > There are also a number of mjsunit tests written mirroring and
    > expanding on the test262 tests.
    > 
    > BUG=v8:8021
    > 
    > Change-Id: I1c12bee8a2f98c6297b77d5d723910a5e3b630cc
    > Co-authored-by: Daniel Clifford <danno@chromium.org>
    > Co-authored-by: Caitlin Potter <caitp@igalia.com>
    > Reviewed-on: https://chromium-review.googlesource.com/c/1337585
    > Commit-Queue: Daniel Clifford <danno@chromium.org>
    > Reviewed-by: Daniel Clifford <danno@chromium.org>
    > Reviewed-by: Tobias Tebbi <tebbi@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#57667}
    
    Bug: v8:8021
    Change-Id: I706e2d87bfc2f688e833c1b7d40ca82f5d80f5a2
    Reviewed-on: https://chromium-review.googlesource.com/c/1346630Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
    Commit-Queue: Caitlin Potter <caitp@igalia.com>
    Cr-Commit-Position: refs/heads/master@{#57798}
    8a9cbdac
object-fromentries.js 11.9 KB