• jgruber's avatar
    [string] Optimize ToDirectStringAssembler for sequential strings · 33825750
    jgruber authored
    ToDirectStringAssembler is used in StringCharCodeAt and SubString
    (which uses StringCharCodeAt internally). SubString is used all over the
    place (e.g. RegExp result construction), and is critical for benchmark
    performance.
    
    The CL introducing ToDirectStringAssembler caused a couple of
    regressions which this is intended to fix by adding a fast path for
    sequential strings.
    
    BUG=chromium:702246
    
    Review-Url: https://codereview.chromium.org/2754933003
    Cr-Commit-Position: refs/heads/master@{#43897}
    33825750
code-stub-assembler.cc 297 KB