aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/memory/qv4heap_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-02-06 10:57:04 +0100
committerLars Knoll <lars.knoll@qt.io>2017-03-09 08:58:57 +0000
commitb214d6cc2f96837d6502c9a3068bbd0d08b5b929 (patch)
tree7937c9cd8333083a3ad7905432eb5368fea715b7 /src/qml/memory/qv4heap_p.h
parentc13baa8873589c46d19f256ba551a95a6b56d94f (diff)
Add an actual write barrier and centralize it in one place
All stores into the Heap from C++ and Moth should now go through the write barrier. Change-Id: Iae9347754b90d68c10fade9f345842e86ec460cd Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/memory/qv4heap_p.h')
-rw-r--r--src/qml/memory/qv4heap_p.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/qml/memory/qv4heap_p.h b/src/qml/memory/qv4heap_p.h
index 2cf3e721f9..bcd1af7705 100644
--- a/src/qml/memory/qv4heap_p.h
+++ b/src/qml/memory/qv4heap_p.h
@@ -164,26 +164,6 @@ struct Q_QML_EXPORT Base {
};
V4_ASSERT_IS_TRIVIAL(Base)
-template <typename T, size_t o>
-struct Pointer {
- static Q_CONSTEXPR size_t offset = o;
- T operator->() const { return ptr; }
- operator T () const { return ptr; }
-
- void set(ExecutionEngine *e, T newVal) {
- Q_UNUSED(e);
- ptr = newVal;
- }
-
- template <typename Type>
- Type *cast() { return static_cast<Type *>(ptr); }
-
-private:
- T ptr;
-};
-typedef Pointer<char *, 0> V4PointerCheck;
-V4_ASSERT_IS_TRIVIAL(V4PointerCheck)
-
}
#ifdef QT_NO_QOBJECT