mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1603373 part 1 - Remove unused jit::CanStoreUnboxedType. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D56909 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
3ccc6c30ab
commit
382aff1081
@ -2289,32 +2289,6 @@ bool jit::EqualTypes(MIRType type1, TemporaryTypeSet* typeset1, MIRType type2,
|
|||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool MPhi::specializeType(TempAllocator& alloc) {
|
bool MPhi::specializeType(TempAllocator& alloc) {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
MOZ_ASSERT(!specialized_);
|
MOZ_ASSERT(!specialized_);
|
||||||
|
@ -1998,9 +1998,6 @@ bool TypeSetIncludes(TypeSet* types, MIRType input, TypeSet* inputTypes);
|
|||||||
bool EqualTypes(MIRType type1, TemporaryTypeSet* typeset1, MIRType type2,
|
bool EqualTypes(MIRType type1, TemporaryTypeSet* typeset1, MIRType type2,
|
||||||
TemporaryTypeSet* typeset2);
|
TemporaryTypeSet* typeset2);
|
||||||
|
|
||||||
bool CanStoreUnboxedType(TempAllocator& alloc, JSValueType unboxedType,
|
|
||||||
MIRType input, TypeSet* inputTypes);
|
|
||||||
|
|
||||||
class MNewArray : public MUnaryInstruction, public NoTypePolicy::Data {
|
class MNewArray : public MUnaryInstruction, public NoTypePolicy::Data {
|
||||||
private:
|
private:
|
||||||
// Number of elements to allocate for the array.
|
// Number of elements to allocate for the array.
|
||||||
|
Loading…
Reference in New Issue
Block a user