![]() |
Qt 6.x
The Qt SDK
|
#include "qv4typedarray_p.h"
#include "qv4arrayiterator_p.h"
#include "qv4arraybuffer_p.h"
#include "qv4symbol_p.h"
#include "qv4runtime_p.h"
#include <QtCore/qatomic.h>
#include <cmath>
Go to the source code of this file.
Classes | |
struct | ClampedUInt8 |
struct | TypedArrayOwnPropertyKeyIterator |
Variables | |
const TypedArrayOperations | operations [NTypedArrayTypes] |
ReturnedValue atomicAdd | ( | char * | data, |
Value | v | ||
) |
Definition at line 111 of file qv4typedarray.cpp.
References QAtomicOps< X >::fetchAndAddOrdered(), and typeToValue().
ReturnedValue atomicAnd | ( | char * | data, |
Value | v | ||
) |
Definition at line 120 of file qv4typedarray.cpp.
References QAtomicOps< X >::fetchAndAndOrdered(), and typeToValue().
ReturnedValue atomicCompareExchange | ( | char * | data, |
Value | expected, | ||
Value | v | ||
) |
Definition at line 165 of file qv4typedarray.cpp.
References expected, QAtomicOps< X >::testAndSetOrdered(), and typeToValue().
ReturnedValue atomicExchange | ( | char * | data, |
Value | v | ||
) |
Definition at line 129 of file qv4typedarray.cpp.
References QAtomicOps< X >::fetchAndStoreOrdered(), and typeToValue().
ReturnedValue atomicLoad | ( | char * | data | ) |
Definition at line 176 of file qv4typedarray.cpp.
References QAtomicOps< X >::loadRelaxed(), and typeToValue().
ReturnedValue atomicOr | ( | char * | data, |
Value | v | ||
) |
Definition at line 138 of file qv4typedarray.cpp.
References QAtomicOps< X >::fetchAndOrOrdered(), and typeToValue().
ReturnedValue atomicStore | ( | char * | data, |
Value | v | ||
) |
Definition at line 184 of file qv4typedarray.cpp.
References QAtomicOps< X >::storeRelaxed(), and typeToValue().
ReturnedValue atomicSub | ( | char * | data, |
Value | v | ||
) |
Definition at line 147 of file qv4typedarray.cpp.
References QAtomicOps< X >::fetchAndSubOrdered(), and typeToValue().
ReturnedValue atomicXor | ( | char * | data, |
Value | v | ||
) |
Definition at line 156 of file qv4typedarray.cpp.
References QAtomicOps< X >::fetchAndXorOrdered(), and typeToValue().
DEFINE_OBJECT_VTABLE | ( | IntrinsicTypedArrayCtor | ) |
DEFINE_OBJECT_VTABLE | ( | IntrinsicTypedArrayPrototype | ) |
DEFINE_OBJECT_VTABLE | ( | TypedArray | ) |
DEFINE_OBJECT_VTABLE | ( | TypedArrayCtor | ) |
DEFINE_OBJECT_VTABLE | ( | TypedArrayPrototype | ) |
Q_STATIC_ASSERT | ( | (int) ExecutionEngine::NTypedArrayTypes | = =(int) NTypedArrayTypes | ) |
ReturnedValue read | ( | const char * | data | ) |
Definition at line 101 of file qv4typedarray.cpp.
References typeToValue().
Referenced by accessAsString(), alreadyDebugging(), QThreadPipe::check(), convertValue(), QDtlsPrivateOpenSSL::decryptDatagram(), doWriteProperties(), QIBaseResultPrivate::fetchBlob(), QQmlJS::Dom::PropertyDefinition::iterateDirectSubpaths(), lookupVendorIdInSystemDatabase(), QV4::IntrinsicTypedArrayPrototype::method_set(), QFSFileEnginePrivate::nativeRead(), operator>>(), QCborStreamReaderPrivate::preread(), qGetBinaryData(), MFStream::Read(), QTgaFile::readImage(), readOutRedirectFile(), QZipReaderPrivate::scanFiles(), and QV4::TypedArrayCtor::virtualCallAsConstructor().
|
inlinestatic |
Definition at line 31 of file qv4typedarray.cpp.
References Q_ASSERT.
Referenced by constructRoute(), QFont::fromString(), QGeoServiceProviderPrivate::loadMeta(), QGeoServiceProviderPrivate::loadPlugin(), main(), QGeoServiceProviderPrivate::manager(), QQmlDesignerMetaObject::metaCall(), parseMapboxBanner(), parseMapboxBannerInstruction(), parseMapboxVoiceInstruction(), QGeoRouteParserOsrmV5Private::parseReply(), parseReview(), QLocale::toDouble(), QtPrivate::toFloat(), QCborValue::toVariant(), and valueToType().
|
inlinestatic |
Definition at line 23 of file qv4typedarray.cpp.
References Q_ASSERT.
Referenced by QQmlLocalStorage::openDatabaseSync(), QV4::Value::toUInt32(), and valueToType().
|
static |
Definition at line 782 of file qv4typedarray.cpp.
References QV4::Scope::alloc(), arguments, QV4::TypedArray::arrayType(), QV4::FunctionObject::callAsConstructor(), QV4::Scope::engine, QV4::Object::speciesConstructor(), QV4::ExecutionEngine::throwTypeError(), and QV4::ExecutionEngine::typedArrayCtors.
Referenced by QV4::IntrinsicTypedArrayPrototype::method_filter(), QV4::IntrinsicTypedArrayPrototype::method_map(), and QV4::IntrinsicTypedArrayPrototype::method_slice().
ReturnedValue typeToValue | ( | ClampedUInt8 | t | ) |
Definition at line 49 of file qv4typedarray.cpp.
ReturnedValue typeToValue | ( | T | t | ) |
Definition at line 44 of file qv4typedarray.cpp.
Referenced by atomicAdd(), atomicAnd(), atomicCompareExchange(), atomicExchange(), atomicLoad(), atomicOr(), atomicStore(), atomicSub(), atomicXor(), and read().
|
static |
Definition at line 1596 of file qv4typedarray.cpp.
References o.
Referenced by QV4::IntrinsicTypedArrayCtor::method_from(), and QV4::IntrinsicTypedArrayCtor::method_of().
T valueToType | ( | Value | value | ) |
Definition at line 54 of file qv4typedarray.cpp.
References Q_ASSERT, and toInt32().
ClampedUInt8 valueToType | ( | Value | value | ) |
Definition at line 62 of file qv4typedarray.cpp.
References d, Q_ASSERT, and qBound().
float valueToType | ( | Value | value | ) |
Definition at line 86 of file qv4typedarray.cpp.
References d, Q_ASSERT, and toDouble().
double valueToType | ( | Value | value | ) |
Definition at line 94 of file qv4typedarray.cpp.
References Q_ASSERT, and toDouble().
Definition at line 105 of file qv4typedarray.cpp.
const TypedArrayOperations operations[NTypedArrayTypes] |
Definition at line 221 of file qv4typedarray.cpp.
Referenced by QV4::TypedArrayPrototype::init(), QV4::Heap::TypedArrayCtor::init(), and QV4::TypedArrayCtor::virtualCallAsConstructor().