aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4executablecompilationunit.cpp
diff options
context:
space:
mode:
authorLuca Di Sera <luca.disera@qt.io>2024-06-21 15:54:01 +0200
committerLuca Di Sera <luca.disera@qt.io>2024-06-28 11:05:13 +0200
commit34cc34d232332efab377a7a1df5c342d2e4525cc (patch)
tree803dc91a0d48896af773a11955ea8ff6ac682ec4 /src/qml/jsruntime/qv4executablecompilationunit.cpp
parentdf684931c96b174033730971ec5cb63a03f01483 (diff)
Fix typo in comment
scopde -> scoped Change-Id: I34d68aa09a9d3fb84cc558055ed0388725f41fbb Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4executablecompilationunit.cpp')
-rw-r--r--src/qml/jsruntime/qv4executablecompilationunit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4executablecompilationunit.cpp b/src/qml/jsruntime/qv4executablecompilationunit.cpp
index 34d737cdae..5e9361a066 100644
--- a/src/qml/jsruntime/qv4executablecompilationunit.cpp
+++ b/src/qml/jsruntime/qv4executablecompilationunit.cpp
@@ -74,7 +74,7 @@ void ExecutableCompilationUnit::populate()
{
/* In general, we should use QV4::Scope whenever we allocate heap objects, and employ write barriers
for member variables pointing to heap objects. However, ExecutableCompilationUnit is special, as it
- is always part of the root set. So instead of using scopde allocations and write barriers, we use a
+ is always part of the root set. So instead of using scoped allocations and write barriers, we use a
slightly different approach: We temporarily block the gc from running. Afterwards, at the end of the
function we check whether the gc was already running, and mark the ExecutableCompilationUnit. This
ensures that all the newly allocated objects of the compilation unit will be marked in turn.