#ifndef SavedBuiltins_H
#define SavedBuiltins_H
#include "protect.h"
#include "object_object.h"
#include "string_object.h"
#include "error_object.h"
#include "regexp_object.h"
#include "array_object.h"
#include "bool_object.h"
#include "date_object.h"
#include "number_object.h"
#include "math_object.h"
namespace KJS {
struct SavedBuiltinsInternal {
ProtectedPtr<ObjectObjectImp> objectConstructor;
ProtectedPtr<FunctionObjectImp> functionConstructor;
ProtectedPtr<ArrayObjectImp> arrayConstructor;
ProtectedPtr<BooleanObjectImp> booleanConstructor;
ProtectedPtr<StringObjectImp> stringConstructor;
ProtectedPtr<NumberObjectImp> numberConstructor;
ProtectedPtr<DateObjectImp> dateConstructor;
ProtectedPtr<RegExpObjectImp> regExpConstructor;
ProtectedPtr<ErrorObjectImp> errorConstructor;
ProtectedPtr<NativeErrorImp> evalErrorConstructor;
ProtectedPtr<NativeErrorImp> rangeErrorConstructor;
ProtectedPtr<NativeErrorImp> referenceErrorConstructor;
ProtectedPtr<NativeErrorImp> syntaxErrorConstructor;
ProtectedPtr<NativeErrorImp> typeErrorConstructor;
ProtectedPtr<NativeErrorImp> URIErrorConstructor;
ProtectedPtr<ObjectPrototype> objectPrototype;
ProtectedPtr<FunctionPrototype> functionPrototype;
ProtectedPtr<ArrayPrototype> arrayPrototype;
ProtectedPtr<BooleanPrototype> booleanPrototype;
ProtectedPtr<StringPrototype> stringPrototype;
ProtectedPtr<NumberPrototype> numberPrototype;
ProtectedPtr<DatePrototype> datePrototype;
ProtectedPtr<RegExpPrototype> regExpPrototype;
ProtectedPtr<ErrorPrototype> errorPrototype;
ProtectedPtr<NativeErrorPrototype> evalErrorPrototype;
ProtectedPtr<NativeErrorPrototype> rangeErrorPrototype;
ProtectedPtr<NativeErrorPrototype> referenceErrorPrototype;
ProtectedPtr<NativeErrorPrototype> syntaxErrorPrototype;
ProtectedPtr<NativeErrorPrototype> typeErrorPrototype;
ProtectedPtr<NativeErrorPrototype> URIErrorPrototype;
};
class SavedBuiltins {
friend class JSGlobalObject;
public:
SavedBuiltins()
: _internal(0)
{
}
~SavedBuiltins()
{
delete _internal;
}
private:
SavedBuiltinsInternal* _internal;
};
}
#endif // SavedBuiltins_H