diff options
Diffstat (limited to 'Source/JavaScriptCore/runtime/ArrayConstructor.h')
-rw-r--r-- | Source/JavaScriptCore/runtime/ArrayConstructor.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Source/JavaScriptCore/runtime/ArrayConstructor.h b/Source/JavaScriptCore/runtime/ArrayConstructor.h index 5256a52da..a6ac76ea4 100644 --- a/Source/JavaScriptCore/runtime/ArrayConstructor.h +++ b/Source/JavaScriptCore/runtime/ArrayConstructor.h @@ -28,17 +28,15 @@ namespace JSC { class ArrayAllocationProfile; class ArrayPrototype; class JSArray; -class GetterSetter; class ArrayConstructor : public InternalFunction { public: typedef InternalFunction Base; - static const unsigned StructureFlags = OverridesGetOwnPropertySlot | InternalFunction::StructureFlags; - static ArrayConstructor* create(VM& vm, Structure* structure, ArrayPrototype* arrayPrototype, GetterSetter* speciesSymbol) + static ArrayConstructor* create(VM& vm, Structure* structure, ArrayPrototype* arrayPrototype) { ArrayConstructor* constructor = new (NotNull, allocateCell<ArrayConstructor>(vm.heap)) ArrayConstructor(vm, structure); - constructor->finishCreation(vm, arrayPrototype, speciesSymbol); + constructor->finishCreation(vm, arrayPrototype); return constructor; } @@ -50,7 +48,8 @@ public: } protected: - void finishCreation(VM&, ArrayPrototype*, GetterSetter* speciesSymbol); + void finishCreation(VM&, ArrayPrototype*); + static const unsigned StructureFlags = OverridesGetOwnPropertySlot | InternalFunction::StructureFlags; private: ArrayConstructor(VM&, Structure*); @@ -60,7 +59,7 @@ private: static CallType getCallData(JSCell*, CallData&); }; -JSObject* constructArrayWithSizeQuirk(ExecState*, ArrayAllocationProfile*, JSGlobalObject*, JSValue length, JSValue prototype = JSValue()); +JSObject* constructArrayWithSizeQuirk(ExecState*, ArrayAllocationProfile*, JSGlobalObject*, JSValue); } // namespace JSC |