• bmeurer's avatar
    [turbofan] Speculatively optimize string character access. · 9d8bd055
    bmeurer authored
    Add a protector cell for string bounds checks that is being used to
    protect speculative bounds for String.prototype.charCodeAt and
    String.prototype.charAt in TurboFan (and Crankshaft). This way we don't
    have the diamond in optimized code, which stands in the way of other
    optimizations for charCodeAt that are currently being worked on by
    petermarshall@.
    
    BUG=v8:6391
    TBR=mlippautz@chromium.org
    R=petermarshall@chromium.org
    
    Review-Url: https://codereview.chromium.org/2905623003
    Cr-Commit-Position: refs/heads/master@{#45514}
    9d8bd055
heap.h 105 KB