1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 13:58:49 +00:00

Don't mark MGetFirstDollarIndex as movable.

This commit is contained in:
wolfbeast
2018-10-31 17:30:52 +01:00
committed by Roy Tam
parent 5c9fd5c5c6
commit c554052ddd
+4 -1
View File
@@ -8272,7 +8272,10 @@ class MGetFirstDollarIndex
: MUnaryInstruction(str)
{
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: