mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 22:57:31 +09:00
Don't mark MGetFirstDollarIndex as movable.
This commit is contained in:
parent
5c9fd5c5c6
commit
c554052ddd
1 changed files with 4 additions and 1 deletions
|
|
@ -8272,7 +8272,10 @@ class MGetFirstDollarIndex
|
||||||
: MUnaryInstruction(str)
|
: MUnaryInstruction(str)
|
||||||
{
|
{
|
||||||
setResultType(MIRType::Int32);
|
setResultType(MIRType::Int32);
|
||||||
setMovable();
|
|
||||||
|
// Codegen assumes string length > 0 but that's not guaranteed in RegExp.
|
||||||
|
// Don't allow LICM to move this.
|
||||||
|
MOZ_ASSERT(!isMovable());
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue