summaryrefslogtreecommitdiffstats
path: root/js/src/jit/MIR.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-07-22 10:22:35 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-07-22 10:22:35 +0200
commit8cd6a5a3361c155114c5dc9fedbee18e3e2720a7 (patch)
tree960e545438f3b0f2cdb95dbf02d89114a6074584 /js/src/jit/MIR.cpp
parent17a4b4f6db96b04a62e54146d637b0e10a80acfa (diff)
downloadUXP-8cd6a5a3361c155114c5dc9fedbee18e3e2720a7.tar
UXP-8cd6a5a3361c155114c5dc9fedbee18e3e2720a7.tar.gz
UXP-8cd6a5a3361c155114c5dc9fedbee18e3e2720a7.tar.lz
UXP-8cd6a5a3361c155114c5dc9fedbee18e3e2720a7.tar.xz
UXP-8cd6a5a3361c155114c5dc9fedbee18e3e2720a7.zip
Remove unused checking function for unboxed types.
Tag #1030
Diffstat (limited to 'js/src/jit/MIR.cpp')
-rw-r--r--js/src/jit/MIR.cpp34
1 files changed, 0 insertions, 34 deletions
diff --git a/js/src/jit/MIR.cpp b/js/src/jit/MIR.cpp
index 10671cfda..0cf31adb3 100644
--- a/js/src/jit/MIR.cpp
+++ b/js/src/jit/MIR.cpp
@@ -2630,40 +2630,6 @@ jit::EqualTypes(MIRType type1, TemporaryTypeSet* typeset1,
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
MPhi::specializeType(TempAllocator& alloc)
{