mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 20:37:31 +09:00
Issue #2731 - Fix crashes on unknown BigInt types in JIT
This only works around the unknown type crashes but doesn't actually fix attempts at using 64-bit BigInts in Ion. Resolves #2731
This commit is contained in:
parent
8bacedc9a9
commit
d7f01911b8
2 changed files with 6 additions and 0 deletions
|
|
@ -2124,6 +2124,7 @@ MacroAssembler::convertTypedOrValueToInt(TypedOrValueRegister src, FloatRegister
|
||||||
case MIRType::String:
|
case MIRType::String:
|
||||||
case MIRType::Symbol:
|
case MIRType::Symbol:
|
||||||
case MIRType::Object:
|
case MIRType::Object:
|
||||||
|
case MIRType::BigInt:
|
||||||
jump(fail);
|
jump(fail);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
|
|
@ -1622,6 +1622,11 @@ class MacroAssembler : public MacroAssemblerSpecific
|
||||||
case Scalar::Uint32:
|
case Scalar::Uint32:
|
||||||
store32(value, dest);
|
store32(value, dest);
|
||||||
break;
|
break;
|
||||||
|
case Scalar::BigInt64:
|
||||||
|
case Scalar::BigUint64:
|
||||||
|
//FIXME: storing 64-bit values doesn't actually work yet.
|
||||||
|
// store64(value, dest);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
MOZ_CRASH("Invalid typed array type");
|
MOZ_CRASH("Invalid typed array type");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue