• Vicky Kontoura's avatar
    [web snapshot] Support RegExp · add69092
    Vicky Kontoura authored
    This CL adds support for regular expressions. To serialize a regular
    expression, the pattern and flags are extracted and serialized as
    strings.
    
    Also, JSRegExp::StringFromFlags() is introduced to allow for
    transforming back from JSRegExp::Flags to the corresponding flag string.
    To verify that this implementation is on par with
    RegExp.prototype.flags, unittests are introduced under
    regexp/regexp-unittest.cc and RegExpBuiltinsAssembler::FlagsGetter()
    is updated to include a slow path that calls JSRegExp::StringFromFlags()
    through a runtime function.
    
    Bug: v8:11525, v8:11706
    Change-Id: I9cad4c464129ba1cbf64672130d8410730d7d679
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2878751
    Commit-Queue: Vicky Kontoura <vkont@google.com>
    Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
    Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#74566}
    add69092
Name
Last commit
Last update
..
DIR_METADATA Loading commit data...
OWNERS Loading commit data...
runtime-array.cc Loading commit data...
runtime-atomics.cc Loading commit data...
runtime-bigint.cc Loading commit data...
runtime-classes.cc Loading commit data...
runtime-collections.cc Loading commit data...
runtime-compiler.cc Loading commit data...
runtime-date.cc Loading commit data...
runtime-debug.cc Loading commit data...
runtime-forin.cc Loading commit data...
runtime-function.cc Loading commit data...
runtime-futex.cc Loading commit data...
runtime-generator.cc Loading commit data...
runtime-internal.cc Loading commit data...
runtime-intl.cc Loading commit data...
runtime-literals.cc Loading commit data...
runtime-module.cc Loading commit data...
runtime-numbers.cc Loading commit data...
runtime-object.cc Loading commit data...
runtime-operators.cc Loading commit data...
runtime-promise.cc Loading commit data...
runtime-proxy.cc Loading commit data...
runtime-regexp.cc Loading commit data...
runtime-scopes.cc Loading commit data...
runtime-strings.cc Loading commit data...
runtime-symbol.cc Loading commit data...
runtime-test-wasm.cc Loading commit data...
runtime-test.cc Loading commit data...
runtime-trace.cc Loading commit data...
runtime-typedarray.cc Loading commit data...
runtime-utils.h Loading commit data...
runtime-wasm.cc Loading commit data...
runtime-weak-refs.cc Loading commit data...
runtime.cc Loading commit data...
runtime.h Loading commit data...