aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4estable_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-08-26 15:07:50 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2018-08-28 21:45:45 +0000
commit464b878b973710077b2b92b1682d6f38c83554dd (patch)
tree2577a70c9809bebc3776a0e11422badfdd310c90 /src/qml/jsruntime/qv4estable_p.h
parentbead103138c0d9dff3c9f927c9c4e2f44ee7db4c (diff)
Implement support for WeakMap
Change-Id: Id23e80fe5918ba7dc897568123bf3db4d35e9092 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4estable_p.h')
-rw-r--r--src/qml/jsruntime/qv4estable_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4estable_p.h b/src/qml/jsruntime/qv4estable_p.h
index c665467760..f54fc37a7b 100644
--- a/src/qml/jsruntime/qv4estable_p.h
+++ b/src/qml/jsruntime/qv4estable_p.h
@@ -64,7 +64,7 @@ public:
ESTable();
~ESTable();
- void markObjects(MarkStack *s);
+ void markObjects(MarkStack *s, bool isWeakMap);
void clear();
void set(const Value &k, const Value &v);
bool has(const Value &k) const;
@@ -73,6 +73,8 @@ public:
uint size() const;
void iterate(uint idx, Value *k, Value *v);
+ void removeUnmarkedKeys();
+
private:
Value *m_keys = nullptr;
Value *m_values = nullptr;