aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4mm_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-11-02 16:30:26 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-05 18:54:51 +0100
commit025365f1dc6dc9c3244a125882433e55b57fa672 (patch)
tree6cab46d0595e7c9a8b61c8f2eb620dba009f30f8 /src/qml/jsruntime/qv4mm_p.h
parentc9a90b3181723061e27e7545b70a66dda4f4306d (diff)
Refactor marking GC'ed objects
Don't use recursive function calls anymore. Instead, push marked objects onto the JS stack, and then pop them off when their children are being marked. Should reduce stack memory usage, and improves performance by ~5%. Change-Id: I2d37d97579144fcba87ec8e9fd545dd220c01fbb Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4mm_p.h')
-rw-r--r--src/qml/jsruntime/qv4mm_p.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4mm_p.h b/src/qml/jsruntime/qv4mm_p.h
index 95f49545b8..f3258519de 100644
--- a/src/qml/jsruntime/qv4mm_p.h
+++ b/src/qml/jsruntime/qv4mm_p.h
@@ -91,9 +91,6 @@ public:
MemoryManager();
~MemoryManager();
- void protect(Managed *m);
- void unprotect(Managed *m);
-
// TODO: this is only for 64bit (and x86 with SSE/AVX), so exend it for other architectures to be slightly more efficient (meaning, align on 8-byte boundaries).
// Note: all occurances of "16" in alloc/dealloc are also due to the alignment.
static inline std::size_t align(std::size_t size)