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
qv4symbol_p.h
Go to the documentation of this file.
1// Copyright (C) 2018 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#ifndef QV4_SYMBOL_H
4#define QV4_SYMBOL_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include "qv4string_p.h"
18#include "qv4functionobject_p.h"
19
21
22
23namespace QV4 {
24
25namespace Heap {
26
30
32 void init(const QString &s);
33};
34
35#define SymbolObjectMembers(class, Member) \
36 Member(class, Pointer, Symbol *, symbol)
37
42
43}
44
46{
48
49 static ReturnedValue virtualCall(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
50 static ReturnedValue virtualCallAsConstructor(const FunctionObject *, const Value *argv, int argc, const Value *newTarget);
51 static ReturnedValue method_for(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
52 static ReturnedValue method_keyFor(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
53};
54
56{
57 V4_PROTOTYPE(objectPrototype)
58 void init(ExecutionEngine *engine, Object *ctor);
59
60 static ReturnedValue method_toString(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
61 static ReturnedValue method_valueOf(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
62
63 static ReturnedValue method_symbolToPrimitive(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
64};
65
77
85
86}
87
89
90#endif
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
quint64 ReturnedValue
GLdouble s
[6]
Definition qopenglext.h:235
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
#define V4_MANAGED(DataClass, superClass)
#define V4_NEEDS_DESTROY
#define Q_MANAGED_TYPE(type)
#define V4_INTERNALCLASS(c)
#define DECLARE_HEAP_OBJECT(name, base)
#define DECLARE_MARKOBJECTS(class)
#define V4_PROTOTYPE(p)
#define V4_OBJECT2(DataClass, superClass)
view create()
void init(ExecutionEngine *engine)
Definition qv4symbol.cpp:22
ExecutionEngine * engine() const
static ReturnedValue method_keyFor(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
Definition qv4symbol.cpp:62
static ReturnedValue method_for(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
Definition qv4symbol.cpp:51
static ReturnedValue method_toString(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
void init(ExecutionEngine *engine, Object *ctor)
Definition qv4symbol.cpp:75
static ReturnedValue method_symbolToPrimitive(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
static ReturnedValue method_valueOf(const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
QString descriptiveString() const
static constexpr VTable::CallAsConstructor virtualCallAsConstructor
static constexpr VTable::Call virtualCall