#ifndef RegExpPrototype_h
#define RegExpPrototype_h
#include "RegExpObject.h"
#include "JSObject.h"
namespace JSC {
class RegExpPrototype : public RegExpObject {
public:
typedef RegExpObject Base;
static RegExpPrototype* create(ExecState* exec, JSGlobalObject* globalObject, Structure* structure, RegExp* regExp)
{
return new (allocateCell<RegExpPrototype>(*exec->heap())) RegExpPrototype(exec, globalObject, structure, regExp);
}
static const ClassInfo s_info;
static Structure* createStructure(JSGlobalData& globalData, JSValue prototype)
{
return Structure::create(globalData, prototype, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
}
protected:
RegExpPrototype(ExecState*, JSGlobalObject*, Structure*, RegExp*);
static const unsigned StructureFlags = OverridesGetOwnPropertySlot | RegExpObject::StructureFlags;
private:
virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
virtual bool getOwnPropertyDescriptor(ExecState*, const Identifier&, PropertyDescriptor&);
};
}
#endif // RegExpPrototype_h