FunctionPrototype.h [plain text]
#ifndef FunctionPrototype_h
#define FunctionPrototype_h
#include "InternalFunction.h"
namespace JSC {
class FunctionPrototype : public InternalFunction {
public:
typedef InternalFunction Base;
static FunctionPrototype* create(ExecState* exec, JSGlobalObject* globalObject, Structure* structure)
{
FunctionPrototype* prototype = new (NotNull, allocateCell<FunctionPrototype>(*exec->heap())) FunctionPrototype(globalObject, structure);
prototype->finishCreation(exec, exec->propertyNames().nullIdentifier);
return prototype;
}
void addFunctionProperties(ExecState*, JSGlobalObject*, JSFunction** callFunction, JSFunction** applyFunction);
static Structure* createStructure(JSGlobalData& globalData, JSGlobalObject* globalObject, JSValue proto)
{
return Structure::create(globalData, globalObject, proto, TypeInfo(ObjectType, StructureFlags), &s_info);
}
static const ClassInfo s_info;
protected:
void finishCreation(ExecState*, const Identifier& name);
private:
FunctionPrototype(JSGlobalObject*, Structure*);
static CallType getCallData(JSCell*, CallData&);
};
}
#endif // FunctionPrototype_h