+2007-10-25 Eric Seidel <eric@webkit.org>
+
+ Reviewed by Geoff.
+
+ Make JSG build again after JSGlobalObject change.
+
+ * JSRun.cpp:
+ (JSRun::JSRun):
+ (JSRun::GlobalObject):
+ * JSRun.h:
+ (JSInterpreter::JSInterpreter):
+ * JSUtils.h:
+
2007-10-11 Mark Rowe <mrowe@apple.com>
Reviewed by Tim Hatcher.
JSRun::JSRun(CFStringRef source, JSFlags inFlags)
: JSBase(kJSRunTypeID),
fSource(CFStringToUString(source)),
- fGlobalObject(new JSObject()),
+ fGlobalObject(new JSGlobalObject()),
fInterpreter(new JSInterpreter(fGlobalObject, inFlags)),
fFlags(inFlags)
{
return fSource;
}
-JSObject *JSRun::GlobalObject() const
+JSGlobalObject* JSRun::GlobalObject() const
{
return fGlobalObject;
}
class JSInterpreter : public Interpreter {
public:
- JSInterpreter(JSObject *global, JSFlags flags) : Interpreter(global), fJSFlags(flags) { }
- JSInterpreter(JSObject *global) : Interpreter(global), fJSFlags(kJSFlagNone) { }
+ JSInterpreter(JSGlobalObject *global, JSFlags flags) : Interpreter(global), fJSFlags(flags) { }
+ JSInterpreter(JSGlobalObject *global) : Interpreter(global), fJSFlags(kJSFlagNone) { }
JSInterpreter() : Interpreter(), fJSFlags(kJSFlagNone) { }
JSFlags Flags() const { return fJSFlags; }
virtual ~JSRun();
UString GetSource() const;
- JSObject *GlobalObject() const;
+ JSGlobalObject* GlobalObject() const;
JSInterpreter* GetInterpreter();
Completion Evaluate();
bool CheckSyntax();
JSFlags Flags() const;
private:
UString fSource;
- ProtectedPtr<JSObject> fGlobalObject;
+ ProtectedPtr<JSGlobalObject> fGlobalObject;
RefPtr<JSInterpreter> fInterpreter;
JSFlags fFlags;
};
#include <JavaScriptCore/value.h>
#include <JavaScriptCore/object.h>
+#include <JavaScriptCore/JSGlobalObject.h>
#include <JavaScriptCore/types.h>
#include <JavaScriptCore/interpreter.h>
#include <JavaScriptCore/protect.h>