• jgruber's avatar
    [regexp] RegExp.prototype.replace fast-paths · 7a75f34b
    jgruber authored
    This CL adds two new fast-paths for RegExp.prototype.replace in the case
    that the regexp itself is an unmodified JSRegExp instance and the
    replace argument is callable. Such cases call directly into runtime.
    
    This could be improved even further by turning the relevant runtime
    functions into inline TurboFan.
    
    BUG=v8:5339
    
    Review-Url: https://codereview.chromium.org/2415663007
    Cr-Commit-Position: refs/heads/master@{#40381}
    7a75f34b
runtime-regexp.cc 59.2 KB