Changeset 12911 in webkit for trunk/JavaScriptCore/kjs/date_object.cpp
- Timestamp:
- Feb 20, 2006, 11:54:55 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/date_object.cpp
r12624 r12911 84 84 class DateProtoFunc : public InternalFunctionImp { 85 85 public: 86 DateProtoFunc(ExecState *, int i, int len );86 DateProtoFunc(ExecState *, int i, int len, const Identifier& date); 87 87 88 88 virtual bool implementsCall() const; … … 111 111 class DateObjectFuncImp : public InternalFunctionImp { 112 112 public: 113 DateObjectFuncImp(ExecState *, FunctionPrototype *, int i, int len );113 DateObjectFuncImp(ExecState *, FunctionPrototype *, int i, int len, const Identifier& ); 114 114 115 115 virtual bool implementsCall() const; … … 540 540 // ------------------------------ DateProtoFunc ----------------------------- 541 541 542 DateProtoFunc::DateProtoFunc(ExecState *exec, int i, int len) 543 : InternalFunctionImp(static_cast<FunctionPrototype*>(exec->lexicalInterpreter()->builtinFunctionPrototype())), 544 id(abs(i)), utc(i<0) 542 DateProtoFunc::DateProtoFunc(ExecState *exec, int i, int len, const Identifier& name) 543 : InternalFunctionImp(static_cast<FunctionPrototype*>(exec->lexicalInterpreter()->builtinFunctionPrototype()), name) 544 , id(abs(i)) 545 , utc(i < 0) 545 546 // We use a negative ID to denote the "UTC" variant. 546 547 { … … 720 721 721 722 static const Identifier parsePropertyName("parse"); 722 putDirect (parsePropertyName, new DateObjectFuncImp(exec,funcProto,DateObjectFuncImp::Parse, 1), DontEnum);723 putDirectFunction(new DateObjectFuncImp(exec, funcProto, DateObjectFuncImp::Parse, 1, parsePropertyName), DontEnum); 723 724 static const Identifier UTCPropertyName("UTC"); 724 putDirect (UTCPropertyName, new DateObjectFuncImp(exec,funcProto,DateObjectFuncImp::UTC, 7),DontEnum);725 putDirectFunction(new DateObjectFuncImp(exec, funcProto, DateObjectFuncImp::UTC, 7, UTCPropertyName), DontEnum); 725 726 726 727 // no. of arguments for constructor … … 811 812 // ------------------------------ DateObjectFuncImp ---------------------------- 812 813 813 DateObjectFuncImp::DateObjectFuncImp(ExecState *exec, FunctionPrototype *funcProto, int i, int len )814 : InternalFunctionImp(funcProto ), id(i)814 DateObjectFuncImp::DateObjectFuncImp(ExecState *exec, FunctionPrototype *funcProto, int i, int len, const Identifier& name) 815 : InternalFunctionImp(funcProto, name), id(i) 815 816 { 816 817 putDirect(lengthPropertyName, len, DontDelete|ReadOnly|DontEnum);
Note:
See TracChangeset
for help on using the changeset viewer.