summaryrefslogtreecommitdiffstats
path: root/src/script/bridge/qscriptqobject_p.h
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-07-02 11:04:38 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-07-02 11:04:38 (GMT)
commitc320a2c42820a5b31f6611463330c46ea644d8dc (patch)
treee3181887058dfc7053a2e7f8a19a78cdff1e36a3 /src/script/bridge/qscriptqobject_p.h
parentab4eea9aa8d2156d12c85317a78de266cf5f8145 (diff)
downloadQt-c320a2c42820a5b31f6611463330c46ea644d8dc.zip
Qt-c320a2c42820a5b31f6611463330c46ea644d8dc.tar.gz
Qt-c320a2c42820a5b31f6611463330c46ea644d8dc.tar.bz2
implement caching of slot wrapper functions
Diffstat (limited to 'src/script/bridge/qscriptqobject_p.h')
-rw-r--r--src/script/bridge/qscriptqobject_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/bridge/qscriptqobject_p.h b/src/script/bridge/qscriptqobject_p.h
index 2e508ba..b35b6ba 100644
--- a/src/script/bridge/qscriptqobject_p.h
+++ b/src/script/bridge/qscriptqobject_p.h
@@ -53,6 +53,8 @@ public:
QScriptEngine::ValueOwnership ownership;
QScriptEngine::QObjectWrapOptions options;
+ QHash<QByteArray, JSC::JSValue> cachedMembers;
+
Data(QObject *o, QScriptEngine::ValueOwnership own,
QScriptEngine::QObjectWrapOptions opt)
: value(o), ownership(own), options(opt) {}
@@ -74,6 +76,7 @@ public:
virtual bool getPropertyAttributes(JSC::ExecState*, const JSC::Identifier&,
unsigned&) const;
virtual void getPropertyNames(JSC::ExecState*, JSC::PropertyNameArray&);
+ virtual void mark();
virtual const JSC::ClassInfo* classInfo() const { return &info; }
static const JSC::ClassInfo info;