• jgruber's avatar
    [regexp] Use consistent map checks for fast paths · bac992a1
    jgruber authored
    These map checks were implemented for TF code already. This CL makes
    sure that parts implemented in C++ follow the same logic, which is:
    
    An object is an unmodified regexp if:
    1) it's a receiver,
    2) its map is the initial regexp map,
    3) its prototype is a receiver,
    4) and its prototype's map is the initial prototype's initial map.
    
    We can now be smarter in @@replace and @@split since checking maps
    (unlike the previous check of RegExp.prototype.exec) is not observable,
    so we can perform fast-path checks at a time of our choosing.
    
    BUG=v8:5339,v8:5434,v8:5123
    
    Review-Url: https://chromiumcodereview.appspot.com/2434983002
    Cr-Commit-Position: refs/heads/master@{#40495}
    bac992a1
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
fuzzer Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
simdjs Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...
perf.gyp Loading commit data...
perf.isolate Loading commit data...