Debian Codegraph @

src/3rdparty/javascriptcore/JavaScriptCore/runtime/DateInstance.h

raw symbols SCIP
1 /*
2 * Copyright (C) 1999-2000 Harri Porten ([email protected])
3 * Copyright (C) 2008 Apple Inc. All rights reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 */
20
21 #ifndef DateInstance_h
22 #define DateInstance_hcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/DateInstance.h:22:9`!
23
24 #include "JSWrapperObject.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSWrapperObject.h`/
25
26 namespace WTFcxx . . $ QTWTF/ {
27 struct GregorianDateTimecxx . . $ QTWTF/GregorianDateTime#;
28 }
29
30 namespace JSCcxx . . $ `<built-in>:463:9`! {
31
32 class DateInstancecxx . . $ QTJSC/DateInstance# : public JSWrapperObjectcxx . . $ QTJSC/JSWrapperObject# {
33 public:
34 DateInstancecxx . . $ QTJSC/DateInstance#DateInstance(33eae00a62075347).(ExecStatecxx . . $ QTJSC/ExecState#*, double);
35 explicit DateInstancecxx . . $ QTJSC/DateInstance#DateInstance(aad11863945fc14a).(ExecStatecxx . . $ QTJSC/ExecState#*, NonNullPassRefPtrcxx . . $ NonNullPassRefPtr#<Structurecxx . . $ QTJSC/Structure#>);
36
37 double internalNumbercxx . . $ QTJSC/DateInstance#internalNumber(21b6c25e127938e2).() const { return internalValuecxx . . $ QTJSC/JSWrapperObject#internalValue(888c053acf364da1).().uncheckedGetNumber(); }
38
39 static JS_EXPORTDATAcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/config.h:36:9`! const ClassInfocxx . . $ QTJSC/ClassInfo# infocxx . . $ QTJSC/DateInstance#info.;
40
41 const GregorianDateTimecxx . . $ QTJSC/GregorianDateTime#* gregorianDateTimecxx . . $ QTJSC/DateInstance#gregorianDateTime(24e9d5025e7f44d0).(ExecStatecxx . . $ QTJSC/ExecState#* exec) const
42 {
43 if (m_data && m_data->m_gregorianDateTimeCachedForMS == internalNumber())
44 return &m_data->m_cachedGregorianDateTime;
45 return calculateGregorianDateTimecxx . . $ QTJSC/DateInstance#calculateGregorianDateTime(24e9d5025e7f44d0).(exec);
46 }
47
48 const GregorianDateTimecxx . . $ QTJSC/GregorianDateTime#* gregorianDateTimeUTCcxx . . $ QTJSC/DateInstance#gregorianDateTimeUTC(24e9d5025e7f44d0).(ExecStatecxx . . $ QTJSC/ExecState#* exec) const
49 {
50 if (m_data && m_data->m_gregorianDateTimeUTCCachedForMS == internalNumber())
51 return &m_data->m_cachedGregorianDateTimeUTC;
52 return calculateGregorianDateTimeUTCcxx . . $ QTJSC/DateInstance#calculateGregorianDateTimeUTC(24e9d5025e7f44d0).(exec);
53 }
54
55 static PassRefPtrcxx . . $ PassRefPtr#<Structurecxx . . $ QTJSC/Structure#> createStructurecxx . . $ QTJSC/DateInstance#createStructure(da75fbe5e97e240f).(JSValuecxx . . $ QTJSC/JSValue# prototype)
56 {
57 return Structure::create(prototype, TypeInfocxx . . $ QTJSC/TypeInfo#TypeInfo(85e540a0e5560fef).(ObjectTypecxx . . $ QTJSC/ObjectType., StructureFlagscxx . . $ QTJSC/DateInstance#StructureFlags.));
58 }
59
60 protected:
61 static const unsigned StructureFlagscxx . . $ QTJSC/DateInstance#StructureFlags. = OverridesMarkChildrencxx . . $ QTJSC/OverridesMarkChildren. | JSWrapperObjectcxx . . $ QTJSC/JSWrapperObject#::StructureFlagscxx . . $ QTJSC/JSObject#StructureFlags.;
62
63 private:
64 const GregorianDateTimecxx . . $ QTJSC/GregorianDateTime#* calculateGregorianDateTimecxx . . $ QTJSC/DateInstance#calculateGregorianDateTime(24e9d5025e7f44d0).(ExecStatecxx . . $ QTJSC/ExecState#*) const;
65 const GregorianDateTimecxx . . $ QTJSC/GregorianDateTime#* calculateGregorianDateTimeUTCcxx . . $ QTJSC/DateInstance#calculateGregorianDateTimeUTC(24e9d5025e7f44d0).(ExecStatecxx . . $ QTJSC/ExecState#*) const;
66 virtual const ClassInfocxx . . $ QTJSC/ClassInfo#* classInfocxx . . $ QTJSC/DateInstance#classInfo(f90fb4cda7a7c2e2).() const { return &infocxx . . $ QTJSC/DateInstance#info.; }
67
68 mutable RefPtrcxx . . $ RefPtr#<DateInstanceDatacxx . . $ QTJSC/DateInstanceData#> m_datacxx . . $ QTJSC/DateInstance#m_data.;
69 };
70
71 DateInstancecxx . . $ QTJSC/DateInstance#* asDateInstancecxx . . $ QTJSC/asDateInstance(ed06070d958a2f24).(JSValuecxx . . $ QTJSC/JSValue#);
72
73 inline DateInstancecxx . . $ QTJSC/DateInstance#* asDateInstancecxx . . $ QTJSC/asDateInstance(ed06070d958a2f24).(JSValuecxx . . $ QTJSC/JSValue# value)
74 {
75 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(asObject(value)->inherits(&DateInstance::info));
76 return static_cast<DateInstance*>(asObject(value));
77 }
78
79 } // namespace JSC
80
81 #endif // DateInstance_h