Issue #2305 Part 3b: Create .indices and .indices.groups

This commit is contained in:
Martok 2024-11-10 17:05:24 +01:00 committed by roytam1
commit 6dbe2de6db
2 changed files with 109 additions and 18 deletions

View file

@ -1545,6 +1545,11 @@ JitCompartment::generateRegExpMatcherStub(JSContext* cx)
ImmWord(0),
&oolEntry);
// Similarly, if the |hasIndices| flag is set, fall back to the OOL stub.
masm.branchTest32(Assembler::NonZero,
Address(shared, RegExpShared::offsetOfFlags()),
Imm32(int32_t(HasIndicesFlag)), &oolEntry);
// Construct the result.
Register object = temp1;
Label matchResultFallback, matchResultJoin;