NativeErrorConstructor.h [plain text]
#ifndef NativeErrorConstructor_h
#define NativeErrorConstructor_h
#include "InternalFunction.h"
namespace JSC {
class ErrorInstance;
class FunctionPrototype;
class NativeErrorPrototype;
class NativeErrorConstructor : public InternalFunction {
public:
NativeErrorConstructor(ExecState*, JSGlobalObject*, Structure*, Structure* prototypeStructure, const UString&);
static const ClassInfo s_info;
static Structure* createStructure(JSGlobalData& globalData, JSValue prototype)
{
return Structure::create(globalData, prototype, TypeInfo(ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
}
Structure* errorStructure() { return m_errorStructure.get(); }
private:
static const unsigned StructureFlags = OverridesVisitChildren | InternalFunction::StructureFlags;
virtual ConstructType getConstructData(ConstructData&);
virtual CallType getCallData(CallData&);
virtual void visitChildren(SlotVisitor&);
WriteBarrier<Structure> m_errorStructure;
};
}
#endif // NativeErrorConstructor_h