• jgruber's avatar
    [regexp] Use consistent map checks for fast paths · eb10dc4c
    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@{#40501}
    eb10dc4c
Name
Last commit
Last update
..
arm Loading commit data...
arm64 Loading commit data...
ia32 Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
ppc Loading commit data...
s390 Loading commit data...
x64 Loading commit data...
x87 Loading commit data...
OWNERS Loading commit data...
bytecodes-irregexp.h Loading commit data...
interpreter-irregexp.cc Loading commit data...
interpreter-irregexp.h Loading commit data...
jsregexp-inl.h Loading commit data...
jsregexp.cc Loading commit data...
jsregexp.h Loading commit data...
regexp-ast.cc Loading commit data...
regexp-ast.h Loading commit data...
regexp-macro-assembler-irregexp-inl.h Loading commit data...
regexp-macro-assembler-irregexp.cc Loading commit data...
regexp-macro-assembler-irregexp.h Loading commit data...
regexp-macro-assembler-tracer.cc Loading commit data...
regexp-macro-assembler-tracer.h Loading commit data...
regexp-macro-assembler.cc Loading commit data...
regexp-macro-assembler.h Loading commit data...
regexp-parser.cc Loading commit data...
regexp-parser.h Loading commit data...
regexp-stack.cc Loading commit data...
regexp-stack.h Loading commit data...
regexp-utils.cc Loading commit data...
regexp-utils.h Loading commit data...