Changeset 34587 in webkit for trunk/JavaScriptCore/kjs/NumberObject.cpp
- Timestamp:
- Jun 15, 2008, 10:28:46 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/NumberObject.cpp
r34582 r34587 44 44 // ------------------------------ NumberPrototype --------------------------- 45 45 46 static JSValue* numberProtoFuncToString(ExecState*, JSObject*, const List&);47 static JSValue* numberProtoFuncToLocaleString(ExecState*, JSObject*, const List&);48 static JSValue* numberProtoFuncValueOf(ExecState*, JSObject*, const List&);49 static JSValue* numberProtoFuncToFixed(ExecState*, JSObject*, const List&);50 static JSValue* numberProtoFuncToExponential(ExecState*, JSObject*, const List&);51 static JSValue* numberProtoFuncToPrecision(ExecState*, JSObject*, const List&);46 static JSValue* numberProtoFuncToString(ExecState*, JSObject*, const ArgList&); 47 static JSValue* numberProtoFuncToLocaleString(ExecState*, JSObject*, const ArgList&); 48 static JSValue* numberProtoFuncValueOf(ExecState*, JSObject*, const ArgList&); 49 static JSValue* numberProtoFuncToFixed(ExecState*, JSObject*, const ArgList&); 50 static JSValue* numberProtoFuncToExponential(ExecState*, JSObject*, const ArgList&); 51 static JSValue* numberProtoFuncToPrecision(ExecState*, JSObject*, const ArgList&); 52 52 53 53 // ECMA 15.7.4 … … 143 143 144 144 145 JSValue* numberProtoFuncToString(ExecState* exec, JSObject* thisObj, const List& args)145 JSValue* numberProtoFuncToString(ExecState* exec, JSObject* thisObj, const ArgList& args) 146 146 { 147 147 if (!thisObj->inherits(&NumberObject::info)) … … 208 208 } 209 209 210 JSValue* numberProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const List&)210 JSValue* numberProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const ArgList&) 211 211 { 212 212 if (!thisObj->inherits(&NumberObject::info)) … … 217 217 } 218 218 219 JSValue* numberProtoFuncValueOf(ExecState* exec, JSObject* thisObj, const List&)219 JSValue* numberProtoFuncValueOf(ExecState* exec, JSObject* thisObj, const ArgList&) 220 220 { 221 221 if (!thisObj->inherits(&NumberObject::info)) … … 225 225 } 226 226 227 JSValue* numberProtoFuncToFixed(ExecState* exec, JSObject* thisObj, const List& args)227 JSValue* numberProtoFuncToFixed(ExecState* exec, JSObject* thisObj, const ArgList& args) 228 228 { 229 229 if (!thisObj->inherits(&NumberObject::info)) … … 311 311 } 312 312 313 JSValue* numberProtoFuncToExponential(ExecState* exec, JSObject* thisObj, const List& args)313 JSValue* numberProtoFuncToExponential(ExecState* exec, JSObject* thisObj, const ArgList& args) 314 314 { 315 315 if (!thisObj->inherits(&NumberObject::info)) … … 382 382 } 383 383 384 JSValue* numberProtoFuncToPrecision(ExecState* exec, JSObject* thisObj, const List& args)384 JSValue* numberProtoFuncToPrecision(ExecState* exec, JSObject* thisObj, const ArgList& args) 385 385 { 386 386 if (!thisObj->inherits(&NumberObject::info)) … … 502 502 503 503 // ECMA 15.7.1 504 JSObject* NumberConstructor::construct(ExecState* exec, const List& args)504 JSObject* NumberConstructor::construct(ExecState* exec, const ArgList& args) 505 505 { 506 506 JSObject* proto = exec->lexicalGlobalObject()->numberPrototype(); … … 514 514 515 515 // ECMA 15.7.2 516 JSValue* NumberConstructor::callAsFunction(ExecState* exec, JSObject*, const List& args)516 JSValue* NumberConstructor::callAsFunction(ExecState* exec, JSObject*, const ArgList& args) 517 517 { 518 518 // FIXME: Check args[0]->isUndefined() instead of args.isEmpty()?
Note:
See TracChangeset
for help on using the changeset viewer.