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
QV4::DatePrototype Struct Reference

#include <qv4dateobject_p.h>

+ Inheritance diagram for QV4::DatePrototype:
+ Collaboration diagram for QV4::DatePrototype:

Public Member Functions

void init (ExecutionEngine *engine, Object *ctor)
 
- Public Member Functions inherited from QV4::Object
void setInternalClass (Heap::InternalClass *ic)
 
const ValuepropertyData (uint index) const
 
Heap::ArrayData * arrayData () const
 
void setArrayData (ArrayData *a)
 
void getProperty (const InternalClassEntry &entry, Property *p) const
 
void setProperty (const InternalClassEntry &entry, const Property *p)
 
void setProperty (uint index, Value v) const
 
void setProperty (uint index, Heap::Base *b) const
 
void setProperty (ExecutionEngine *engine, uint index, Value v) const
 
void setProperty (ExecutionEngine *engine, uint index, Heap::Base *b) const
 
const VTablevtable () const
 
PropertyAttributes getOwnProperty (PropertyKey id, Property *p=nullptr) const
 
PropertyIndex getValueOrSetter (PropertyKey id, PropertyAttributes *attrs)
 
bool hasProperty (PropertyKey id) const
 
bool defineOwnProperty (PropertyKey id, const Property *p, PropertyAttributes attrs)
 
ReturnedValue getValue (const Value &v, PropertyAttributes attrs) const
 
ReturnedValue getValueByIndex (uint propertyIndex) const
 
bool putValue (uint memberIndex, PropertyAttributes attrs, const Value &value)
 
void defineDefaultProperty (StringOrSymbol *name, const Value &value, PropertyAttributes attributes=Attr_Data|Attr_NotEnumerable)
 
void defineDefaultProperty (const QString &name, const Value &value, PropertyAttributes attributes=Attr_Data|Attr_NotEnumerable)
 
void defineDefaultProperty (const QString &name, VTable::Call code, int argumentCount=0, PropertyAttributes attributes=Attr_Data|Attr_NotEnumerable)
 
void defineDefaultProperty (StringOrSymbol *name, VTable::Call code, int argumentCount=0, PropertyAttributes attributes=Attr_Data|Attr_NotEnumerable)
 
void defineAccessorProperty (const QString &name, VTable::Call getter, VTable::Call setter)
 
void defineAccessorProperty (StringOrSymbol *name, VTable::Call getter, VTable::Call setter)
 
void defineReadonlyProperty (const QString &name, const Value &value)
 
void defineReadonlyProperty (String *name, const Value &value)
 
void defineReadonlyConfigurableProperty (const QString &name, const Value &value)
 
void defineReadonlyConfigurableProperty (StringOrSymbol *name, const Value &value)
 
void addSymbolSpecies ()
 
void insertMember (StringOrSymbol *s, const Value &v, PropertyAttributes attributes=Attr_Data)
 
void insertMember (StringOrSymbol *s, const Property *p, PropertyAttributes attributes)
 
bool isExtensible () const
 
bool preventExtensions ()
 
Heap::Object * getPrototypeOf () const
 
bool setPrototypeOf (const Object *p)
 
void setPrototypeUnchecked (const Object *p)
 
void copyArrayData (Object *other)
 
bool setArrayLength (uint newLen)
 
void setArrayLengthUnchecked (uint l)
 
void arraySet (uint index, const Property *p, PropertyAttributes attributes=Attr_Data)
 
void arraySet (uint index, const Value &value)
 
bool arrayPut (uint index, const Value &value)
 
bool arrayPut (uint index, const Value *values, uint n)
 
void setArrayAttributes (uint i, PropertyAttributes a)
 
void push_back (const Value &v)
 
ArrayData::Type arrayType () const
 
void setArrayType (ArrayData::Type t)
 
void arrayReserve (uint n)
 
void arrayCreate ()
 
void initSparseArray ()
 
SparseArrayNodesparseBegin () const
 
SparseArrayNodesparseEnd () const
 
bool protoHasArray ()
 
ReturnedValue get (StringOrSymbol *name, bool *hasProperty=nullptr, const Value *receiver=nullptr) const
 
ReturnedValue get (uint idx, bool *hasProperty=nullptr, const Value *receiver=nullptr) const
 
QT_DEPRECATED ReturnedValue getIndexed (uint idx, bool *hasProperty=nullptr) const
 
ReturnedValue get (PropertyKey id, const Value *receiver=nullptr, bool *hasProperty=nullptr) const
 
bool put (StringOrSymbol *name, const Value &v, Value *receiver=nullptr)
 
bool put (uint idx, const Value &v, Value *receiver=nullptr)
 
QT_DEPRECATED bool putIndexed (uint idx, const Value &v)
 
bool put (PropertyKey id, const Value &v, Value *receiver=nullptr)
 
bool setIndexed (uint idx, const Value &v, ThrowOnFailure shouldThrow)
 
bool set (StringOrSymbol *name, const Value &v, ThrowOnFailure shouldThrow)
 
bool deleteProperty (PropertyKey id)
 
OwnPropertyKeyIteratorownPropertyKeys (Value *target) const
 
qint64 getLength () const
 
