diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-06-20 12:56:32 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-06-20 12:56:32 +0200 |
commit | 32d13a1648a64fe26be66de026bffca8c1afa88f (patch) | |
tree | becd2a6ab5304e14657c6f8c0acf27aaad1ed03d /js/src/jit/MIR.cpp | |
parent | 276f6583e00edf2a217a3092471ca2aa3aab5a09 (diff) | |
download | UXP-32d13a1648a64fe26be66de026bffca8c1afa88f.tar UXP-32d13a1648a64fe26be66de026bffca8c1afa88f.tar.gz UXP-32d13a1648a64fe26be66de026bffca8c1afa88f.tar.lz UXP-32d13a1648a64fe26be66de026bffca8c1afa88f.tar.xz UXP-32d13a1648a64fe26be66de026bffca8c1afa88f.zip |
Call a more generic function when inlining array natives.
This simplifies the code a bit because
ElementAccessHasExtraIndexedProperty checks for length-overflow
(directly) and sparse-indexes (through TypeCanHaveExtraIndexedProperties)
so the callers don't have to do that anymore.
Diffstat (limited to 'js/src/jit/MIR.cpp')
-rw-r--r-- | js/src/jit/MIR.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/js/src/jit/MIR.cpp b/js/src/jit/MIR.cpp index 6aa46be4b..190b40bb2 100644 --- a/js/src/jit/MIR.cpp +++ b/js/src/jit/MIR.cpp @@ -6221,15 +6221,6 @@ PrototypeHasIndexedProperty(IonBuilder* builder, JSObject* obj) return false; } -// Whether Array.prototype, or an object on its proto chain, has an indexed property. -bool -jit::ArrayPrototypeHasIndexedProperty(IonBuilder* builder, JSScript* script) -{ - if (JSObject* proto = script->global().maybeGetArrayPrototype()) - return PrototypeHasIndexedProperty(builder, proto); - return true; -} - // Whether obj or any of its prototypes have an indexed property. bool jit::TypeCanHaveExtraIndexedProperties(IonBuilder* builder, TemporaryTypeSet* types) |