Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qv4writebarrier.cpp
Go to the documentation of this file.
1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3#include <private/qv4value_p.h>
4#include <private/qv4mm_p.h>
5
7
8namespace {
10 if (!base)
11 return;
12 base->mark(markStack);
13 }
14}
15namespace QV4 {
16
18{
20 Q_UNUSED(slot);
21 MarkStack * markStack = engine->memoryManager->markStack();
22 if constexpr (isInsertionBarrier)
23 markHeapBase(markStack, Value::fromReturnedValue(value).heapObject());
24}
25
27{
29 Q_UNUSED(slot);
30 MarkStack * markStack = engine->memoryManager->markStack();
31 if constexpr (isInsertionBarrier)
32 markHeapBase(markStack, value);
33}
34
35}
Combined button and popup list for selecting options.
void markHeapBase(QV4::MarkStack *markStack, QV4::Heap::Base *base)
quint64 ReturnedValue
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_UNUSED(x)
static const uint base
Definition qurlidna.cpp:20
QJSEngine engine
[0]
static constexpr Value fromReturnedValue(ReturnedValue val)
Definition qv4value_p.h:165
static constexpr bool isInsertionBarrier
Q_QML_EXPORT static Q_NEVER_INLINE void write_slowpath(EngineBase *engine, Heap::Base *base, ReturnedValue *slot, ReturnedValue value)