ReturnedValue instanceOf (const Value &var) const
 
bool isConcatSpreadable () const
 
bool isArray () const
 
const FunctionObjectspeciesConstructor (Scope &scope, const FunctionObject *defaultConstructor) const
 
bool setProtoFromNewTarget (const Value *newTarget)
 
ReturnedValue resolveLookupGetter (ExecutionEngine *engine, Lookup *lookup) const
 
ReturnedValue resolveLookupSetter (ExecutionEngine *engine, Lookup *lookup, const Value &value)
 
int metacall (QMetaObject::Call call, int index, void **a)
 
- Public Member Functions inherited from QV4::Managed
Heap::InternalClassinternalClass () const
 
const VTablevtable () const
 
ExecutionEngineengine () const
 
bool isV4SequenceType () const
 
bool isQmlListPropertyType () const
 
bool isArrayLike () const
 
bool isArrayObject () const
 
bool isStringObject () const
 
bool isSymbolObject () const
 
QString className () const
 
bool isEqualTo (const Managed *other) const
 
bool inUse () const
 
bool markBit () const
 
void mark (MarkStack *markStack)
 
Q_ALWAYS_INLINE Heap::BaseheapObject () const
 
template<typename T >
T * cast ()
 
template<typename T >
const T * cast () const
 
- Public Member Functions inherited from QV4::Value
 Value ()=default
 
constexpr Value (quint64 val)
 
bool isString () const
 
bool isStringOrSymbol () const
 
bool isSymbol () const
 
bool isObject () const
 
bool isFunctionObject () const
 
QML_NEARLY_ALWAYS_INLINE StringstringValue () const
 
QML_NEARLY_ALWAYS_INLINE StringOrSymbolstringOrSymbolValue () const
 
QML_NEARLY_ALWAYS_INLINE SymbolsymbolValue () const
 
QML_NEARLY_ALWAYS_INLINE ObjectobjectValue () const
 
QML_NEARLY_ALWAYS_INLINE ManagedPtr managed () const
 
QML_NEARLY_ALWAYS_INLINE Value::HeapBasePtr heapObject () const
 
int toUInt16 () const
 
int toInt32 () const
 
unsigned int toUInt32 () const
 
qint64 toLength () const
 
qint64 toIndex () const
 
bool toBoolean () const
 
double toInteger () const
 
ReturnedValue convertedToNumber () const
 
double toNumber () const
 
double toNumberImpl () const
 
QString toQStringNoThrow () const
 
QString toQString () const
 
QString toQString (bool *ok) const
 
Heap::StringtoString (ExecutionEngine *e) const
 
QV4::PropertyKey toPropertyKey (ExecutionEngine *e) const
 
Heap::Object * toObject (ExecutionEngine *e) const
 
bool isPrimitive () const
 
template<typename T >
const T * as () const
 
template<typename T >
T * as ()
 
template<typename T >
T * cast ()
 
template<typename T >
const T * cast () const
 
uint asArrayLength (bool *ok) const
 
bool sameValue (Value other) const
 
bool sameValueZero (Value other) const
 
void mark (MarkStack *markStack)
 
Valueoperator= (const ScopedValue &v)
 
Valueoperator= (ReturnedValue v)
 
Valueoperator= (ManagedPtr m)
 
Valueoperator= (HeapBasePtr o)
 
template<typename T >
Valueoperator= (const Scoped< T > &t)
 
template<>
const DateObjectas () const
 
template<>
const ErrorObjectas () const
 
template<>
const FunctionObjectas () const
 
template<>
const Managedas () const
 
template<>
const Objectas () const
 
template<>
const ArrayObjectas () const
 
template<>
const StringOrSymbolas () const
 
template<>
const Stringas () const
 
template<>
const UrlObjectas () const
 
template<>
const UrlSearchParamsObjectas () const
 
- Public Member Functions inherited from QV4::StaticValue
 StaticValue ()=default
 
constexpr StaticValue (quint64 val)
 
StaticValueoperator= (ReturnedValue v)
 
template<typename Value >
StaticValueoperator= (const Value &)
 
template<typename Value >
const ValueasValue () const
 
template<typename Value >
ValueasValue ()
 
QV4_NEARLY_ALWAYS_INLINE constexpr quint64rawValueRef ()
 
QV4_NEARLY_ALWAYS_INLINE constexpr quint64 rawValue () const
 
QV4_NEARLY_ALWAYS_INLINE constexpr void setRawValue (quint64 raw)
 
QV4_NEARLY_ALWAYS_INLINE constexpr void setTagValue (quint32 tag, quint32 value)
 
QV4_NEARLY_ALWAYS_INLINE constexpr quint32 value () const
 
QV4_NEARLY_ALWAYS_INLINE constexpr quint32 tag () const
 
QV4_NEARLY_ALWAYS_INLINE constexpr void setTag (quint32 tag)
 
QV4_NEARLY_ALWAYS_INLINE constexpr int int_32 () const
 
QV4_NEARLY_ALWAYS_INLINE constexpr void setInt_32 (int i)
 
QV4_NEARLY_ALWAYS_INLINE uint uint_32 () const
 
QV4_NEARLY_ALWAYS_INLINE constexpr void setEmpty ()
 
