aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-02-12 22:17:37 +0100
committerLars Knoll <lars.knoll@digia.com>2015-03-20 11:16:48 +0000
commit3a41146b7864e8477b1f04d020725c008f86f3bc (patch)
tree8abf905f6180913cc4e87bba6ed87e679d054f68 /src/qml/jsruntime
parent058fbed796246be534a7b3a85a784634952985f0 (diff)
Reduce dependencies
Change-Id: I61ee4d25f8929d6723d2bf371efc122fa317e851 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime')
-rw-r--r--src/qml/jsruntime/qv4context_p.h1
-rw-r--r--src/qml/jsruntime/qv4engine_p.h1
-rw-r--r--src/qml/jsruntime/qv4managed_p.h2
-rw-r--r--src/qml/jsruntime/qv4value_inl_p.h13
-rw-r--r--src/qml/jsruntime/qv4value_p.h12
5 files changed, 15 insertions, 14 deletions
diff --git a/src/qml/jsruntime/qv4context_p.h b/src/qml/jsruntime/qv4context_p.h
index 8392dd836d..41a5eacc4d 100644
--- a/src/qml/jsruntime/qv4context_p.h
+++ b/src/qml/jsruntime/qv4context_p.h
@@ -45,6 +45,7 @@ struct CompilationUnit;
struct Function;
}
+struct Identifier;
struct CallContext;
struct CatchContext;
struct WithContext;
diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h
index bcb74ab694..cf6efdeda2 100644
--- a/src/qml/jsruntime/qv4engine_p.h
+++ b/src/qml/jsruntime/qv4engine_p.h
@@ -37,6 +37,7 @@
#include "private/qv4isel_p.h"
#include "qv4managed_p.h"
#include "qv4context_p.h"
+#include "qv4internalclass_p.h"
#include <private/qintrusivelist_p.h>
namespace WTF {
diff --git a/src/qml/jsruntime/qv4managed_p.h b/src/qml/jsruntime/qv4managed_p.h
index 0fe5c7ee49..ac7d06ab2f 100644
--- a/src/qml/jsruntime/qv4managed_p.h
+++ b/src/qml/jsruntime/qv4managed_p.h
@@ -35,7 +35,7 @@
#include "qv4global_p.h"
#include "qv4value_p.h"
-#include "qv4internalclass_p.h"
+#include <private/qv4heap_p.h>
QT_BEGIN_NAMESPACE
diff --git a/src/qml/jsruntime/qv4value_inl_p.h b/src/qml/jsruntime/qv4value_inl_p.h
index 3a4c5c4822..bf1fbdd229 100644
--- a/src/qml/jsruntime/qv4value_inl_p.h
+++ b/src/qml/jsruntime/qv4value_inl_p.h
@@ -36,7 +36,7 @@
#include <cmath> // this HAS to come
#include "qv4value_p.h"
-
+#include <private/qv4heap_p.h>
#include "qv4string_p.h"
#include "qv4managed_p.h"
#include "qv4engine_p.h"
@@ -178,6 +178,13 @@ inline bool Value::toBoolean() const
}
}
+inline
+ReturnedValue Heap::Base::asReturnedValue() const
+{
+ return Value::fromHeapObject(const_cast<Heap::Base *>(this)).asReturnedValue();
+}
+
+
#ifndef V4_BOOTSTRAP
inline uint Value::asArrayIndex() const
{
@@ -269,8 +276,6 @@ inline ErrorObject *Value::asErrorObject() const
template<typename T>
inline T *Value::as() const { Managed *m = isObject() ? managed() : 0; return m ? m->as<T>() : 0; }
-#ifndef V4_BOOTSTRAP
-
template<>
inline String *value_cast(const Value &v) {
return v.asString();
@@ -284,8 +289,6 @@ inline ReturnedValue value_convert<String>(ExecutionEngine *e, const Value &v)
#endif
-#endif
-
} // namespace QV4
QT_END_NAMESPACE
diff --git a/src/qml/jsruntime/qv4value_p.h b/src/qml/jsruntime/qv4value_p.h
index 8ed6c1459c..194b0ececc 100644
--- a/src/qml/jsruntime/qv4value_p.h
+++ b/src/qml/jsruntime/qv4value_p.h
@@ -37,12 +37,15 @@
#include <QtCore/QString>
#include "qv4global_p.h"
-#include <private/qv4heap_p.h>
QT_BEGIN_NAMESPACE
namespace QV4 {
+namespace Heap {
+ struct Base;
+}
+
typedef uint Bool;
struct Q_QML_PRIVATE_EXPORT Value
@@ -472,13 +475,6 @@ private:
Encode(void *);
};
-inline
-ReturnedValue Heap::Base::asReturnedValue() const
-{
- return Value::fromHeapObject(const_cast<Heap::Base *>(this)).asReturnedValue();
-}
-
-
template<typename T>
T *value_cast(const Value &v)
{