1// Copyright (C) 2016 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 QV4BOOLEANOBJECT_H
4#define QV4BOOLEANOBJECT_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 "qv4object_p.h"
18#include "qv4functionobject_p.h"
19#include <QtCore/qnumeric.h>
20
21QT_BEGIN_NAMESPACE
22
23namespace QV4 {
24
25namespace Heap {
26
27struct BooleanCtor : FunctionObject {
28 void init(QV4::ExecutionContext *scope);
29};
30
31}
32
33struct BooleanCtor: FunctionObject
34{
35 V4_OBJECT2(BooleanCtor, FunctionObject)
36
37 static ReturnedValue virtualCallAsConstructor(const FunctionObject *, const Value *argv, int argc, const Value *);
38 static ReturnedValue virtualCall(const FunctionObject *f, const Value *thisObject, const Value *argv, int argc);
39};
40
41struct BooleanPrototype: BooleanObject
42{
43 V4_PROTOTYPE(objectPrototype)
44 void init(ExecutionEngine *engine, Object *ctor);
45
46 static ReturnedValue method_toString(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
47 static ReturnedValue method_valueOf(const FunctionObject *, const Value *thisObject, const Value *argv, int argc);
48};
49
50
51}
52
53QT_END_NAMESPACE
54
55#endif // QV4ECMAOBJECTS_P_H
56

source code of qtdeclarative/src/qml/jsruntime/qv4booleanobject_p.h