Type type () const
 
quint64 quickType () const
 
bool isEmpty () const
 
bool isNull () const
 
bool isBoolean () const
 
bool isInteger () const
 
bool isNullOrUndefined () const
 
bool isUndefined () const
 
bool isDouble () const
 
bool isNumber () const
 
bool isManagedOrUndefined () const
 
bool isManaged () const
 
bool isIntOrBool () const
 
bool integerCompatible () const
 
bool isNaN () const
 
bool isPositiveInt () const
 
QV4_NEARLY_ALWAYS_INLINE double doubleValue () const
 
QV4_NEARLY_ALWAYS_INLINE void setDouble (double d)
 
bool isInt32 ()
 
double asDouble () const
 
bool booleanValue () const
 
int integerValue () const
 
bool tryIntegerConversion ()
 
bool toBoolean () const
 
int toInt32 () const
 
ReturnedValuedata_ptr ()
 
constexpr ReturnedValue asReturnedValue () const
 
template<>
StaticValueoperator= (const Value &value)
 
template<typename Managed >
StaticValueoperator= (const Managed &m)
 
template<>
ValueasValue ()
 
template<>
const ValueasValue () const
 

Static Public Member Functions

static double getThisDate (ExecutionEngine *v4, const Value *thisObject)
 
static ReturnedValue method_parse (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_UTC (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_now (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_toString (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_toDateString (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_toTimeString (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_toLocaleString (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_toLocaleDateString (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_toLocaleTimeString (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_valueOf (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_getTime (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_getYear (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_getFullYear (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_getUTCFullYear (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_getMonth (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_getUTCMonth (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_getDate (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_getUTCDate (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_getDay (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_getUTCDay (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_getHours (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_getUTCHours (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_getMinutes (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_getUTCMinutes (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_getSeconds (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_getUTCSeconds (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_getMilliseconds (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_getUTCMilliseconds (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_getTimezoneOffset (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_setTime (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_setMilliseconds (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_setUTCMilliseconds (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_setSeconds (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_setUTCSeconds (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_setMinutes (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_setUTCMinutes (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_setHours (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_setUTCHours (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_setDate (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_setUTCDate (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_setMonth (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_setUTCMonth (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_setYear (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_setFullYear (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_setUTCFullYear (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_toUTCString (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_toISOString (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_toJSON (const FunctionObject *, const Value *thisObject, const Value *argv, int argc)
 
static ReturnedValue method_symbolToPrimitive (const FunctionObject *f, const Value *thisObject, const Value *, int)
 
static void timezoneUpdated (ExecutionEngine *e)
 
- Static Public Member Functions inherited from QV4::Object
static ReturnedValue getValue (const Value *thisObject, const Value &v, PropertyAttributes attrs)
 
static ReturnedValue getValueAccessor (const Value *thisObject, const Value &v, PropertyAttributes attrs)
 
static ReturnedValue checkedInstanceOf (ExecutionEngine *engine, const FunctionObject *typeObject, const Value &var)
 
- Static Public Member Functions inherited from QV4::Value
static constexpr Value fromStaticValue (StaticValue staticValue)
 
static Value fromHeapObject (HeapBasePtr m)
 
static bool toBooleanImpl (Value val)
 
static double toNumberImpl (Value v)
 
static Heap::StringtoString (ExecutionEngine *e, Value val)
 
static Heap::Object * toObject (ExecutionEngine *e, Value val)
 
static constexpr Value fromReturnedValue (ReturnedValue val)
 
static double toInteger (double d)
 
static int toInt32 (double d)
 
static unsigned int toUInt32 (double d)
 
static constexpr Value emptyValue ()
 
static constexpr Value fromBoolean (bool b)
 
static constexpr Value fromInt32 (int i)
 
static constexpr Value undefinedValue ()
 
static constexpr Value nullValue ()
 
static Value fromDouble (double d)
 
static Value fromUInt32 (uint i)
 
- Static Public Member Functions inherited from QV4::StaticValue
static int valueOffset ()
 
static int tagOffset ()
 
static constexpr quint64 tagValue (quint32 tag, quint32 value)
 
static constexpr quint64 tagBitMask (TagBit bit)
 
static bool integerCompatible (StaticValue a, StaticValue b)
 
static bool bothDouble (StaticValue a, StaticValue b)
 
static QV4_NEARLY_ALWAYS_INLINE bool isInt32 (double d)
 
static constexpr StaticValue fromReturnedValue (ReturnedValue val)
 
static constexpr StaticValue emptyValue ()
 
static constexpr StaticValue fromBoolean (bool b)
 
static constexpr StaticValue fromInt32 (int i)
 
static constexpr StaticValue undefinedValue ()
 
static constexpr StaticValue nullValue ()
 
static StaticValue fromDouble (double d)
 
static StaticValue fromUInt32 (uint i)
 
static double toInteger (double d)
 
static int toInt32 (double d)
 
static unsigned int toUInt32 (double d)
 

Additional Inherited Members

- Public Types inherited from QV4::Object
enum  { NInlineProperties = 2 }
 
enum  { IsObject = true , GetterOffset = 0 , SetterOffset = 1 }
 
enum  ThrowOnFailure { DoThrowOnRejection , DoNotThrow }
 
- Public Types inherited from QV4::Managed
enum  {
  IsExecutionContext = false , IsString = false , IsStringOrSymbol = false , IsObject = false ,
  IsFunctionObject = false , IsErrorObject = false , IsArrayData = false
}
 
enum  { NInlineProperties = 0 }
 
enum  Type {
  Type_Invalid , Type_String , Type_Object , Type_Symbol ,
  Type_ArrayObject , Type_FunctionObject , Type_GeneratorObject , Type_BooleanObject ,
  Type_NumberObject , Type_StringObject , Type_SymbolObject , Type_DateObject ,
  Type_RegExpObject , Type_ErrorObject , Type_ArgumentsObject , Type_JsonObject ,
  Type_MathObject , Type_ProxyObject , Type_UrlObject , Type_UrlSearchParamsObject ,
  Type_ExecutionContext , Type_InternalClass , Type_SetIteratorObject , Type_MapIteratorObject ,
  Type_ArrayIteratorObject , Type_StringIteratorObject , Type_ForInIterator , Type_RegExp ,
  Type_V4Sequence , Type_QmlListProperty
}
 
- Public Types inherited from QV4::Value
using ManagedPtr = Managed *
 
- Public Types inherited from QV4::StaticValue
enum class  TagBit {
  SpecialNegative = 0b10000000000000000000 << 12 , SpecialQNaN = 0b00000000000010000000 << 12 , Special = 0b00000000000001000000 << 12 , IntCompat = 0b00000000000000100000 << 12 ,
  Unmanaged = 0b00000000000000010000 << 12 , IntOrBool = 0b00000000000000001000 << 12 , Number = 0b00000000000000000100 << 12
}
 
enum  Type {
  Managed_Type = 0 , Double_Type = 1 , Undefined_Type = 2 , Empty_Type = quint32(TagBit::Unmanaged) ,
  Null_Type = Empty_Type | quint32(TagBit::IntCompat) , Boolean_Type = Null_Type | quint32(TagBit::IntOrBool) , Integer_Type = Boolean_Type | quint32(TagBit::Number)
}
 
enum  {
  Tag_Shift = 32 , IsIntegerConvertible_Shift = 48 , IsIntegerConvertible_Value = 3 , IsIntegerOrBool_Shift = 47 ,
  IsIntegerOrBool_Value = 7
}
 
enum class  QuickType : quint32 {
  Managed = Managed_Type , Empty = Empty_Type , Null = Null_Type , Boolean = Boolean_Type ,
  Integer = Integer_Type , PlusInf = quint32(TagBit::Number) | quint32(TagBit::Special) | quint32(TagBit::Unmanaged) , MinusInf = PlusInf | quint32(TagBit::SpecialNegative) , NaN = PlusInf | quint32(TagBit::SpecialQNaN) ,
  MinusNaN = NaN | quint32(TagBit::SpecialNegative)
}
 
enum  {
  QT_Empty = Empty_Type , QT_Null = Null_Type , QT_Bool = Boolean_Type , QT_Int = Integer_Type ,
  QuickType_Shift = Tag_Shift
}
 
using HeapBasePtr = Heap::Base *
 
using ValueTypeInternal = QuickType
 
- Public Attributes inherited from QV4::StaticValue
quint64 _val
 
- Static Public Attributes inherited from QV4::StaticValue
static constexpr quint64 ExponentMask = 0b0111111111110000ull << 48
 
static constexpr quint64 Top1Mask = 0b1000000000000000ull << 48
 
static constexpr quint64 Upper3Mask = 0b0000000000001110ull << 48
 
static constexpr quint64 Lower5Mask = 0b0000000000011111ull
 
static constexpr quint64 ManagedMask = ExponentMask | quint64(TagBit::Unmanaged) << Tag_Shift
 
static constexpr quint64 DoubleMask = ManagedMask | quint64(TagBit::Special) << Tag_Shift
 
static constexpr quint64 NumberMask = ManagedMask | quint64(TagBit::Number) << Tag_Shift
 
static constexpr quint64 IntOrBoolMask = ManagedMask | quint64(TagBit::IntOrBool) << Tag_Shift
 
static constexpr quint64 IntCompatMask = ManagedMask | quint64(TagBit::IntCompat) << Tag_Shift
 
static constexpr quint64 EncodeMask = DoubleMask | NumberMask
 
static constexpr quint64 DoubleDiscriminator = ((quint64(TagBit::Unmanaged) | quint64(TagBit::Special)) << Tag_Shift)
 
static constexpr quint64 NumberDiscriminator = ((quint64(TagBit::Unmanaged) | quint64(TagBit::Number)) << Tag_Shift)
 
- Static Protected Member Functions inherited from QV4::Object
static ReturnedValue virtualGet (const Managed *m, PropertyKey id, const Value *receiver, bool *hasProperty)
 
static bool virtualPut (Managed *m, PropertyKey id, const Value &value, Value *receiver)
 
static bool virtualDeleteProperty (Managed *m, PropertyKey id)
 
static bool virtualHasProperty (const Managed *m, PropertyKey id)
 
static PropertyAttributes virtualGetOwnProperty (const Managed *m, PropertyKey id, Property *p)
 
static bool virtualDefineOwnProperty (Managed *m, PropertyKey id, const Property *p, PropertyAttributes attrs)
 
static bool virtualIsExtensible (const Managed *m)
 
static bool virtualPreventExtensions (Managed *)
 
static Heap::Object * virtualGetPrototypeOf (const Managed *)
 
static bool virtualSetPrototypeOf (Managed *, const Object *)
 
static OwnPropertyKeyIteratorvirtualOwnPropertyKeys (const Object *m, Value *target)
 
static qint64 virtualGetLength (const Managed *m)
 
static ReturnedValue virtualInstanceOf (const Object *typeObject, const Value &var)
 
static ReturnedValue virtualResolveLookupGetter (const Object *object, ExecutionEngine *engine, Lookup *lookup)
 
static bool virtualResolveLookupSetter (Object *object, ExecutionEngine *engine, Lookup *lookup, const Value &value)
 
static int virtualMetacall (Object *object, QMetaObject::Call call, int index, void **a)
 
- Static Protected Member Functions inherited from QV4::Managed
static bool virtualIsEqualTo (Managed *m, Managed *other)
 
- Static Protected Attributes inherited from QV4::VTableBase
static constexpr VTable::Destroy virtualDestroy = nullptr
 
static constexpr VTable::IsEqualTo virtualIsEqualTo = nullptr
 
static constexpr VTable::Get virtualGet = nullptr
 
static constexpr VTable::Put virtualPut = nullptr
 
static constexpr VTable::DeleteProperty virtualDeleteProperty = nullptr
 
static constexpr VTable::HasProperty virtualHasProperty = nullptr
 
static constexpr VTable::GetOwnProperty virtualGetOwnProperty = nullptr
 
static constexpr VTable::DefineOwnProperty virtualDefineOwnProperty = nullptr
 
static constexpr VTable::IsExtensible virtualIsExtensible = nullptr
 
static constexpr VTable::PreventExtensions virtualPreventExtensions = nullptr
 
static constexpr VTable::GetPrototypeOf virtualGetPrototypeOf = nullptr
 
static constexpr VTable::SetPrototypeOf virtualSetPrototypeOf = nullptr
 
static constexpr VTable::GetLength virtualGetLength = nullptr
 
static constexpr VTable::OwnPropertyKeys virtualOwnPropertyKeys = nullptr
 
static constexpr VTable::InstanceOf virtualInstanceOf = nullptr
 
static constexpr VTable::Call virtualCall = nullptr
 
static constexpr VTable::CallAsConstructor virtualCallAsConstructor = nullptr
 
static constexpr VTable::CallWithMetaTypes virtualCallWithMetaTypes = nullptr
 
static constexpr VTable::ResolveLookupGetter virtualResolveLookupGetter = nullptr
 
static constexpr VTable::ResolveLookupSetter virtualResolveLookupSetter = nullptr
 
static constexpr VTable::Metacall virtualMetacall = nullptr
 

Detailed Description

Definition at line 232 of file qv4dateobject_p.h.

Member Function Documentation

◆ getThisDate()

double DatePrototype::getThisDate ( ExecutionEngine * v4,
const Value * thisObject )
static

Definition at line 897 of file qv4dateobject.cpp.

References QV4::Value::as(), and QV4::ExecutionEngine::throwTypeError().

+ Here is the call graph for this function:

◆ init()

void DatePrototype::init ( ExecutionEngine * engine,
Object * ctor )

Definition at line 824 of file qv4dateobject.cpp.

References QV4::Attr_ReadOnly_ButConfigurable, QV4::FunctionObject::createBuiltinFunction(), engine, QV4::Value::fromInt32(), getLocalTZA(), o, and QStringLiteral.

+ Here is the call graph for this function:

◆ method_getDate()

ReturnedValue DatePrototype::method_getDate ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1054 of file qv4dateobject.cpp.

References DateFromTime(), LocalTime(), and QV4::ExecutionEngine::localTZA.

+ Here is the call graph for this function:

◆ method_getDay()

ReturnedValue DatePrototype::method_getDay ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1072 of file qv4dateobject.cpp.

References LocalTime(), QV4::ExecutionEngine::localTZA, and WeekDay().

+ Here is the call graph for this function:

◆ method_getFullYear()

ReturnedValue DatePrototype::method_getFullYear ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1018 of file qv4dateobject.cpp.

References LocalTime(), QV4::ExecutionEngine::localTZA, and YearFromTime().

+ Here is the call graph for this function:

◆ method_getHours()

ReturnedValue DatePrototype::method_getHours ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1090 of file qv4dateobject.cpp.

References HourFromTime(), LocalTime(), and QV4::ExecutionEngine::localTZA.

+ Here is the call graph for this function:

◆ method_getMilliseconds()

ReturnedValue DatePrototype::method_getMilliseconds ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1144 of file qv4dateobject.cpp.

References LocalTime(), QV4::ExecutionEngine::localTZA, and msFromTime().

+ Here is the call graph for this function:

◆ method_getMinutes()

ReturnedValue DatePrototype::method_getMinutes ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1108 of file qv4dateobject.cpp.

References LocalTime(), QV4::ExecutionEngine::localTZA, and MinFromTime().

+ Here is the call graph for this function:

◆ method_getMonth()

ReturnedValue DatePrototype::method_getMonth ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1036 of file qv4dateobject.cpp.

References LocalTime(), QV4::ExecutionEngine::localTZA, and MonthFromTime().

+ Here is the call graph for this function:

◆ method_getSeconds()

ReturnedValue DatePrototype::method_getSeconds ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1126 of file qv4dateobject.cpp.

References LocalTime(), QV4::ExecutionEngine::localTZA, and SecFromTime().

+ Here is the call graph for this function:

◆ method_getTime()

ReturnedValue DatePrototype::method_getTime ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1002 of file qv4dateobject.cpp.

◆ method_getTimezoneOffset()

ReturnedValue DatePrototype::method_getTimezoneOffset ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1162 of file qv4dateobject.cpp.

References LocalTime(), QV4::ExecutionEngine::localTZA, and msPerMinute.

+ Here is the call graph for this function:

◆ method_getUTCDate()

ReturnedValue DatePrototype::method_getUTCDate ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1063 of file qv4dateobject.cpp.

References DateFromTime().

+ Here is the call graph for this function:

◆ method_getUTCDay()

ReturnedValue DatePrototype::method_getUTCDay ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1081 of file qv4dateobject.cpp.

References WeekDay().

+ Here is the call graph for this function:

◆ method_getUTCFullYear()

ReturnedValue DatePrototype::method_getUTCFullYear ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1027 of file qv4dateobject.cpp.

References YearFromTime().

+ Here is the call graph for this function:

◆ method_getUTCHours()

ReturnedValue DatePrototype::method_getUTCHours ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1099 of file qv4dateobject.cpp.

References HourFromTime().

+ Here is the call graph for this function:

◆ method_getUTCMilliseconds()

ReturnedValue DatePrototype::method_getUTCMilliseconds ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1153 of file qv4dateobject.cpp.

References msFromTime().

+ Here is the call graph for this function:

◆ method_getUTCMinutes()

ReturnedValue DatePrototype::method_getUTCMinutes ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1117 of file qv4dateobject.cpp.

References MinFromTime().

+ Here is the call graph for this function:

◆ method_getUTCMonth()

ReturnedValue DatePrototype::method_getUTCMonth ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1045 of file qv4dateobject.cpp.

References MonthFromTime().

+ Here is the call graph for this function:

◆ method_getUTCSeconds()

ReturnedValue DatePrototype::method_getUTCSeconds ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1135 of file qv4dateobject.cpp.

References SecFromTime().

+ Here is the call graph for this function:

◆ method_getYear()

ReturnedValue DatePrototype::method_getYear ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1009 of file qv4dateobject.cpp.

References LocalTime(), QV4::ExecutionEngine::localTZA, and YearFromTime().

+ Here is the call graph for this function:

◆ method_now()

ReturnedValue DatePrototype::method_now ( const FunctionObject * ,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 948 of file qv4dateobject.cpp.

References currentTime().

+ Here is the call graph for this function:

◆ method_parse()

ReturnedValue DatePrototype::method_parse ( const FunctionObject * f,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 905 of file qv4dateobject.cpp.

References ParseString(), and qt_qnan().

+ Here is the call graph for this function:

◆ method_setDate()

ReturnedValue DatePrototype::method_setDate ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1339 of file qv4dateobject.cpp.

References QV4::Value::as(), date, QV4::EngineBase::hasException, LocalTime(), QV4::ExecutionEngine::localTZA, MakeDate(), MakeDay(), MonthFromTime(), qt_qnan(), QV4::ExecutionEngine::throwTypeError(), TimeWithinDay(), QV4::Value::toNumber(), QV4::Encode::undefined(), UTC(), and YearFromTime().

+ Here is the call graph for this function:

◆ method_setFullYear()

ReturnedValue DatePrototype::method_setFullYear ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1453 of file qv4dateobject.cpp.

References QV4::Value::as(), date, DateFromTime(), QV4::EngineBase::hasException, LocalTime(), QV4::ExecutionEngine::localTZA, MakeDate(), MakeDay(), MonthFromTime(), qt_qnan(), QV4::ExecutionEngine::throwTypeError(), TimeWithinDay(), QV4::Value::toNumber(), QV4::Encode::undefined(), and UTC().

+ Here is the call graph for this function:

◆ method_setHours()

ReturnedValue DatePrototype::method_setHours ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1295 of file qv4dateobject.cpp.

References QV4::Value::as(), Day(), QV4::EngineBase::hasException, LocalTime(), QV4::ExecutionEngine::localTZA, MakeDate(), MakeTime(), MinFromTime(), msFromTime(), qt_qnan(), SecFromTime(), QV4::ExecutionEngine::throwTypeError(), QV4::Value::toNumber(), QV4::Encode::undefined(), and UTC().

+ Here is the call graph for this function:

◆ method_setMilliseconds()

ReturnedValue DatePrototype::method_setMilliseconds ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1185 of file qv4dateobject.cpp.

References QV4::Value::as(), Day(), QV4::EngineBase::hasException, HourFromTime(), LocalTime(), QV4::ExecutionEngine::localTZA, MakeDate(), MakeTime(), MinFromTime(), qt_qnan(), SecFromTime(), QV4::ExecutionEngine::throwTypeError(), QV4::Value::toNumber(), QV4::Encode::undefined(), and UTC().

+ Here is the call graph for this function:

◆ method_setMinutes()

ReturnedValue DatePrototype::method_setMinutes ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1255 of file qv4dateobject.cpp.

References QV4::Value::as(), Day(), QV4::EngineBase::hasException, HourFromTime(), LocalTime(), QV4::ExecutionEngine::localTZA, MakeDate(), MakeTime(), msFromTime(), qt_qnan(), SecFromTime(), QV4::ExecutionEngine::throwTypeError(), QV4::Value::toNumber(), QV4::Encode::undefined(), and UTC().

+ Here is the call graph for this function:

◆ method_setMonth()

ReturnedValue DatePrototype::method_setMonth ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1375 of file qv4dateobject.cpp.

References QV4::Value::as(), date, DateFromTime(), QV4::EngineBase::hasException, LocalTime(), QV4::ExecutionEngine::localTZA, MakeDate(), MakeDay(), qt_qnan(), QV4::ExecutionEngine::throwTypeError(), TimeWithinDay(), QV4::Value::toNumber(), QV4::Encode::undefined(), UTC(), and YearFromTime().

+ Here is the call graph for this function:

◆ method_setSeconds()

ReturnedValue DatePrototype::method_setSeconds ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1219 of file qv4dateobject.cpp.

References QV4::Value::as(), Day(), QV4::EngineBase::hasException, HourFromTime(), LocalTime(), QV4::ExecutionEngine::localTZA, MakeDate(), MakeTime(), MinFromTime(), msFromTime(), qt_qnan(), QV4::ExecutionEngine::throwTypeError(), QV4::Value::toNumber(), QV4::Encode::undefined(), and UTC().

+ Here is the call graph for this function:

◆ method_setTime()

ReturnedValue DatePrototype::method_setTime ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1171 of file qv4dateobject.cpp.

References QV4::Value::as(), QV4::EngineBase::hasException, qt_qnan(), QV4::ExecutionEngine::throwTypeError(), QV4::Value::toNumber(), and QV4::Encode::undefined().

+ Here is the call graph for this function:

◆ method_setUTCDate()

ReturnedValue DatePrototype::method_setUTCDate ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1357 of file qv4dateobject.cpp.

References QV4::Value::as(), date, QV4::EngineBase::hasException, MakeDate(), MakeDay(), MonthFromTime(), qt_qnan(), QV4::ExecutionEngine::throwTypeError(), TimeWithinDay(), QV4::Value::toNumber(), QV4::Encode::undefined(), and YearFromTime().

+ Here is the call graph for this function:

◆ method_setUTCFullYear()

ReturnedValue DatePrototype::method_setUTCFullYear ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1437 of file qv4dateobject.cpp.

References QV4::Value::as(), date, DateFromTime(), MakeDate(), MakeDay(), MonthFromTime(), qt_qnan(), QV4::ExecutionEngine::throwTypeError(), TimeWithinDay(), and QV4::Value::toNumber().

+ Here is the call graph for this function:

◆ method_setUTCHours()

ReturnedValue DatePrototype::method_setUTCHours ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1322 of file qv4dateobject.cpp.

References QV4::Value::as(), Day(), MakeDate(), MakeTime(), MinFromTime(), msFromTime(), qt_qnan(), SecFromTime(), QV4::ExecutionEngine::throwTypeError(), and QV4::Value::toNumber().

+ Here is the call graph for this function:

◆ method_setUTCMilliseconds()

ReturnedValue DatePrototype::method_setUTCMilliseconds ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1202 of file qv4dateobject.cpp.

References QV4::Value::as(), Day(), QV4::EngineBase::hasException, HourFromTime(), MakeDate(), MakeTime(), MinFromTime(), qt_qnan(), SecFromTime(), QV4::ExecutionEngine::throwTypeError(), QV4::Value::toNumber(), and QV4::Encode::undefined().

+ Here is the call graph for this function:

◆ method_setUTCMinutes()

ReturnedValue DatePrototype::method_setUTCMinutes ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1279 of file qv4dateobject.cpp.

References QV4::Value::as(), Day(), HourFromTime(), MakeDate(), MakeTime(), msFromTime(), qt_qnan(), SecFromTime(), QV4::ExecutionEngine::throwTypeError(), and QV4::Value::toNumber().

+ Here is the call graph for this function:

◆ method_setUTCMonth()

ReturnedValue DatePrototype::method_setUTCMonth ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1396 of file qv4dateobject.cpp.

References QV4::Value::as(), date, DateFromTime(), MakeDate(), MakeDay(), qt_qnan(), QV4::ExecutionEngine::throwTypeError(), TimeWithinDay(), QV4::Value::toNumber(), and YearFromTime().

+ Here is the call graph for this function:

◆ method_setUTCSeconds()

ReturnedValue DatePrototype::method_setUTCSeconds ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1240 of file qv4dateobject.cpp.

References QV4::Value::as(), Day(), HourFromTime(), MakeDate(), MakeTime(), MinFromTime(), msFromTime(), qt_qnan(), QV4::ExecutionEngine::throwTypeError(), and QV4::Value::toNumber().

+ Here is the call graph for this function:

◆ method_setYear()

ReturnedValue DatePrototype::method_setYear ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1411 of file qv4dateobject.cpp.

References QV4::Value::as(), DateFromTime(), LocalTime(), QV4::ExecutionEngine::localTZA, MakeDate(), MakeDay(), MonthFromTime(), qt_qnan(), QV4::ExecutionEngine::throwTypeError(), TimeWithinDay(), QV4::Value::toInteger(), QV4::Value::toNumber(), and UTC().

+ Here is the call graph for this function:

◆ method_symbolToPrimitive()

ReturnedValue DatePrototype::method_symbolToPrimitive ( const FunctionObject * f,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1565 of file qv4dateobject.cpp.

References hint(), QV4::ExecutionEngine::id_default(), QV4::ExecutionEngine::id_number(), QV4::ExecutionEngine::id_string(), QV4::Value::isObject(), QV4::Value::isString(), QV4::RuntimeHelpers::ordinaryToPrimitive(), QV4::Value::stringValue(), and QV4::ExecutionEngine::throwTypeError().

+ Here is the call graph for this function:

◆ method_toDateString()

ReturnedValue DatePrototype::method_toDateString ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 960 of file qv4dateobject.cpp.

References QV4::ExecutionEngine::newString(), and ToDateString().

+ Here is the call graph for this function:

◆ method_toISOString()

ReturnedValue DatePrototype::method_toISOString ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1503 of file qv4dateobject.cpp.

References addZeroPrefixedInt(), QV4::Value::as(), DateFromTime(), HourFromTime(), MinFromTime(), MonthFromTime(), msFromTime(), QV4::ExecutionEngine::newString(), qAbs(), RETURN_RESULT, SecFromTime(), QV4::ExecutionEngine::throwRangeError(), QV4::ExecutionEngine::throwTypeError(), and YearFromTime().

+ Here is the call graph for this function:

◆ method_toJSON()

ReturnedValue DatePrototype::method_toJSON ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1542 of file qv4dateobject.cpp.

References QV4::Value::as(), QV4::checkedResult(), QV4::EngineBase::hasException, QV4::ExecutionEngine::newString(), QV4::Encode::null(), QV4::NUMBER_HINT, QStringLiteral, QV4::ExecutionEngine::throwTypeError(), QV4::Value::toObject(), QV4::RuntimeHelpers::toPrimitive(), and QV4::Encode::undefined().

+ Here is the call graph for this function:

◆ method_toLocaleDateString()

ReturnedValue DatePrototype::method_toLocaleDateString ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 981 of file qv4dateobject.cpp.

References QV4::ExecutionEngine::newString(), and ToLocaleDateString().

+ Here is the call graph for this function:

◆ method_toLocaleString()

ReturnedValue DatePrototype::method_toLocaleString ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 974 of file qv4dateobject.cpp.

References QV4::ExecutionEngine::newString(), and ToLocaleString().

+ Here is the call graph for this function:

◆ method_toLocaleTimeString()

ReturnedValue DatePrototype::method_toLocaleTimeString ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 988 of file qv4dateobject.cpp.

References QV4::ExecutionEngine::newString(), and ToLocaleTimeString().

+ Here is the call graph for this function:

◆ method_toString()

ReturnedValue DatePrototype::method_toString ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 953 of file qv4dateobject.cpp.

References QV4::ExecutionEngine::localTZA, QV4::ExecutionEngine::newString(), and ToString().

+ Here is the call graph for this function:

◆ method_toTimeString()

ReturnedValue DatePrototype::method_toTimeString ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 967 of file qv4dateobject.cpp.

References QV4::ExecutionEngine::newString(), and ToTimeString().

+ Here is the call graph for this function:

◆ method_toUTCString()

ReturnedValue DatePrototype::method_toUTCString ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 1479 of file qv4dateobject.cpp.

References QV4::Value::as(), QV4::ExecutionEngine::newString(), QV4::ExecutionEngine::throwTypeError(), and ToUTCString().

+ Here is the call graph for this function:

◆ method_UTC()

ReturnedValue DatePrototype::method_UTC ( const FunctionObject * f,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 913 of file qv4dateobject.cpp.

References QV4::EngineBase::hasException, MakeDate(), MakeDay(), MakeTime(), qIsNaN(), qQNaN(), TimeClip(), QV4::Value::toInteger(), QV4::Value::toNumber(), and QV4::Encode::undefined().

+ Here is the call graph for this function:

◆ method_valueOf()

ReturnedValue DatePrototype::method_valueOf ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 995 of file qv4dateobject.cpp.

◆ timezoneUpdated()

void DatePrototype::timezoneUpdated ( ExecutionEngine * e)
static

Definition at line 1581 of file qv4dateobject.cpp.

References getLocalTZA(), and QV4::ExecutionEngine::localTZA.

+ Here is the call graph for this function:

The documentation for this struct was generated from the following files: