• caitp's avatar
    [builtins] implement Array.prototype[@@iterator] in TFJ builtins · 86d0dd36
    caitp authored
    Implements the variations of CreateArrayIterator() in TFJ builtins
    (ArrayPrototypeValues, ArrayPrototypeEntries and ArrayPrototypeKeys), and
    provides two new Object types with numerous maps which identify certain
    behaviours, which will be useful for inlining.
    
    Removes src/js/array-iterator.js entirely
    
    Also adds support for printing Symbol literals inserted by the Parser during
    desugaring when FLAG_print_builtin_ast is set to true.
    
    BUG=v8:5388
    R=bmeurer@chromium.org, cbruni@chromium.org
    TBR=ulan@chromium.org
    
    Review-Url: https://codereview.chromium.org/2405253006
    Cr-Commit-Position: refs/heads/master@{#40373}
    86d0dd36
builtins-array.cc 97 KB