aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/memory/qv4writebarrier_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2017-07-04 16:07:50 +0200
committerErik Verbruggen <erik.verbruggen@qt.io>2017-07-05 09:05:55 +0000
commitcfb17c44cf3ae1268d066ba414759068059a7bbd (patch)
tree58efa2997a5ac52b7d1f11ec0c8de2754f02f03b /src/qml/memory/qv4writebarrier_p.h
parent79ceef9f467d065c6e921892e9cc4ed46a0183cc (diff)
Simplify and unite handling of activation objects in Contexts
All ExecutionContexts (except for CatchContext) have or can have some sort of activation object. Unify them in one pointer in the ExecutionContext class, and unify it's handling where it's actually the same. Change-Id: I6750999ddbd5d1d74235ef4b34dcd7546c432541 Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'src/qml/memory/qv4writebarrier_p.h')
-rw-r--r--src/qml/memory/qv4writebarrier_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/memory/qv4writebarrier_p.h b/src/qml/memory/qv4writebarrier_p.h
index 3182fd2aa9..16aec08301 100644
--- a/src/qml/memory/qv4writebarrier_p.h
+++ b/src/qml/memory/qv4writebarrier_p.h
@@ -127,6 +127,8 @@ struct Pointer {
WriteBarrier::write(e, base(), reinterpret_cast<Heap::Base **>(&ptr), reinterpret_cast<Heap::Base *>(newVal));
}
+ T get() { return ptr; }
+
template <typename Type>
Type *cast() { return static_cast<Type *>(ptr); }