diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-06-23 21:05:13 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-07-02 19:29:36 +0000 |
commit | 8728a2b494eb384b65bd4e7c6ec785435a37de9d (patch) | |
tree | 85e42b08a4b1e2836ba5db6d40f4b99a6d52f839 /src/qml/jsruntime/qv4global_p.h | |
parent | 56602df447c5f16257874f2e97b078dcf76f2467 (diff) |
Introduce a PropertyKey class that inherits from Value
This will replace Identifier over the next few commits.
The advantage of PropertyKey is that it can be stored on
the JS stack, so that a GC run won't accidentally clean
up the string/symbol referenced by the key.
Change-Id: Ib4daa4616bcfa537e6d371ef7c7740bc7727a50d
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4global_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4global_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4global_p.h b/src/qml/jsruntime/qv4global_p.h index 607f8b4d28..e3b3423a9d 100644 --- a/src/qml/jsruntime/qv4global_p.h +++ b/src/qml/jsruntime/qv4global_p.h @@ -200,6 +200,7 @@ namespace Heap { struct CppStackFrame; class MemoryManager; class ExecutableAllocator; +struct PropertyKey; struct StringOrSymbol; struct String; struct Symbol; |