v8/test/unittests/objects
Shu-yu Guo 81e7e2f437 [regexp] Implement the /d flag for RegExp indices
This CL implements the upcoming spec change:
https://github.com/tc39/proposal-regexp-match-indices/pull/49

A new JSRegExpResultWithIndices subclass is introduced with a separate map and
an extra slot for storing the indices. If /d is passed, exec() constructs a
JSRegExpResultWithIndices and eagerly builds indices.

The existing re-execution logic is removed.

Bug: v8:9548
Change-Id: Ic11853e7521017af5e8bd583c7b82bb672821132
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2616873
Commit-Queue: Shu-yu Guo <syg@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#72306}
2021-01-26 04:14:10 +00:00
..
backing-store-unittest.cc [wasm] Fix return value of concurrent memory.grow 2020-04-14 21:37:32 +00:00
object-unittest.cc [unittest] Rename last to prev 2021-01-19 16:54:51 +00:00
osr-optimized-code-cache-unittest.cc [compiler] Rename type BailoutId to BytecodeOffset 2021-01-20 13:03:41 +00:00
value-serializer-unittest.cc [regexp] Implement the /d flag for RegExp indices 2021-01-26 04:14:10 +00:00
weakarraylist-unittest.cc [objects] Compact and shrink script_list 2020-01-08 17:48:32 +00:00