Changeset 34754 in webkit for trunk/JavaScriptCore/kjs/date_object.h
- Timestamp:
- Jun 23, 2008, 10:23:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/date_object.h
r34587 r34754 34 34 class DateInstance : public JSWrapperObject { 35 35 public: 36 DateInstance(JSObject *proto);36 DateInstance(JSObject* prototype); 37 37 virtual ~DateInstance(); 38 38 39 double internalNumber() const { return internalValue()->uncheckedGetNumber(); } 40 39 41 bool getTime(GregorianDateTime&, int& offset) const; 40 42 bool getUTCTime(GregorianDateTime&) const; 41 bool getTime(double& milli , int& offset) const;42 bool getUTCTime(double& milli ) const;43 bool getTime(double& milliseconds, int& offset) const; 44 bool getUTCTime(double& milliseconds) const; 43 45 44 virtual const ClassInfo *classInfo() const { return &info; }45 46 static const ClassInfo info; 46 47 … … 48 49 49 50 private: 51 virtual const ClassInfo* classInfo() const { return &info; } 52 53 using JSWrapperObject::internalValue; 54 50 55 struct Cache; 51 56 mutable Cache* m_cache; … … 69 74 * @internal 70 75 * 71 * Functions to implement all methods that are properties of the72 * Date.prototype object73 */74 75 // Non-normative properties (Appendix B)76 // GetYear, SetYear, ToGMTString77 78 JSValue* dateProtoFuncToString(ExecState*, JSObject*, const ArgList&);79 JSValue* dateProtoFuncToUTCString(ExecState*, JSObject*, const ArgList&);80 JSValue* dateProtoFuncToDateString(ExecState*, JSObject*, const ArgList&);81 JSValue* dateProtoFuncToTimeString(ExecState*, JSObject*, const ArgList&);82 JSValue* dateProtoFuncToLocaleString(ExecState*, JSObject*, const ArgList&);83 JSValue* dateProtoFuncToLocaleDateString(ExecState*, JSObject*, const ArgList&);84 JSValue* dateProtoFuncToLocaleTimeString(ExecState*, JSObject*, const ArgList&);85 JSValue* dateProtoFuncValueOf(ExecState*, JSObject*, const ArgList&);86 JSValue* dateProtoFuncGetTime(ExecState*, JSObject*, const ArgList&);87 JSValue* dateProtoFuncGetFullYear(ExecState*, JSObject*, const ArgList&);88 JSValue* dateProtoFuncGetUTCFullYear(ExecState*, JSObject*, const ArgList&);89 JSValue* dateProtoFuncToGMTString(ExecState*, JSObject*, const ArgList&);90 JSValue* dateProtoFuncGetMonth(ExecState*, JSObject*, const ArgList&);91 JSValue* dateProtoFuncGetUTCMonth(ExecState*, JSObject*, const ArgList&);92 JSValue* dateProtoFuncGetDate(ExecState*, JSObject*, const ArgList&);93 JSValue* dateProtoFuncGetUTCDate(ExecState*, JSObject*, const ArgList&);94 JSValue* dateProtoFuncGetDay(ExecState*, JSObject*, const ArgList&);95 JSValue* dateProtoFuncGetUTCDay(ExecState*, JSObject*, const ArgList&);96 JSValue* dateProtoFuncGetHours(ExecState*, JSObject*, const ArgList&);97 JSValue* dateProtoFuncGetUTCHours(ExecState*, JSObject*, const ArgList&);98 JSValue* dateProtoFuncGetMinutes(ExecState*, JSObject*, const ArgList&);99 JSValue* dateProtoFuncGetUTCMinutes(ExecState*, JSObject*, const ArgList&);100 JSValue* dateProtoFuncGetSeconds(ExecState*, JSObject*, const ArgList&);101 JSValue* dateProtoFuncGetUTCSeconds(ExecState*, JSObject*, const ArgList&);102 JSValue* dateProtoFuncGetMilliSeconds(ExecState*, JSObject*, const ArgList&);103 JSValue* dateProtoFuncGetUTCMilliseconds(ExecState*, JSObject*, const ArgList&);104 JSValue* dateProtoFuncGetTimezoneOffset(ExecState*, JSObject*, const ArgList&);105 JSValue* dateProtoFuncSetTime(ExecState*, JSObject*, const ArgList&);106 JSValue* dateProtoFuncSetMilliSeconds(ExecState*, JSObject*, const ArgList&);107 JSValue* dateProtoFuncSetUTCMilliseconds(ExecState*, JSObject*, const ArgList&);108 JSValue* dateProtoFuncSetSeconds(ExecState*, JSObject*, const ArgList&);109 JSValue* dateProtoFuncSetUTCSeconds(ExecState*, JSObject*, const ArgList&);110 JSValue* dateProtoFuncSetMinutes(ExecState*, JSObject*, const ArgList&);111 JSValue* dateProtoFuncSetUTCMinutes(ExecState*, JSObject*, const ArgList&);112 JSValue* dateProtoFuncSetHours(ExecState*, JSObject*, const ArgList&);113 JSValue* dateProtoFuncSetUTCHours(ExecState*, JSObject*, const ArgList&);114 JSValue* dateProtoFuncSetDate(ExecState*, JSObject*, const ArgList&);115 JSValue* dateProtoFuncSetUTCDate(ExecState*, JSObject*, const ArgList&);116 JSValue* dateProtoFuncSetMonth(ExecState*, JSObject*, const ArgList&);117 JSValue* dateProtoFuncSetUTCMonth(ExecState*, JSObject*, const ArgList&);118 JSValue* dateProtoFuncSetFullYear(ExecState*, JSObject*, const ArgList&);119 JSValue* dateProtoFuncSetUTCFullYear(ExecState*, JSObject*, const ArgList&);120 JSValue* dateProtoFuncSetYear(ExecState*, JSObject*, const ArgList&);121 JSValue* dateProtoFuncGetYear(ExecState*, JSObject*, const ArgList&);122 123 /**124 * @internal125 *126 76 * The initial value of the the global variable's "Date" property 127 77 */ … … 129 79 public: 130 80 DateConstructor(ExecState*, FunctionPrototype*, DatePrototype*); 131 81 private: 132 82 virtual ConstructType getConstructData(ConstructData&); 133 virtual JSObject* construct(ExecState*, const ArgList& args); 134 135 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const ArgList& args); 136 137 JSObject* construct(const ArgList&); 83 virtual CallType getCallData(CallData&); 138 84 }; 139 85
Note:
See TracChangeset
for help on using the changeset viewer.