• jgruber's avatar
    [regexp] Limit ATOM regexps to patterns length <= 2 · 10817205
    jgruber authored
    This is a modified reland of 062bb7d4
    
    There's an inherent trade-off when deciding between ATOM and IRREGEXP
    regexps: IRREGEXP is faster at runtime for all but trivial short
    patterns, while ATOM regexps have a lower memory overhead.
    
    This CL is intended to help investigate impact on benchmarks and real-world
    code - if something tanks, it's easy to revert, otherwise it can be a first
    step towards a possible removal of ATOM regexps.
    
    Bug: v8:6633
    Change-Id: I8d946a7cbb398d4987b47ecba24c9faa88788d0d
    Reviewed-on: https://chromium-review.googlesource.com/599910Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Commit-Queue: Jakob Gruber <jgruber@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#47164}
    10817205
jsregexp.cc 247 KB