diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-22 10:22:35 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-22 10:22:35 +0200 |
commit | 9e8c26af6726e9ba624207f429ab93f317561e2e (patch) | |
tree | 960e545438f3b0f2cdb95dbf02d89114a6074584 /js | |
parent | e4fb2cd62409c0fb3f7fe5481d8cd89eae037e00 (diff) | |
download | uxp-9e8c26af6726e9ba624207f429ab93f317561e2e.tar.gz |
Remove unused checking function for unboxed types.
Tag mcp-graveyard/UXP#1030
Diffstat (limited to 'js')
-rw-r--r-- | js/src/jit/MIR.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/js/src/jit/MIR.cpp b/js/src/jit/MIR.cpp index 10671cfda9..0cf31adb33 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) { |