From b19941fdfcb96cf8f0f2706bf171ff065938ae63 Mon Sep 17 00:00:00 2001 From: Cameron Kaiser Date: Thu, 20 Jun 2019 09:10:34 -0700 Subject: [PATCH] #561: cleanup --- js/src/jit/MIR.cpp | 9 --------- js/src/jit/MIR.h | 1 - 2 files changed, 10 deletions(-) diff --git a/js/src/jit/MIR.cpp b/js/src/jit/MIR.cpp index f15de7870..c9d1118cd 100644 --- a/js/src/jit/MIR.cpp +++ b/js/src/jit/MIR.cpp @@ -5356,15 +5356,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) diff --git a/js/src/jit/MIR.h b/js/src/jit/MIR.h index d1d068acc..030688813 100644 --- a/js/src/jit/MIR.h +++ b/js/src/jit/MIR.h @@ -14114,7 +14114,6 @@ bool PropertyWriteNeedsTypeBarrier(TempAllocator& alloc, CompilerConstraintList* MBasicBlock* current, MDefinition** pobj, PropertyName* name, MDefinition** pvalue, bool canModify, MIRType implicitType = MIRType_None); -bool ArrayPrototypeHasIndexedProperty(IonBuilder* builder, JSScript* script); bool TypeCanHaveExtraIndexedProperties(IonBuilder* builder, TemporaryTypeSet* types); inline MIRType