mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-23 23:57:31 +09:00
parent
8346f7c082
commit
e78a4b88e3
1 changed files with 0 additions and 34 deletions
|
|
@ -2630,40 +2630,6 @@ jit::EqualTypes(MIRType type1, TemporaryTypeSet* typeset1,
|
||||||
return typeset1->equals(typeset2);
|
return typeset1->equals(typeset2);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tests whether input/inputTypes can always be stored to an unboxed
|
|
||||||
// object/array property with the given unboxed type.
|
|
||||||
bool
|
|
||||||
jit::CanStoreUnboxedType(TempAllocator& alloc,
|
|
||||||
JSValueType unboxedType, MIRType input, TypeSet* inputTypes)
|
|
||||||
{
|
|
||||||
TemporaryTypeSet types;
|
|
||||||
|
|
||||||
switch (unboxedType) {
|
|
||||||
case JSVAL_TYPE_BOOLEAN:
|
|
||||||
case JSVAL_TYPE_INT32:
|
|
||||||
case JSVAL_TYPE_DOUBLE:
|
|
||||||
case JSVAL_TYPE_STRING:
|
|
||||||
types.addType(TypeSet::PrimitiveType(unboxedType), alloc.lifoAlloc());
|
|
||||||
break;
|
|
||||||
|
|
||||||
case JSVAL_TYPE_OBJECT:
|
|
||||||
types.addType(TypeSet::AnyObjectType(), alloc.lifoAlloc());
|
|
||||||
types.addType(TypeSet::NullType(), alloc.lifoAlloc());
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
MOZ_CRASH("Bad unboxed type");
|
|
||||||
}
|
|
||||||
|
|
||||||
return TypeSetIncludes(&types, input, inputTypes);
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool
|
|
||||||
CanStoreUnboxedType(TempAllocator& alloc, JSValueType unboxedType, MDefinition* value)
|
|
||||||
{
|
|
||||||
return CanStoreUnboxedType(alloc, unboxedType, value->type(), value->resultTypeSet());
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
MPhi::specializeType(TempAllocator& alloc)
|
MPhi::specializeType(TempAllocator& alloc)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue