aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4stringobject_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-04-29 11:35:06 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2014-07-22 13:49:05 +0200
commit03cef66854bc830c9779175a121b2a026404f6d8 (patch)
treeacc5e35456cc067ef63c23f55f330719dc7d0f2d /src/qml/jsruntime/qv4stringobject_p.h
parent541da479754e6da07463cd6f0dd0e24bc6746494 (diff)
Convert StringObject to new storage layout
Change-Id: I08251049fed92306e1acfd8926ffad270d2e3ca7 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.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4stringobject_p.h b/src/qml/jsruntime/qv4stringobject_p.h
index c38fd5b75f..f434dd96d7 100644
--- a/src/qml/jsruntime/qv4stringobject_p.h
+++ b/src/qml/jsruntime/qv4stringobject_p.h
@@ -50,11 +50,18 @@ QT_BEGIN_NAMESPACE
namespace QV4 {
struct StringObject: Object {
- V4_OBJECT
+ struct Data : Object::Data {
+ Value value;
+ // ### get rid of tmpProperty
+ mutable Property tmpProperty;
+ };
+ struct {
+ Value value;
+ mutable Property tmpProperty;
+ } __data;
+ V4_OBJECT_NEW
Q_MANAGED_TYPE(StringObject)
- Value value;
- mutable Property tmpProperty;
StringObject(ExecutionEngine *engine, const ValueRef value);
Property *getIndex(uint index) const;
@@ -69,7 +76,7 @@ protected:
struct StringCtor: FunctionObject
{
- V4_OBJECT
+ V4_OBJECT_NEW
StringCtor(ExecutionContext *scope);
static ReturnedValue construct(Managed *m, CallData *callData);