• dehrenberg's avatar
    Factor out core of Array.forEach and .every, for use in TypedArrays · 1ebbaaa0
    dehrenberg authored
    The idea is to make this the model for future TypedArray methods.
    A possible downside could be lower array method performance
    if everything gets polymorhpic (but if enough inlining happens, it
    should still be fast), but on the upside, this change means that
    the TypedArray methods won't create as much code size bloat.
    
    BUG=v8:3578
    LOG=Y
    R=adamk@chromium.org
    CC=arv@chromium.org, caitpotter88@gmail.com
    
    Review URL: https://codereview.chromium.org/1133503003
    
    Cr-Commit-Position: refs/heads/master@{#28351}
    1ebbaaa0
array.js 47.1 KB