summaryrefslogtreecommitdiffstats
path: root/src/script/bridge/qscriptfunction_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/bridge/qscriptfunction_p.h')
-rw-r--r--src/script/bridge/qscriptfunction_p.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/script/bridge/qscriptfunction_p.h b/src/script/bridge/qscriptfunction_p.h
index 360b40c..4901b72 100644
--- a/src/script/bridge/qscriptfunction_p.h
+++ b/src/script/bridge/qscriptfunction_p.h
@@ -72,18 +72,20 @@ public:
// work around CELL_SIZE limitation
struct Data
{
- QScriptEngine *engine;
QScriptEngine::FunctionSignature function;
};
- FunctionWrapper(QScriptEngine *, int length, const JSC::Identifier&, QScriptEngine::FunctionSignature);
+ FunctionWrapper(JSC::ExecState*, int length, const JSC::Identifier&,
+ QScriptEngine::FunctionSignature);
~FunctionWrapper();
private:
virtual JSC::ConstructType getConstructData(JSC::ConstructData&);
- static JSC::JSValue JSC_HOST_CALL proxyCall(JSC::ExecState *, JSC::JSObject *, JSC::JSValue, const JSC::ArgList &);
- static JSC::JSObject* proxyConstruct(JSC::ExecState *, JSC::JSObject *, const JSC::ArgList &);
+ static JSC::JSValue JSC_HOST_CALL proxyCall(JSC::ExecState *, JSC::JSObject *,
+ JSC::JSValue, const JSC::ArgList &);
+ static JSC::JSObject* proxyConstruct(JSC::ExecState *, JSC::JSObject *,
+ const JSC::ArgList &);
private:
Data *data;
@@ -95,19 +97,21 @@ public:
// work around CELL_SIZE limitation
struct Data
{
- QScriptEngine *engine;
QScriptEngine::FunctionWithArgSignature function;
void *arg;
};
- FunctionWithArgWrapper(QScriptEngine *, int length, const JSC::Identifier&, QScriptEngine::FunctionWithArgSignature, void *);
+ FunctionWithArgWrapper(JSC::ExecState*, int length, const JSC::Identifier&,
+ QScriptEngine::FunctionWithArgSignature, void *);
~FunctionWithArgWrapper();
private:
virtual JSC::ConstructType getConstructData(JSC::ConstructData&);
- static JSC::JSValue JSC_HOST_CALL proxyCall(JSC::ExecState *, JSC::JSObject *, JSC::JSValue , const JSC::ArgList &);
- static JSC::JSObject* proxyConstruct(JSC::ExecState *, JSC::JSObject *, const JSC::ArgList &);
+ static JSC::JSValue JSC_HOST_CALL proxyCall(JSC::ExecState *, JSC::JSObject *,
+ JSC::JSValue , const JSC::ArgList &);
+ static JSC::JSObject* proxyConstruct(JSC::ExecState *, JSC::JSObject *,
+ const JSC::ArgList &);
private:
Data *data;