Changeset 43372 in webkit for trunk/JavaScriptCore/runtime/DateConstructor.cpp
- Timestamp:
- May 7, 2009, 3:52:19 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/DateConstructor.cpp
r43222 r43372 49 49 ASSERT_CLASS_FITS_IN_CELL(DateConstructor); 50 50 51 static JSValue dateParse(ExecState*, JSObject*, JSValue, const ArgList&);52 static JSValue dateNow(ExecState*, JSObject*, JSValue, const ArgList&);53 static JSValue dateUTC(ExecState*, JSObject*, JSValue, const ArgList&);51 static JSValue JSC_HOST_CALL dateParse(ExecState*, JSObject*, JSValue, const ArgList&); 52 static JSValue JSC_HOST_CALL dateNow(ExecState*, JSObject*, JSValue, const ArgList&); 53 static JSValue JSC_HOST_CALL dateUTC(ExecState*, JSObject*, JSValue, const ArgList&); 54 54 55 55 DateConstructor::DateConstructor(ExecState* exec, PassRefPtr<Structure> structure, Structure* prototypeFunctionStructure, DatePrototype* datePrototype) … … 125 125 126 126 // ECMA 15.9.2 127 static JSValue callDate(ExecState* exec, JSObject*, JSValue, const ArgList&)127 static JSValue JSC_HOST_CALL callDate(ExecState* exec, JSObject*, JSValue, const ArgList&) 128 128 { 129 129 time_t localTime = time(0); … … 140 140 } 141 141 142 static JSValue dateParse(ExecState* exec, JSObject*, JSValue, const ArgList& args)142 static JSValue JSC_HOST_CALL dateParse(ExecState* exec, JSObject*, JSValue, const ArgList& args) 143 143 { 144 144 return jsNumber(exec, parseDate(args.at(0).toString(exec))); 145 145 } 146 146 147 static JSValue dateNow(ExecState* exec, JSObject*, JSValue, const ArgList&)147 static JSValue JSC_HOST_CALL dateNow(ExecState* exec, JSObject*, JSValue, const ArgList&) 148 148 { 149 149 return jsNumber(exec, getCurrentUTCTime()); 150 150 } 151 151 152 static JSValue dateUTC(ExecState* exec, JSObject*, JSValue, const ArgList& args)152 static JSValue JSC_HOST_CALL dateUTC(ExecState* exec, JSObject*, JSValue, const ArgList& args) 153 153 { 154 154 int n = args.size();
Note:
See TracChangeset
for help on using the changeset viewer.