#pragma once
#include "JSArray.h"
namespace JSC {
class ArrayPrototype final : public JSArray {
public:
using Base = JSArray;
enum class SpeciesWatchpointStatus {
Uninitialized,
Initialized,
Fired
};
static ArrayPrototype* create(VM&, JSGlobalObject*, Structure*);
DECLARE_EXPORT_INFO;
static Structure* createStructure(VM& vm, JSGlobalObject* globalObject, JSValue prototype)
{
return Structure::create(vm, globalObject, prototype, TypeInfo(DerivedArrayType, StructureFlags), info(), ArrayClass);
}
private:
ArrayPrototype(VM&, Structure*);
void finishCreation(VM&, JSGlobalObject*);
};
STATIC_ASSERT_ISO_SUBSPACE_SHARABLE(ArrayPrototype, ArrayPrototype::Base);
JSC_DECLARE_HOST_FUNCTION(arrayProtoFuncSpeciesCreate);
JSC_DECLARE_HOST_FUNCTION(arrayProtoFuncToString);
JSC_DECLARE_HOST_FUNCTION(arrayProtoFuncValues);
JSC_DECLARE_HOST_FUNCTION(arrayProtoPrivateFuncConcatMemcpy);
JSC_DECLARE_HOST_FUNCTION(arrayProtoPrivateFuncAppendMemcpy);
}