aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4stringobject_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2014-11-06 17:17:34 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2014-11-09 08:39:33 +0100
commit3c1041cbfd70a03322ca0278e0db8ac0651c0792 (patch)
treedadc0d76ccd0c0617856b7fbdc2c2c82753cb36a /src/qml/jsruntime/qv4stringobject_p.h
parent34fa0f8fec639444bd6ba2091b6f6623128471ce (diff)
Move more Data objects into the Heap namespace
Change-Id: I87866f8dcbaac1087da7bbd2902aa5b062afca53 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4stringobject_p.h')
-rw-r--r--src/qml/jsruntime/qv4stringobject_p.h31
1 files changed, 18 insertions, 13 deletions
diff --git a/src/qml/jsruntime/qv4stringobject_p.h b/src/qml/jsruntime/qv4stringobject_p.h
index 5e5d28bf4c..b82cf08a8b 100644
--- a/src/qml/jsruntime/qv4stringobject_p.h
+++ b/src/qml/jsruntime/qv4stringobject_p.h
@@ -41,18 +41,26 @@ QT_BEGIN_NAMESPACE
namespace QV4 {
+namespace Heap {
+
+struct StringObject : Object {
+ StringObject(ExecutionEngine *engine, const ValueRef value);
+ StringObject(InternalClass *ic);
+ Value value;
+ // ### get rid of tmpProperty
+ mutable Property tmpProperty;
+};
+
+struct StringCtor : FunctionObject {
+ StringCtor(QV4::ExecutionContext *scope);
+};
+
+}
+
struct StringObject: Object {
- struct Data : Heap::Object {
- Data(ExecutionEngine *engine, const ValueRef value);
- Data(InternalClass *ic);
- Value value;
- // ### get rid of tmpProperty
- mutable Property tmpProperty;
- };
- V4_OBJECT(Object)
+ V4_OBJECT2(StringObject, Object)
Q_MANAGED_TYPE(StringObject)
-
Property *getIndex(uint index) const;
static bool deleteIndexedProperty(Managed *m, uint index);
@@ -64,10 +72,7 @@ protected:
struct StringCtor: FunctionObject
{
- struct Data : Heap::FunctionObject {
- Data(ExecutionContext *scope);
- };
- V4_OBJECT(FunctionObject)
+ V4_OBJECT2(StringCtor, FunctionObject)
static ReturnedValue construct(Managed *m, CallData *callData);
static ReturnedValue call(Managed *that, CallData *callData);