aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4value_inl_p.h
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/qv4value_inl_p.h
parent058fbed796246be534a7b3a85a784634952985f0 (diff)
Reduce dependencies
Change-Id: I61ee4d25f8929d6723d2bf371efc122fa317e851 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4value_inl_p.h')
-rw-r--r--src/qml/jsruntime/qv4value_inl_p.h13
1 files changed, 8 insertions, 5 deletions
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