mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-02 13:58:40 +09:00
Crash is gone. Functionally seems work with indices. Going test with regexp zones and without to see this is ideal solution.
Crash is gone. Functionally seems work with indices. Going test with regexp zones and without to see this is ideal solution.
This commit is contained in:
parent
4a4ab4f90a
commit
98ce3e1947
4 changed files with 117 additions and 65 deletions
|
|
@ -1736,10 +1736,10 @@ JitCompartment::generateRegExpMatcherStub(JSContext* cx)
|
|||
Register shared = temp2;
|
||||
masm.loadPtr(Address(regexp, NativeObject::getFixedSlotOffset(RegExpObject::PRIVATE_SLOT)),
|
||||
shared);
|
||||
masm.branchPtr(Assembler::NotEqual,
|
||||
Address(shared, RegExpShared::offsetOfGroupsTemplate()),
|
||||
ImmWord(0),
|
||||
&oolEntry);
|
||||
masm.branch32(Assembler::NotEqual,
|
||||
Address(shared, RegExpShared::offsetOfNumNamedCaptures()),
|
||||
Imm32(0),
|
||||
&oolEntry);
|
||||
|
||||
// Similarly, if the |hasIndices| flag is set, fall back to the OOL stub.
|
||||
masm.branchTest32(Assembler::NonZero,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue