#include "../bridge/qscriptqobject_p.h"
#include <QtCore/qdatastream.h>
#include <QtCore/qmetaobject.h>
+#include <QtCore/qshareddata.h>
#include "CodeBlock.h"
#include "JSFunction.h"
#if ENABLE(JIT)
\value NativeFunction The function is a built-in Qt Script function, or it was defined through a call to QScriptEngine::newFunction().
*/
-class QScriptContextInfoPrivate
+class QScriptContextInfoPrivate : public QSharedData
{
Q_DECLARE_PUBLIC(QScriptContextInfo)
public:
QStringList parameterNames;
- QBasicAtomicInt ref;
-
QScriptContextInfo *q_ptr;
};
#include "qdebug.h"
#include <QtCore/qstringlist.h>
+#include <QtCore/qshareddata.h>
#include <QtCore/qmetaobject.h>
#include <math.h>
\value SkipMethodsInEnumeration Don't include methods (signals and slots) when enumerating the object's properties.
*/
-class QScriptSyntaxCheckResultPrivate
+class QScriptSyntaxCheckResultPrivate : public QSharedData
{
public:
- QScriptSyntaxCheckResultPrivate() { ref = 0; }
+ QScriptSyntaxCheckResultPrivate() { }
~QScriptSyntaxCheckResultPrivate() {}
QScriptSyntaxCheckResult::State state;
int errorColumnNumber;
int errorLineNumber;
QString errorMessage;
- QBasicAtomicInt ref;
};
class QScriptTypeInfo
//
#include <QtCore/qobjectdefs.h>
+#include <QtCore/qshareddata.h>
#include "RefPtr.h"
class QScriptEnginePrivate;
-class QScriptProgramPrivate
+class QScriptProgramPrivate : public QSharedData
{
public:
QScriptProgramPrivate(const QString &sourceCode,
QScriptEnginePrivate *engine);
void detachFromEngine();
- QBasicAtomicInt ref;
-
QString sourceCode;
QString fileName;
int firstLineNumber;
//
#include <QtCore/qobjectdefs.h>
+#include <QtCore/qshareddata.h>
#include "Identifier.h"
QT_BEGIN_NAMESPACE
class QScriptEnginePrivate;
-class QScriptStringPrivate
+class QScriptStringPrivate : public QSharedData
{
public:
enum AllocationType {
static inline bool isValid(const QScriptString &q);
- QBasicAtomicInt ref;
QScriptEnginePrivate *engine;
JSC::Identifier identifier;
AllocationType type;
AllocationType tp)
: engine(e), identifier(id), type(tp), prev(0), next(0)
{
- ref = 0;
}
inline QScriptStringPrivate::~QScriptStringPrivate()
//
#include <QtCore/qobjectdefs.h>
+#include <QtCore/qshareddata.h>
#include "wtf/Platform.h"
#include "JSValue.h"
class QScriptEnginePrivate;
class QScriptValue;
-class QScriptValuePrivate
+class QScriptValuePrivate : public QSharedData
{
Q_DISABLE_COPY(QScriptValuePrivate)
public:
// linked list of engine's script values
QScriptValuePrivate *prev;
QScriptValuePrivate *next;
-
- QBasicAtomicInt ref;
};
inline QScriptValuePrivate::QScriptValuePrivate(QScriptEnginePrivate *e)
: engine(e), prev(0), next(0)
{
- ref = 0;
}
inline bool QScriptValuePrivate::isJSC() const
#include "qscriptdebuggerconsolecommandgroupdata_p.h"
#include <QtCore/qstring.h>
+#include <QtCore/qshareddata.h>
QT_BEGIN_NAMESPACE
\brief The QScriptDebuggerConsoleCommandGroupData class holds data associated with a console command group.
*/
-class QScriptDebuggerConsoleCommandGroupDataPrivate
+class QScriptDebuggerConsoleCommandGroupDataPrivate : public QSharedData
{
public:
QScriptDebuggerConsoleCommandGroupDataPrivate();
QString shortDescription;
QString longDescription;
-
- QBasicAtomicInt ref;
};
QScriptDebuggerConsoleCommandGroupDataPrivate::QScriptDebuggerConsoleCommandGroupDataPrivate()
{
- ref = 0;
}
QScriptDebuggerConsoleCommandGroupDataPrivate::~QScriptDebuggerConsoleCommandGroupDataPrivate()
#include <QtScript/qscriptengine.h>
#include <QtCore/qdatastream.h>
#include <QtCore/qdebug.h>
+#include <QtCore/qshareddata.h>
QT_BEGIN_NAMESPACE
\brief The QScriptDebuggerValue class represents a script value.
*/
-class QScriptDebuggerValuePrivate
+class QScriptDebuggerValuePrivate : public QSharedData
{
public:
QScriptDebuggerValuePrivate();
double numberValue;
qint64 objectId;
};
-
- QBasicAtomicInt ref;
};
QScriptDebuggerValuePrivate::QScriptDebuggerValuePrivate()
: type(QScriptDebuggerValue::NoValue)
{
- ref = 0;
}
QScriptDebuggerValuePrivate::~QScriptDebuggerValuePrivate()
#include "qscriptdebuggervalue_p.h"
#include "qscriptdebuggerobjectsnapshotdelta_p.h"
-#include <QtCore/qatomic.h>
+#include <QtCore/qshareddata.h>
#include <QtCore/qdatastream.h>
#include <QtCore/qstring.h>
\class QScriptDebuggerValueProperty
*/
-class QScriptDebuggerValuePropertyPrivate
+class QScriptDebuggerValuePropertyPrivate : public QSharedData
{
public:
QScriptDebuggerValuePropertyPrivate();
QScriptDebuggerValue value;
QString valueAsString;
QScriptValue::PropertyFlags flags;
-
- QBasicAtomicInt ref;
};
QScriptDebuggerValuePropertyPrivate::QScriptDebuggerValuePropertyPrivate()
{
- ref = 0;
}
QScriptDebuggerValuePropertyPrivate::~QScriptDebuggerValuePropertyPrivate()
#include <QtCore/qdatastream.h>
#include <QtCore/qstring.h>
#include <QtCore/qstringlist.h>
+#include <QtCore/qshareddata.h>
QT_BEGIN_NAMESPACE
\brief The QScriptScriptData class holds data associated with a script.
*/
-class QScriptScriptDataPrivate
+class QScriptScriptDataPrivate : public QSharedData
{
public:
QScriptScriptDataPrivate();
QString fileName;
int baseLineNumber;
QDateTime timeStamp;
-
- QBasicAtomicInt ref;
};
QScriptScriptDataPrivate::QScriptScriptDataPrivate()
{
- ref = 0;
}
QScriptScriptDataPrivate::~QScriptScriptDataPrivate()
#include "qscriptvalueproperty_p.h"
-#include <QtCore/qatomic.h>
+#include <QtCore/qshareddata.h>
#include <QtCore/qstring.h>
QT_BEGIN_NAMESPACE
-class QScriptValuePropertyPrivate
+class QScriptValuePropertyPrivate : public QSharedData
{
public:
QScriptValuePropertyPrivate();
QString name;
QScriptValue value;
QScriptValue::PropertyFlags flags;
-
- QBasicAtomicInt ref;
};
QScriptValuePropertyPrivate::QScriptValuePropertyPrivate()
{
- ref = 0;
}
QScriptValuePropertyPrivate::~QScriptValuePropertyPrivate()