Changeset 34587 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jun 15, 2008, 10:28:46 PM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 51 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSCallbackConstructor.cpp
r33979 r34587 62 62 } 63 63 64 JSObject* JSCallbackConstructor::construct(ExecState* exec, const List &args)64 JSObject* JSCallbackConstructor::construct(ExecState* exec, const ArgList &args) 65 65 { 66 66 JSContextRef ctx = toRef(exec); -
trunk/JavaScriptCore/API/JSCallbackConstructor.h
r34581 r34587 41 41 42 42 virtual ConstructType getConstructData(ConstructData&); 43 virtual JSObject* construct(ExecState*, const List& args);43 virtual JSObject* construct(ExecState*, const ArgList& args); 44 44 45 45 virtual const ClassInfo *classInfo() const { return &info; } -
trunk/JavaScriptCore/API/JSCallbackFunction.cpp
r34582 r34587 51 51 } 52 52 53 JSValue* JSCallbackFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const List &args)53 JSValue* JSCallbackFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const ArgList &args) 54 54 { 55 55 JSContextRef execRef = toRef(exec); -
trunk/JavaScriptCore/API/JSCallbackFunction.h
r34581 r34587 40 40 41 41 virtual bool implementsHasInstance() const; 42 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const List &args);42 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const ArgList &args); 43 43 44 44 virtual const ClassInfo *classInfo() const { return &info; } -
trunk/JavaScriptCore/API/JSCallbackObject.h
r34581 r34587 55 55 56 56 virtual ConstructType getConstructData(ConstructData&); 57 virtual JSObject* construct(ExecState*, const List& args);57 virtual JSObject* construct(ExecState*, const ArgList& args); 58 58 59 59 virtual bool implementsHasInstance() const; … … 61 61 62 62 virtual CallType getCallData(CallData&); 63 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const List &args);63 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const ArgList &args); 64 64 65 65 virtual void getPropertyNames(ExecState*, PropertyNameArray&); -
trunk/JavaScriptCore/API/JSCallbackObjectFunctions.h
r34581 r34587 248 248 249 249 template <class Base> 250 JSObject* JSCallbackObject<Base>::construct(ExecState* exec, const List& args)250 JSObject* JSCallbackObject<Base>::construct(ExecState* exec, const ArgList& args) 251 251 { 252 252 JSContextRef execRef = toRef(exec); … … 305 305 306 306 template <class Base> 307 JSValue* JSCallbackObject<Base>::callAsFunction(ExecState* exec, JSObject* thisObj, const List &args)307 JSValue* JSCallbackObject<Base>::callAsFunction(ExecState* exec, JSObject* thisObj, const ArgList &args) 308 308 { 309 309 JSContextRef execRef = toRef(exec); -
trunk/JavaScriptCore/API/JSObjectRef.cpp
r34582 r34587 117 117 Identifier nameID = name ? Identifier(toJS(name)) : Identifier("anonymous"); 118 118 119 List args;119 ArgList args; 120 120 for (unsigned i = 0; i < parameterCount; i++) 121 121 args.append(jsString(UString(toJS(parameterNames[i])))); … … 282 282 jsThisObject = exec->globalThisValue(); 283 283 284 List argList;284 ArgList argList; 285 285 for (size_t i = 0; i < argumentCount; i++) 286 286 argList.append(toJS(arguments[i])); … … 309 309 JSObject* jsObject = toJS(object); 310 310 311 List argList;311 ArgList argList; 312 312 for (size_t i = 0; i < argumentCount; i++) 313 313 argList.append(toJS(arguments[i])); -
trunk/JavaScriptCore/ChangeLog
r34582 r34587 1 2008-06-15 Darin Adler <[email protected]> 2 3 - rename KJS::List to KJS::ArgList 4 5 * API/JSCallbackConstructor.cpp: 6 (KJS::JSCallbackConstructor::construct): 7 * API/JSCallbackConstructor.h: 8 * API/JSCallbackFunction.cpp: 9 (KJS::JSCallbackFunction::callAsFunction): 10 * API/JSCallbackFunction.h: 11 * API/JSCallbackObject.h: 12 * API/JSCallbackObjectFunctions.h: 13 (KJS::::construct): 14 (KJS::::callAsFunction): 15 * API/JSObjectRef.cpp: 16 (JSObjectMakeFunction): 17 (JSObjectCallAsFunction): 18 (JSObjectCallAsConstructor): 19 * JavaScriptCore.exp: 20 * VM/Machine.cpp: 21 (KJS::Machine::execute): 22 (KJS::Machine::privateExecute): 23 * VM/Machine.h: 24 * kjs/ArrayPrototype.cpp: 25 (KJS::arrayProtoFuncToString): 26 (KJS::arrayProtoFuncToLocaleString): 27 (KJS::arrayProtoFuncJoin): 28 (KJS::arrayProtoFuncConcat): 29 (KJS::arrayProtoFuncPop): 30 (KJS::arrayProtoFuncPush): 31 (KJS::arrayProtoFuncReverse): 32 (KJS::arrayProtoFuncShift): 33 (KJS::arrayProtoFuncSlice): 34 (KJS::arrayProtoFuncSort): 35 (KJS::arrayProtoFuncSplice): 36 (KJS::arrayProtoFuncUnShift): 37 (KJS::arrayProtoFuncFilter): 38 (KJS::arrayProtoFuncMap): 39 (KJS::arrayProtoFuncEvery): 40 (KJS::arrayProtoFuncForEach): 41 (KJS::arrayProtoFuncSome): 42 (KJS::arrayProtoFuncIndexOf): 43 (KJS::arrayProtoFuncLastIndexOf): 44 (KJS::ArrayConstructor::construct): 45 (KJS::ArrayConstructor::callAsFunction): 46 * kjs/ArrayPrototype.h: 47 * kjs/BooleanObject.cpp: 48 (KJS::booleanProtoFuncToString): 49 (KJS::booleanProtoFuncValueOf): 50 (KJS::BooleanConstructor::construct): 51 (KJS::BooleanConstructor::callAsFunction): 52 * kjs/BooleanObject.h: 53 * kjs/CommonIdentifiers.h: 54 * kjs/ExecState.h: 55 (KJS::ExecState::emptyList): 56 * kjs/FunctionPrototype.cpp: 57 (KJS::FunctionPrototype::callAsFunction): 58 (KJS::functionProtoFuncToString): 59 (KJS::functionProtoFuncApply): 60 (KJS::functionProtoFuncCall): 61 (KJS::FunctionConstructor::construct): 62 (KJS::FunctionConstructor::callAsFunction): 63 * kjs/FunctionPrototype.h: 64 * kjs/JSActivation.cpp: 65 (KJS::JSActivation::createArgumentsObject): 66 * kjs/JSArray.cpp: 67 (KJS::JSArray::JSArray): 68 (KJS::AVLTreeAbstractorForArrayCompare::compare_key_key): 69 * kjs/JSArray.h: 70 * kjs/JSFunction.cpp: 71 (KJS::JSFunction::callAsFunction): 72 (KJS::JSFunction::construct): 73 (KJS::IndexToNameMap::IndexToNameMap): 74 (KJS::Arguments::Arguments): 75 (KJS::encode): 76 (KJS::decode): 77 (KJS::globalFuncEval): 78 (KJS::globalFuncParseInt): 79 (KJS::globalFuncParseFloat): 80 (KJS::globalFuncIsNaN): 81 (KJS::globalFuncIsFinite): 82 (KJS::globalFuncDecodeURI): 83 (KJS::globalFuncDecodeURIComponent): 84 (KJS::globalFuncEncodeURI): 85 (KJS::globalFuncEncodeURIComponent): 86 (KJS::globalFuncEscape): 87 (KJS::globalFuncUnescape): 88 (KJS::globalFuncKJSPrint): 89 (KJS::PrototypeFunction::callAsFunction): 90 (KJS::PrototypeReflexiveFunction::callAsFunction): 91 * kjs/JSFunction.h: 92 * kjs/JSGlobalData.h: 93 * kjs/JSImmediate.cpp: 94 (KJS::JSImmediate::toObject): 95 * kjs/JSNotAnObject.cpp: 96 (KJS::JSNotAnObject::construct): 97 (KJS::JSNotAnObject::callAsFunction): 98 * kjs/JSNotAnObject.h: 99 * kjs/JSObject.cpp: 100 (KJS::JSObject::put): 101 (KJS::JSObject::construct): 102 (KJS::JSObject::callAsFunction): 103 (KJS::Error::create): 104 * kjs/JSObject.h: 105 * kjs/MathObject.cpp: 106 (KJS::mathProtoFuncAbs): 107 (KJS::mathProtoFuncACos): 108 (KJS::mathProtoFuncASin): 109 (KJS::mathProtoFuncATan): 110 (KJS::mathProtoFuncATan2): 111 (KJS::mathProtoFuncCeil): 112 (KJS::mathProtoFuncCos): 113 (KJS::mathProtoFuncExp): 114 (KJS::mathProtoFuncFloor): 115 (KJS::mathProtoFuncLog): 116 (KJS::mathProtoFuncMax): 117 (KJS::mathProtoFuncMin): 118 (KJS::mathProtoFuncPow): 119 (KJS::mathProtoFuncRandom): 120 (KJS::mathProtoFuncRound): 121 (KJS::mathProtoFuncSin): 122 (KJS::mathProtoFuncSqrt): 123 (KJS::mathProtoFuncTan): 124 * kjs/MathObject.h: 125 * kjs/NumberObject.cpp: 126 (KJS::numberProtoFuncToString): 127 (KJS::numberProtoFuncToLocaleString): 128 (KJS::numberProtoFuncValueOf): 129 (KJS::numberProtoFuncToFixed): 130 (KJS::numberProtoFuncToExponential): 131 (KJS::numberProtoFuncToPrecision): 132 (KJS::NumberConstructor::construct): 133 (KJS::NumberConstructor::callAsFunction): 134 * kjs/NumberObject.h: 135 * kjs/RegExpObject.cpp: 136 (KJS::regExpProtoFuncTest): 137 (KJS::regExpProtoFuncExec): 138 (KJS::regExpProtoFuncCompile): 139 (KJS::regExpProtoFuncToString): 140 (KJS::RegExpObject::match): 141 (KJS::RegExpObject::test): 142 (KJS::RegExpObject::exec): 143 (KJS::RegExpObject::callAsFunction): 144 (KJS::RegExpConstructor::construct): 145 (KJS::RegExpConstructor::callAsFunction): 146 * kjs/RegExpObject.h: 147 * kjs/Shell.cpp: 148 (functionPrint): 149 (functionDebug): 150 (functionGC): 151 (functionVersion): 152 (functionRun): 153 (functionLoad): 154 (functionReadline): 155 (functionQuit): 156 * kjs/collector.cpp: 157 (KJS::Collector::collect): 158 * kjs/collector.h: 159 (KJS::Collector::markListSet): 160 * kjs/date_object.cpp: 161 (KJS::formatLocaleDate): 162 (KJS::fillStructuresUsingTimeArgs): 163 (KJS::fillStructuresUsingDateArgs): 164 (KJS::DateConstructor::construct): 165 (KJS::DateConstructor::callAsFunction): 166 (KJS::DateFunction::callAsFunction): 167 (KJS::dateProtoFuncToString): 168 (KJS::dateProtoFuncToUTCString): 169 (KJS::dateProtoFuncToDateString): 170 (KJS::dateProtoFuncToTimeString): 171 (KJS::dateProtoFuncToLocaleString): 172 (KJS::dateProtoFuncToLocaleDateString): 173 (KJS::dateProtoFuncToLocaleTimeString): 174 (KJS::dateProtoFuncValueOf): 175 (KJS::dateProtoFuncGetTime): 176 (KJS::dateProtoFuncGetFullYear): 177 (KJS::dateProtoFuncGetUTCFullYear): 178 (KJS::dateProtoFuncToGMTString): 179 (KJS::dateProtoFuncGetMonth): 180 (KJS::dateProtoFuncGetUTCMonth): 181 (KJS::dateProtoFuncGetDate): 182 (KJS::dateProtoFuncGetUTCDate): 183 (KJS::dateProtoFuncGetDay): 184 (KJS::dateProtoFuncGetUTCDay): 185 (KJS::dateProtoFuncGetHours): 186 (KJS::dateProtoFuncGetUTCHours): 187 (KJS::dateProtoFuncGetMinutes): 188 (KJS::dateProtoFuncGetUTCMinutes): 189 (KJS::dateProtoFuncGetSeconds): 190 (KJS::dateProtoFuncGetUTCSeconds): 191 (KJS::dateProtoFuncGetMilliSeconds): 192 (KJS::dateProtoFuncGetUTCMilliseconds): 193 (KJS::dateProtoFuncGetTimezoneOffset): 194 (KJS::dateProtoFuncSetTime): 195 (KJS::setNewValueFromTimeArgs): 196 (KJS::setNewValueFromDateArgs): 197 (KJS::dateProtoFuncSetMilliSeconds): 198 (KJS::dateProtoFuncSetUTCMilliseconds): 199 (KJS::dateProtoFuncSetSeconds): 200 (KJS::dateProtoFuncSetUTCSeconds): 201 (KJS::dateProtoFuncSetMinutes): 202 (KJS::dateProtoFuncSetUTCMinutes): 203 (KJS::dateProtoFuncSetHours): 204 (KJS::dateProtoFuncSetUTCHours): 205 (KJS::dateProtoFuncSetDate): 206 (KJS::dateProtoFuncSetUTCDate): 207 (KJS::dateProtoFuncSetMonth): 208 (KJS::dateProtoFuncSetUTCMonth): 209 (KJS::dateProtoFuncSetFullYear): 210 (KJS::dateProtoFuncSetUTCFullYear): 211 (KJS::dateProtoFuncSetYear): 212 (KJS::dateProtoFuncGetYear): 213 * kjs/date_object.h: 214 * kjs/debugger.h: 215 * kjs/error_object.cpp: 216 (KJS::errorProtoFuncToString): 217 (KJS::ErrorConstructor::construct): 218 (KJS::ErrorConstructor::callAsFunction): 219 (KJS::NativeErrorConstructor::construct): 220 (KJS::NativeErrorConstructor::callAsFunction): 221 * kjs/error_object.h: 222 * kjs/internal.cpp: 223 (KJS::JSNumberCell::toObject): 224 (KJS::JSNumberCell::toThisObject): 225 * kjs/list.cpp: 226 (KJS::ArgList::getSlice): 227 (KJS::ArgList::markLists): 228 (KJS::ArgList::slowAppend): 229 * kjs/list.h: 230 (KJS::ArgList::ArgList): 231 (KJS::ArgList::~ArgList): 232 * kjs/object_object.cpp: 233 (KJS::objectProtoFuncValueOf): 234 (KJS::objectProtoFuncHasOwnProperty): 235 (KJS::objectProtoFuncIsPrototypeOf): 236 (KJS::objectProtoFuncDefineGetter): 237 (KJS::objectProtoFuncDefineSetter): 238 (KJS::objectProtoFuncLookupGetter): 239 (KJS::objectProtoFuncLookupSetter): 240 (KJS::objectProtoFuncPropertyIsEnumerable): 241 (KJS::objectProtoFuncToLocaleString): 242 (KJS::objectProtoFuncToString): 243 (KJS::ObjectConstructor::construct): 244 (KJS::ObjectConstructor::callAsFunction): 245 * kjs/object_object.h: 246 * kjs/string_object.cpp: 247 (KJS::replace): 248 (KJS::stringProtoFuncToString): 249 (KJS::stringProtoFuncValueOf): 250 (KJS::stringProtoFuncCharAt): 251 (KJS::stringProtoFuncCharCodeAt): 252 (KJS::stringProtoFuncConcat): 253 (KJS::stringProtoFuncIndexOf): 254 (KJS::stringProtoFuncLastIndexOf): 255 (KJS::stringProtoFuncMatch): 256 (KJS::stringProtoFuncSearch): 257 (KJS::stringProtoFuncReplace): 258 (KJS::stringProtoFuncSlice): 259 (KJS::stringProtoFuncSplit): 260 (KJS::stringProtoFuncSubstr): 261 (KJS::stringProtoFuncSubstring): 262 (KJS::stringProtoFuncToLowerCase): 263 (KJS::stringProtoFuncToUpperCase): 264 (KJS::stringProtoFuncToLocaleLowerCase): 265 (KJS::stringProtoFuncToLocaleUpperCase): 266 (KJS::stringProtoFuncLocaleCompare): 267 (KJS::stringProtoFuncBig): 268 (KJS::stringProtoFuncSmall): 269 (KJS::stringProtoFuncBlink): 270 (KJS::stringProtoFuncBold): 271 (KJS::stringProtoFuncFixed): 272 (KJS::stringProtoFuncItalics): 273 (KJS::stringProtoFuncStrike): 274 (KJS::stringProtoFuncSub): 275 (KJS::stringProtoFuncSup): 276 (KJS::stringProtoFuncFontcolor): 277 (KJS::stringProtoFuncFontsize): 278 (KJS::stringProtoFuncAnchor): 279 (KJS::stringProtoFuncLink): 280 (KJS::StringConstructor::construct): 281 (KJS::StringConstructor::callAsFunction): 282 (KJS::StringConstructorFunction::callAsFunction): 283 * kjs/string_object.h: 284 1 285 2008-06-15 Darin Adler <[email protected]> 2 286 -
trunk/JavaScriptCore/JavaScriptCore.exp
r34582 r34587 130 130 __ZN3KJS16ParserRefCounted5derefEv 131 131 __ZN3KJS17PropertyNameArray3addEPNS_7UString3RepE 132 __ZN3KJS17PrototypeFunctionC1EPNS_9ExecStateEPNS_17FunctionPrototypeEiRKNS_10IdentifierEPFPNS_7JSValueES2_PNS_8JSObjectERKNS_ 4ListEE133 __ZN3KJS17PrototypeFunctionC1EPNS_9ExecStateEiRKNS_10IdentifierEPFPNS_7JSValueES2_PNS_8JSObjectERKNS_ 4ListEE132 __ZN3KJS17PrototypeFunctionC1EPNS_9ExecStateEPNS_17FunctionPrototypeEiRKNS_10IdentifierEPFPNS_7JSValueES2_PNS_8JSObjectERKNS_7ArgListEE 133 __ZN3KJS17PrototypeFunctionC1EPNS_9ExecStateEiRKNS_10IdentifierEPFPNS_7JSValueES2_PNS_8JSObjectERKNS_7ArgListEE 134 134 __ZN3KJS17RegisterFileStack20allocateRegisterFileEmPS0_ 135 135 __ZN3KJS19initializeThreadingEv 136 __ZN3KJS23objectProtoFuncToStringEPNS_9ExecStateEPNS_8JSObjectERKNS_4ListE 137 __ZN3KJS4List10slowAppendEPNS_7JSValueE 136 __ZN3KJS23objectProtoFuncToStringEPNS_9ExecStateEPNS_8JSObjectERKNS_7ArgListE 138 137 __ZN3KJS5equalEPKNS_7UString3RepES3_ 139 138 __ZN3KJS6JSCell11getCallDataERNS_8CallDataE … … 153 152 __ZN3KJS6Parser5parseEPNS_9ExecStateERKNS_7UStringEiN3WTF10PassRefPtrINS_14SourceProviderEEEPiSA_PS3_ 154 153 __ZN3KJS6strtodEPKcPPc 154 __ZN3KJS7ArgList10slowAppendEPNS_7JSValueE 155 155 __ZN3KJS7CStringD1Ev 156 156 __ZN3KJS7CStringaSERKS0_ … … 177 177 __ZN3KJS8JSObject12lookupGetterEPNS_9ExecStateERKNS_10IdentifierE 178 178 __ZN3KJS8JSObject12lookupSetterEPNS_9ExecStateERKNS_10IdentifierE 179 __ZN3KJS8JSObject14callAsFunctionEPNS_9ExecStateEPS0_RKNS_ 4ListE179 __ZN3KJS8JSObject14callAsFunctionEPNS_9ExecStateEPS0_RKNS_7ArgListE 180 180 __ZN3KJS8JSObject14deletePropertyEPNS_9ExecStateERKNS_10IdentifierE 181 181 __ZN3KJS8JSObject14deletePropertyEPNS_9ExecStateEj … … 191 191 __ZN3KJS8JSObject3putEPNS_9ExecStateEjPNS_7JSValueE 192 192 __ZN3KJS8JSObject4markEv 193 __ZN3KJS8JSObject9constructEPNS_9ExecStateERKNS_ 4ListE194 __ZN3KJS8JSObject9constructEPNS_9ExecStateERKNS_ 4ListERKNS_10IdentifierERKNS_7UStringEi193 __ZN3KJS8JSObject9constructEPNS_9ExecStateERKNS_7ArgListE 194 __ZN3KJS8JSObject9constructEPNS_9ExecStateERKNS_7ArgListERKNS_10IdentifierERKNS_7UStringEi 195 195 __ZN3KJS8Profiler13stopProfilingEPNS_9ExecStateERKNS_7UStringE 196 196 __ZN3KJS8Profiler14startProfilingEPNS_9ExecStateERKNS_7UStringE … … 249 249 __ZNK3KJS17DebuggerCallFrame12functionNameEv 250 250 __ZNK3KJS17DebuggerCallFrame8evaluateERKNS_7UStringERPNS_7JSValueE 251 __ZNK3KJS4List8getSliceEiRS0_252 251 __ZNK3KJS4Node8toStringEv 253 252 __ZNK3KJS6JSCell12toThisObjectEPNS_9ExecStateE … … 258 257 __ZNK3KJS6JSCell9getStringEv 259 258 __ZNK3KJS6JSCell9getUInt32ERj 259 __ZNK3KJS7ArgList8getSliceEiRS0_ 260 260 __ZNK3KJS7JSArray7getItemEj 261 261 __ZNK3KJS7JSValue15toInt32SlowCaseEPNS_9ExecStateERb -
trunk/JavaScriptCore/VM/Machine.cpp
r34582 r34587 685 685 } 686 686 687 JSValue* Machine::execute(FunctionBodyNode* functionBodyNode, ExecState* exec, JSFunction* function, JSObject* thisObj, const List& args, RegisterFileStack* registerFileStack, ScopeChainNode* scopeChain, JSValue** exception)687 JSValue* Machine::execute(FunctionBodyNode* functionBodyNode, ExecState* exec, JSFunction* function, JSObject* thisObj, const ArgList& args, RegisterFileStack* registerFileStack, ScopeChainNode* scopeChain, JSValue** exception) 688 688 { 689 689 if (m_reentryDepth >= MaxReentryDepth) { … … 712 712 (*dst).u.jsValue = thisObj; 713 713 714 List::const_iterator end = args.end();715 for ( List::const_iterator it = args.begin(); it != end; ++it)714 ArgList::const_iterator end = args.end(); 715 for (ArgList::const_iterator it = args.begin(); it != end; ++it) 716 716 (*++dst).u.jsValue = *it; 717 717 … … 2115 2115 JSObject* thisObj = static_cast<JSObject*>(r[firstArg].u.jsValue); 2116 2116 2117 List args(reinterpret_cast<JSValue***>(registerBase), registerOffset + firstArg + 1, argCount - 1);2117 ArgList args(reinterpret_cast<JSValue***>(registerBase), registerOffset + firstArg + 1, argCount - 1); 2118 2118 2119 2119 registerFile->setSafeForReentry(true); … … 2252 2252 int registerOffset = r - (*registerBase); 2253 2253 2254 List args(reinterpret_cast<JSValue***>(registerBase), registerOffset + firstArg + 1, argCount - 1);2254 ArgList args(reinterpret_cast<JSValue***>(registerBase), registerOffset + firstArg + 1, argCount - 1); 2255 2255 2256 2256 registerFile->setSafeForReentry(true); -
trunk/JavaScriptCore/VM/Machine.h
r34578 r34587 100 100 101 101 JSValue* execute(ProgramNode*, ExecState*, ScopeChainNode*, JSObject* thisObj, RegisterFileStack*, JSValue** exception); 102 JSValue* execute(FunctionBodyNode*, ExecState*, JSFunction*, JSObject* thisObj, const List& args, RegisterFileStack*, ScopeChainNode*, JSValue** exception);102 JSValue* execute(FunctionBodyNode*, ExecState*, JSFunction*, JSObject* thisObj, const ArgList& args, RegisterFileStack*, ScopeChainNode*, JSValue** exception); 103 103 JSValue* execute(EvalNode*, ExecState*, JSObject* thisObj, RegisterFile*, int registerOffset, ScopeChainNode*, JSValue** exception); 104 104 JSValue* execute(EvalNode*, ExecState*, JSObject* thisObj, RegisterFileStack*, ScopeChainNode*, JSValue** exception); -
trunk/JavaScriptCore/kjs/ArrayPrototype.cpp
r34582 r34587 89 89 } 90 90 91 JSValue* arrayProtoFuncToString(ExecState* exec, JSObject* thisObj, const List&)91 JSValue* arrayProtoFuncToString(ExecState* exec, JSObject* thisObj, const ArgList&) 92 92 { 93 93 if (!thisObj->inherits(&JSArray::info)) … … 132 132 } 133 133 134 JSValue* arrayProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const List&)134 JSValue* arrayProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const ArgList&) 135 135 { 136 136 if (!thisObj->inherits(&JSArray::info)) … … 181 181 } 182 182 183 JSValue* arrayProtoFuncJoin(ExecState* exec, JSObject* thisObj, const List& args)183 JSValue* arrayProtoFuncJoin(ExecState* exec, JSObject* thisObj, const ArgList& args) 184 184 { 185 185 HashSet<JSObject*>& arrayVisitedElements = exec->dynamicGlobalObject()->arrayVisitedElements(); … … 224 224 } 225 225 226 JSValue* arrayProtoFuncConcat(ExecState* exec, JSObject* thisObj, const List& args)226 JSValue* arrayProtoFuncConcat(ExecState* exec, JSObject* thisObj, const ArgList& args) 227 227 { 228 228 JSObject* arr = static_cast<JSObject*>(exec->lexicalGlobalObject()->arrayConstructor()->construct(exec, exec->emptyList())); … … 230 230 JSValue* curArg = thisObj; 231 231 JSObject* curObj = static_cast<JSObject* >(thisObj); 232 List::const_iterator it = args.begin();233 List::const_iterator end = args.end();232 ArgList::const_iterator it = args.begin(); 233 ArgList::const_iterator end = args.end(); 234 234 while (1) { 235 235 if (curArg->isObject() && curObj->inherits(&JSArray::info)) { … … 258 258 } 259 259 260 JSValue* arrayProtoFuncPop(ExecState* exec, JSObject* thisObj, const List&)260 JSValue* arrayProtoFuncPop(ExecState* exec, JSObject* thisObj, const ArgList&) 261 261 { 262 262 JSValue* result = 0; … … 273 273 } 274 274 275 JSValue* arrayProtoFuncPush(ExecState* exec, JSObject* thisObj, const List& args)275 JSValue* arrayProtoFuncPush(ExecState* exec, JSObject* thisObj, const ArgList& args) 276 276 { 277 277 unsigned length = thisObj->get(exec, exec->propertyNames().length)->toUInt32(exec); … … 283 283 } 284 284 285 JSValue* arrayProtoFuncReverse(ExecState* exec, JSObject* thisObj, const List&)285 JSValue* arrayProtoFuncReverse(ExecState* exec, JSObject* thisObj, const ArgList&) 286 286 { 287 287 unsigned length = thisObj->get(exec, exec->propertyNames().length)->toUInt32(exec); … … 306 306 } 307 307 308 JSValue* arrayProtoFuncShift(ExecState* exec, JSObject* thisObj, const List&)308 JSValue* arrayProtoFuncShift(ExecState* exec, JSObject* thisObj, const ArgList&) 309 309 { 310 310 JSValue* result = 0; … … 328 328 } 329 329 330 JSValue* arrayProtoFuncSlice(ExecState* exec, JSObject* thisObj, const List& args)330 JSValue* arrayProtoFuncSlice(ExecState* exec, JSObject* thisObj, const ArgList& args) 331 331 { 332 332 // http://developer.netscape.com/docs/manuals/js/client/jsref/array.htm#1193713 or 15.4.4.10 … … 371 371 } 372 372 373 JSValue* arrayProtoFuncSort(ExecState* exec, JSObject* thisObj, const List& args)373 JSValue* arrayProtoFuncSort(ExecState* exec, JSObject* thisObj, const ArgList& args) 374 374 { 375 375 JSObject* sortFunction = 0; … … 407 407 compareResult = -1; 408 408 else if (sortFunction) { 409 List l;409 ArgList l; 410 410 l.append(jObj); 411 411 l.append(minObj); … … 428 428 } 429 429 430 JSValue* arrayProtoFuncSplice(ExecState* exec, JSObject* thisObj, const List& args)430 JSValue* arrayProtoFuncSplice(ExecState* exec, JSObject* thisObj, const ArgList& args) 431 431 { 432 432 // 15.4.4.12 … … 481 481 } 482 482 483 JSValue* arrayProtoFuncUnShift(ExecState* exec, JSObject* thisObj, const List& args)483 JSValue* arrayProtoFuncUnShift(ExecState* exec, JSObject* thisObj, const ArgList& args) 484 484 { 485 485 // 15.4.4.13 … … 501 501 } 502 502 503 JSValue* arrayProtoFuncFilter(ExecState* exec, JSObject* thisObj, const List& args)503 JSValue* arrayProtoFuncFilter(ExecState* exec, JSObject* thisObj, const ArgList& args) 504 504 { 505 505 JSObject* eachFunction = args[0]->toObject(exec); … … 521 521 JSValue* v = slot.getValue(exec, k); 522 522 523 List eachArguments;523 ArgList eachArguments; 524 524 525 525 eachArguments.append(v); … … 535 535 } 536 536 537 JSValue* arrayProtoFuncMap(ExecState* exec, JSObject* thisObj, const List& args)537 JSValue* arrayProtoFuncMap(ExecState* exec, JSObject* thisObj, const ArgList& args) 538 538 { 539 539 JSObject* eachFunction = args[0]->toObject(exec); … … 545 545 unsigned length = thisObj->get(exec, exec->propertyNames().length)->toUInt32(exec); 546 546 547 List mapArgs;547 ArgList mapArgs; 548 548 mapArgs.append(jsNumber(length)); 549 549 JSObject* resultArray = static_cast<JSObject*>(exec->lexicalGlobalObject()->arrayConstructor()->construct(exec, mapArgs)); … … 556 556 JSValue* v = slot.getValue(exec, k); 557 557 558 List eachArguments;558 ArgList eachArguments; 559 559 560 560 eachArguments.append(v); … … 574 574 // http://developer-test.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Objects:Array:some 575 575 576 JSValue* arrayProtoFuncEvery(ExecState* exec, JSObject* thisObj, const List& args)576 JSValue* arrayProtoFuncEvery(ExecState* exec, JSObject* thisObj, const ArgList& args) 577 577 { 578 578 JSObject* eachFunction = args[0]->toObject(exec); … … 592 592 continue; 593 593 594 List eachArguments;594 ArgList eachArguments; 595 595 596 596 eachArguments.append(slot.getValue(exec, k)); … … 609 609 } 610 610 611 JSValue* arrayProtoFuncForEach(ExecState* exec, JSObject* thisObj, const List& args)611 JSValue* arrayProtoFuncForEach(ExecState* exec, JSObject* thisObj, const ArgList& args) 612 612 { 613 613 JSObject* eachFunction = args[0]->toObject(exec); … … 624 624 continue; 625 625 626 List eachArguments;626 ArgList eachArguments; 627 627 eachArguments.append(slot.getValue(exec, k)); 628 628 eachArguments.append(jsNumber(k)); … … 634 634 } 635 635 636 JSValue* arrayProtoFuncSome(ExecState* exec, JSObject* thisObj, const List& args)636 JSValue* arrayProtoFuncSome(ExecState* exec, JSObject* thisObj, const ArgList& args) 637 637 { 638 638 JSObject* eachFunction = args[0]->toObject(exec); … … 651 651 continue; 652 652 653 List eachArguments;653 ArgList eachArguments; 654 654 eachArguments.append(slot.getValue(exec, k)); 655 655 eachArguments.append(jsNumber(k)); … … 666 666 } 667 667 668 JSValue* arrayProtoFuncIndexOf(ExecState* exec, JSObject* thisObj, const List& args)668 JSValue* arrayProtoFuncIndexOf(ExecState* exec, JSObject* thisObj, const ArgList& args) 669 669 { 670 670 // JavaScript 1.5 Extension by Mozilla … … 695 695 } 696 696 697 JSValue* arrayProtoFuncLastIndexOf(ExecState* exec, JSObject* thisObj, const List& args)697 JSValue* arrayProtoFuncLastIndexOf(ExecState* exec, JSObject* thisObj, const ArgList& args) 698 698 { 699 699 // JavaScript 1.6 Extension by Mozilla … … 742 742 743 743 // ECMA 15.4.2 744 JSObject* ArrayConstructor::construct(ExecState* exec, const List& args)744 JSObject* ArrayConstructor::construct(ExecState* exec, const ArgList& args) 745 745 { 746 746 // a single numeric argument denotes the array size (!) … … 757 757 758 758 // ECMA 15.6.1 759 JSValue* ArrayConstructor::callAsFunction(ExecState* exec, JSObject*, const List& args)759 JSValue* ArrayConstructor::callAsFunction(ExecState* exec, JSObject*, const ArgList& args) 760 760 { 761 761 // equivalent to 'new Array(....)' -
trunk/JavaScriptCore/kjs/ArrayPrototype.h
r34582 r34587 42 42 43 43 virtual ConstructType getConstructData(ConstructData&); 44 virtual JSObject* construct(ExecState*, const List&);44 virtual JSObject* construct(ExecState*, const ArgList&); 45 45 46 virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);46 virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&); 47 47 48 48 }; 49 49 50 JSValue* arrayProtoFuncToString(ExecState*, JSObject*, const List&);51 JSValue* arrayProtoFuncToLocaleString(ExecState*, JSObject*, const List&);52 JSValue* arrayProtoFuncConcat(ExecState*, JSObject*, const List&);53 JSValue* arrayProtoFuncJoin(ExecState*, JSObject*, const List&);54 JSValue* arrayProtoFuncPop(ExecState*, JSObject*, const List&);55 JSValue* arrayProtoFuncPush(ExecState*, JSObject*, const List&);56 JSValue* arrayProtoFuncReverse(ExecState*, JSObject*, const List&);57 JSValue* arrayProtoFuncShift(ExecState*, JSObject*, const List&);58 JSValue* arrayProtoFuncSlice(ExecState*, JSObject*, const List&);59 JSValue* arrayProtoFuncSort(ExecState*, JSObject*, const List&);60 JSValue* arrayProtoFuncSplice(ExecState*, JSObject*, const List&);61 JSValue* arrayProtoFuncUnShift(ExecState*, JSObject*, const List&);62 JSValue* arrayProtoFuncEvery(ExecState*, JSObject*, const List&);63 JSValue* arrayProtoFuncForEach(ExecState*, JSObject*, const List&);64 JSValue* arrayProtoFuncSome(ExecState*, JSObject*, const List&);65 JSValue* arrayProtoFuncIndexOf(ExecState*, JSObject*, const List&);66 JSValue* arrayProtoFuncFilter(ExecState*, JSObject*, const List&);67 JSValue* arrayProtoFuncMap(ExecState*, JSObject*, const List&);68 JSValue* arrayProtoFuncLastIndexOf(ExecState*, JSObject*, const List&);50 JSValue* arrayProtoFuncToString(ExecState*, JSObject*, const ArgList&); 51 JSValue* arrayProtoFuncToLocaleString(ExecState*, JSObject*, const ArgList&); 52 JSValue* arrayProtoFuncConcat(ExecState*, JSObject*, const ArgList&); 53 JSValue* arrayProtoFuncJoin(ExecState*, JSObject*, const ArgList&); 54 JSValue* arrayProtoFuncPop(ExecState*, JSObject*, const ArgList&); 55 JSValue* arrayProtoFuncPush(ExecState*, JSObject*, const ArgList&); 56 JSValue* arrayProtoFuncReverse(ExecState*, JSObject*, const ArgList&); 57 JSValue* arrayProtoFuncShift(ExecState*, JSObject*, const ArgList&); 58 JSValue* arrayProtoFuncSlice(ExecState*, JSObject*, const ArgList&); 59 JSValue* arrayProtoFuncSort(ExecState*, JSObject*, const ArgList&); 60 JSValue* arrayProtoFuncSplice(ExecState*, JSObject*, const ArgList&); 61 JSValue* arrayProtoFuncUnShift(ExecState*, JSObject*, const ArgList&); 62 JSValue* arrayProtoFuncEvery(ExecState*, JSObject*, const ArgList&); 63 JSValue* arrayProtoFuncForEach(ExecState*, JSObject*, const ArgList&); 64 JSValue* arrayProtoFuncSome(ExecState*, JSObject*, const ArgList&); 65 JSValue* arrayProtoFuncIndexOf(ExecState*, JSObject*, const ArgList&); 66 JSValue* arrayProtoFuncFilter(ExecState*, JSObject*, const ArgList&); 67 JSValue* arrayProtoFuncMap(ExecState*, JSObject*, const ArgList&); 68 JSValue* arrayProtoFuncLastIndexOf(ExecState*, JSObject*, const ArgList&); 69 69 70 70 } // namespace KJS -
trunk/JavaScriptCore/kjs/BooleanObject.cpp
r34582 r34587 41 41 42 42 // Functions 43 static JSValue* booleanProtoFuncToString(ExecState*, JSObject*, const List&);44 static JSValue* booleanProtoFuncValueOf(ExecState*, JSObject*, const List&);43 static JSValue* booleanProtoFuncToString(ExecState*, JSObject*, const ArgList&); 44 static JSValue* booleanProtoFuncValueOf(ExecState*, JSObject*, const ArgList&); 45 45 46 46 // ECMA 15.6.4 … … 60 60 // ECMA 15.6.4.2 + 15.6.4.3 61 61 62 JSValue* booleanProtoFuncToString(ExecState* exec, JSObject* thisObj, const List&)62 JSValue* booleanProtoFuncToString(ExecState* exec, JSObject* thisObj, const ArgList&) 63 63 { 64 64 if (!thisObj->inherits(&BooleanObject::info)) … … 70 70 return jsString(v->toString(exec)); 71 71 } 72 JSValue* booleanProtoFuncValueOf(ExecState* exec, JSObject* thisObj, const List&)72 JSValue* booleanProtoFuncValueOf(ExecState* exec, JSObject* thisObj, const ArgList&) 73 73 { 74 74 if (!thisObj->inherits(&BooleanObject::info)) … … 100 100 101 101 // ECMA 15.6.2 102 JSObject* BooleanConstructor::construct(ExecState* exec, const List& args)102 JSObject* BooleanConstructor::construct(ExecState* exec, const ArgList& args) 103 103 { 104 104 BooleanObject* obj(new BooleanObject(exec->lexicalGlobalObject()->booleanPrototype())); … … 108 108 109 109 // ECMA 15.6.1 110 JSValue* BooleanConstructor::callAsFunction(ExecState* exec, JSObject*, const List& args)110 JSValue* BooleanConstructor::callAsFunction(ExecState* exec, JSObject*, const ArgList& args) 111 111 { 112 112 // TODO: optimize for bool case -
trunk/JavaScriptCore/kjs/BooleanObject.h
r34582 r34587 56 56 57 57 virtual ConstructType getConstructData(ConstructData&); 58 virtual JSObject* construct(ExecState*, const List&);58 virtual JSObject* construct(ExecState*, const ArgList&); 59 59 60 virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);60 virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&); 61 61 }; 62 62 -
trunk/JavaScriptCore/kjs/CommonIdentifiers.h
r34412 r34587 25 25 #include <wtf/Noncopyable.h> 26 26 27 // List of property names, passed to a macro so we can do set them up various27 // ArgList of property names, passed to a macro so we can do set them up various 28 28 // ways without repeating the list. 29 29 #define KJS_COMMON_IDENTIFIERS_EACH_PROPERTY_NAME(macro) \ -
trunk/JavaScriptCore/kjs/ExecState.h
r34582 r34587 82 82 IdentifierTable* identifierTable() { return m_globalData->identifierTable; } 83 83 const CommonIdentifiers& propertyNames() const { return *m_globalData->propertyNames; } 84 const List& emptyList() const { return m_globalData->emptyList; }84 const ArgList& emptyList() const { return m_globalData->emptyList; } 85 85 Lexer* lexer() { return m_globalData->lexer; } 86 86 Parser* parser() { return m_globalData->parser; } -
trunk/JavaScriptCore/kjs/FunctionPrototype.cpp
r34582 r34587 39 39 // ------------------------------ FunctionPrototype ------------------------- 40 40 41 static JSValue* functionProtoFuncToString(ExecState*, JSObject*, const List&);42 static JSValue* functionProtoFuncApply(ExecState*, JSObject*, const List&);43 static JSValue* functionProtoFuncCall(ExecState*, JSObject*, const List&);41 static JSValue* functionProtoFuncToString(ExecState*, JSObject*, const ArgList&); 42 static JSValue* functionProtoFuncApply(ExecState*, JSObject*, const ArgList&); 43 static JSValue* functionProtoFuncCall(ExecState*, JSObject*, const ArgList&); 44 44 45 45 FunctionPrototype::FunctionPrototype(ExecState* exec) … … 53 53 54 54 // ECMA 15.3.4 55 JSValue* FunctionPrototype::callAsFunction(ExecState*, JSObject*, const List&)55 JSValue* FunctionPrototype::callAsFunction(ExecState*, JSObject*, const ArgList&) 56 56 { 57 57 return jsUndefined(); … … 60 60 // Functions 61 61 62 JSValue* functionProtoFuncToString(ExecState* exec, JSObject* thisObj, const List&)62 JSValue* functionProtoFuncToString(ExecState* exec, JSObject* thisObj, const ArgList&) 63 63 { 64 64 if (!thisObj || !thisObj->inherits(&InternalFunction::info)) { … … 77 77 } 78 78 79 JSValue* functionProtoFuncApply(ExecState* exec, JSObject* thisObj, const List& args)79 JSValue* functionProtoFuncApply(ExecState* exec, JSObject* thisObj, const ArgList& args) 80 80 { 81 81 if (!thisObj->implementsCall()) … … 91 91 applyThis = thisArg->toObject(exec); 92 92 93 List applyArgs;93 ArgList applyArgs; 94 94 if (!argArray->isUndefinedOrNull()) { 95 95 if (argArray->isObject() && … … 108 108 } 109 109 110 JSValue* functionProtoFuncCall(ExecState* exec, JSObject* thisObj, const List& args)110 JSValue* functionProtoFuncCall(ExecState* exec, JSObject* thisObj, const ArgList& args) 111 111 { 112 112 if (!thisObj->implementsCall()) … … 121 121 callThis = thisArg->toObject(exec); 122 122 123 List argsTail;123 ArgList argsTail; 124 124 args.getSlice(1, argsTail); 125 125 return thisObj->callAsFunction(exec, callThis, argsTail); … … 143 143 144 144 // ECMA 15.3.2 The Function Constructor 145 JSObject* FunctionConstructor::construct(ExecState* exec, const List& args, const Identifier& functionName, const UString& sourceURL, int lineNumber)145 JSObject* FunctionConstructor::construct(ExecState* exec, const ArgList& args, const Identifier& functionName, const UString& sourceURL, int lineNumber) 146 146 { 147 147 UString p(""); … … 216 216 217 217 // ECMA 15.3.2 The Function Constructor 218 JSObject* FunctionConstructor::construct(ExecState* exec, const List& args)218 JSObject* FunctionConstructor::construct(ExecState* exec, const ArgList& args) 219 219 { 220 220 return construct(exec, args, "anonymous", UString(), 1); … … 222 222 223 223 // ECMA 15.3.1 The Function Constructor Called as a Function 224 JSValue* FunctionConstructor::callAsFunction(ExecState* exec, JSObject*, const List& args)224 JSValue* FunctionConstructor::callAsFunction(ExecState* exec, JSObject*, const ArgList& args) 225 225 { 226 226 return construct(exec, args); -
trunk/JavaScriptCore/kjs/FunctionPrototype.h
r34582 r34587 39 39 FunctionPrototype(ExecState*); 40 40 41 virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);41 virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&); 42 42 }; 43 43 … … 52 52 53 53 virtual ConstructType getConstructData(ConstructData&); 54 virtual JSObject* construct(ExecState*, const List&);55 virtual JSObject* construct(ExecState*, const List&, const Identifier& functionName, const UString& sourceURL, int lineNumber);54 virtual JSObject* construct(ExecState*, const ArgList&); 55 virtual JSObject* construct(ExecState*, const ArgList&, const Identifier& functionName, const UString& sourceURL, int lineNumber); 56 56 57 virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);57 virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&); 58 58 }; 59 59 -
trunk/JavaScriptCore/kjs/JSActivation.cpp
r34581 r34587 186 186 int argc; 187 187 exec->machine()->getFunctionAndArguments(registerBase(), callFrame, function, argv, argc); 188 List args(reinterpret_cast<JSValue***>(registerBase()), argv - *registerBase(), argc);188 ArgList args(reinterpret_cast<JSValue***>(registerBase()), argv - *registerBase(), argc); 189 189 return new Arguments(exec, function, args, this); 190 190 } -
trunk/JavaScriptCore/kjs/JSArray.cpp
r34582 r34587 94 94 } 95 95 96 JSArray::JSArray(JSObject* prototype, const List& list)96 JSArray::JSArray(JSObject* prototype, const ArgList& list) 97 97 : JSObject(prototype) 98 98 { … … 108 108 109 109 size_t i = 0; 110 List::const_iterator end = list.end();111 for ( List::const_iterator it = list.begin(); it != end; ++it, ++i)110 ArgList::const_iterator end = list.end(); 111 for (ArgList::const_iterator it = list.begin(); it != end; ++it, ++i) 112 112 storage->m_vector[i] = *it; 113 113 … … 593 593 return 1; 594 594 595 List arguments;595 ArgList arguments; 596 596 arguments.append(va); 597 597 arguments.append(vb); -
trunk/JavaScriptCore/kjs/JSArray.h
r34582 r34587 32 32 public: 33 33 JSArray(JSObject* prototype, unsigned initialLength); 34 JSArray(JSObject* prototype, const List& initialValues);34 JSArray(JSObject* prototype, const ArgList& initialValues); 35 35 ~JSArray(); 36 36 -
trunk/JavaScriptCore/kjs/JSFunction.cpp
r34582 r34587 81 81 } 82 82 83 JSValue* JSFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)83 JSValue* JSFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const ArgList& args) 84 84 { 85 85 JSValue* exception = 0; … … 187 187 } 188 188 189 JSObject* JSFunction::construct(ExecState* exec, const List& args)189 JSObject* JSFunction::construct(ExecState* exec, const ArgList& args) 190 190 { 191 191 JSObject* proto; … … 221 221 // isn't stored in the activation object. 222 222 223 IndexToNameMap::IndexToNameMap(JSFunction* func, const List& args)223 IndexToNameMap::IndexToNameMap(JSFunction* func, const ArgList& args) 224 224 { 225 225 _map = new Identifier[args.size()]; … … 227 227 228 228 unsigned i = 0; 229 List::const_iterator end = args.end();230 for ( List::const_iterator it = args.begin(); it != end; ++i, ++it)229 ArgList::const_iterator end = args.end(); 230 for (ArgList::const_iterator it = args.begin(); it != end; ++i, ++it) 231 231 _map[i] = func->getParameterName(i); // null if there is no corresponding parameter 232 232 } … … 279 279 280 280 // ECMA 10.1.8 281 Arguments::Arguments(ExecState* exec, JSFunction* func, const List& args, JSActivation* act)281 Arguments::Arguments(ExecState* exec, JSFunction* func, const ArgList& args, JSActivation* act) 282 282 : JSObject(exec->lexicalGlobalObject()->objectPrototype()) 283 283 , _activationObject(act) … … 288 288 289 289 int i = 0; 290 List::const_iterator end = args.end();291 for ( List::const_iterator it = args.begin(); it != end; ++it, ++i) {290 ArgList::const_iterator end = args.end(); 291 for (ArgList::const_iterator it = args.begin(); it != end; ++it, ++i) { 292 292 Identifier name = Identifier::from(i); 293 293 if (!indexToNameMap.isMapped(name)) … … 339 339 // ------------------------------ Global Functions ----------------------------------- 340 340 341 static JSValue* encode(ExecState* exec, const List& args, const char* do_not_escape)341 static JSValue* encode(ExecState* exec, const ArgList& args, const char* do_not_escape) 342 342 { 343 343 UString r = "", s, str = args[0]->toString(exec); … … 359 359 } 360 360 361 static JSValue* decode(ExecState* exec, const List& args, const char* do_not_unescape, bool strict)361 static JSValue* decode(ExecState* exec, const ArgList& args, const char* do_not_unescape, bool strict) 362 362 { 363 363 UString s = "", str = args[0]->toString(exec); … … 558 558 } 559 559 560 JSValue* globalFuncEval(ExecState* exec, PrototypeReflexiveFunction* function, JSObject* thisObj, const List& args)560 JSValue* globalFuncEval(ExecState* exec, PrototypeReflexiveFunction* function, JSObject* thisObj, const ArgList& args) 561 561 { 562 562 JSGlobalObject* globalObject = thisObj->toGlobalObject(exec); … … 591 591 } 592 592 593 JSValue* globalFuncParseInt(ExecState* exec, JSObject*, const List& args)593 JSValue* globalFuncParseInt(ExecState* exec, JSObject*, const ArgList& args) 594 594 { 595 595 return jsNumber(parseInt(args[0]->toString(exec), args[1]->toInt32(exec))); 596 596 } 597 597 598 JSValue* globalFuncParseFloat(ExecState* exec, JSObject*, const List& args)598 JSValue* globalFuncParseFloat(ExecState* exec, JSObject*, const ArgList& args) 599 599 { 600 600 return jsNumber(parseFloat(args[0]->toString(exec))); 601 601 } 602 602 603 JSValue* globalFuncIsNaN(ExecState* exec, JSObject*, const List& args)603 JSValue* globalFuncIsNaN(ExecState* exec, JSObject*, const ArgList& args) 604 604 { 605 605 return jsBoolean(isnan(args[0]->toNumber(exec))); 606 606 } 607 607 608 JSValue* globalFuncIsFinite(ExecState* exec, JSObject*, const List& args)608 JSValue* globalFuncIsFinite(ExecState* exec, JSObject*, const ArgList& args) 609 609 { 610 610 double n = args[0]->toNumber(exec); … … 612 612 } 613 613 614 JSValue* globalFuncDecodeURI(ExecState* exec, JSObject*, const List& args)614 JSValue* globalFuncDecodeURI(ExecState* exec, JSObject*, const ArgList& args) 615 615 { 616 616 static const char do_not_unescape_when_decoding_URI[] = … … 620 620 } 621 621 622 JSValue* globalFuncDecodeURIComponent(ExecState* exec, JSObject*, const List& args)622 JSValue* globalFuncDecodeURIComponent(ExecState* exec, JSObject*, const ArgList& args) 623 623 { 624 624 return decode(exec, args, "", true); 625 625 } 626 626 627 JSValue* globalFuncEncodeURI(ExecState* exec, JSObject*, const List& args)627 JSValue* globalFuncEncodeURI(ExecState* exec, JSObject*, const ArgList& args) 628 628 { 629 629 static const char do_not_escape_when_encoding_URI[] = … … 636 636 } 637 637 638 JSValue* globalFuncEncodeURIComponent(ExecState* exec, JSObject*, const List& args)638 JSValue* globalFuncEncodeURIComponent(ExecState* exec, JSObject*, const ArgList& args) 639 639 { 640 640 static const char do_not_escape_when_encoding_URI_component[] = … … 647 647 } 648 648 649 JSValue* globalFuncEscape(ExecState* exec, JSObject*, const List& args)649 JSValue* globalFuncEscape(ExecState* exec, JSObject*, const ArgList& args) 650 650 { 651 651 static const char do_not_escape[] = … … 676 676 } 677 677 678 JSValue* globalFuncUnescape(ExecState* exec, JSObject*, const List& args)678 JSValue* globalFuncUnescape(ExecState* exec, JSObject*, const ArgList& args) 679 679 { 680 680 UString s = "", str = args[0]->toString(exec); … … 702 702 703 703 #ifndef NDEBUG 704 JSValue* globalFuncKJSPrint(ExecState* exec, JSObject*, const List& args)704 JSValue* globalFuncKJSPrint(ExecState* exec, JSObject*, const ArgList& args) 705 705 { 706 706 CStringBuffer string; … … 729 729 } 730 730 731 JSValue* PrototypeFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)731 JSValue* PrototypeFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const ArgList& args) 732 732 { 733 733 return m_function(exec, thisObj, args); … … 746 746 } 747 747 748 JSValue* PrototypeReflexiveFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)748 JSValue* PrototypeReflexiveFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const ArgList& args) 749 749 { 750 750 return m_function(exec, this, thisObj, args); -
trunk/JavaScriptCore/kjs/JSFunction.h
r34582 r34587 45 45 virtual CallType getCallData(CallData&); 46 46 47 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObjec, const List& args) = 0;47 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObjec, const ArgList& args) = 0; 48 48 virtual bool implementsHasInstance() const; 49 49 … … 65 65 66 66 virtual ConstructType getConstructData(ConstructData&); 67 virtual JSObject* construct(ExecState*, const List& args);67 virtual JSObject* construct(ExecState*, const ArgList& args); 68 68 69 69 virtual CallType getCallData(CallData&); 70 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const List& args);70 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const ArgList& args); 71 71 72 72 // Note: unlike body->paramName, this returns Identifier::null for parameters … … 94 94 class IndexToNameMap { 95 95 public: 96 IndexToNameMap(JSFunction*, const List& args);96 IndexToNameMap(JSFunction*, const ArgList& args); 97 97 ~IndexToNameMap(); 98 98 … … 108 108 class Arguments : public JSObject { 109 109 public: 110 Arguments(ExecState*, JSFunction* func, const List& args, JSActivation* act);110 Arguments(ExecState*, JSFunction* func, const ArgList& args, JSActivation* act); 111 111 virtual void mark(); 112 112 virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&); … … 124 124 class PrototypeFunction : public InternalFunction { 125 125 public: 126 typedef JSValue* (*JSMemberFunction)(ExecState*, JSObject* thisObj, const List&);126 typedef JSValue* (*JSMemberFunction)(ExecState*, JSObject* thisObj, const ArgList&); 127 127 128 128 PrototypeFunction(ExecState*, int len, const Identifier&, JSMemberFunction); 129 129 PrototypeFunction(ExecState*, FunctionPrototype*, int len, const Identifier&, JSMemberFunction); 130 130 131 virtual JSValue* callAsFunction(ExecState* exec, JSObject* thisObj, const List&);131 virtual JSValue* callAsFunction(ExecState* exec, JSObject* thisObj, const ArgList&); 132 132 133 133 private: … … 139 139 class PrototypeReflexiveFunction : public InternalFunction { 140 140 public: 141 typedef JSValue* (*JSMemberFunction)(ExecState*, PrototypeReflexiveFunction*, JSObject* thisObj, const List&);141 typedef JSValue* (*JSMemberFunction)(ExecState*, PrototypeReflexiveFunction*, JSObject* thisObj, const ArgList&); 142 142 143 143 PrototypeReflexiveFunction(ExecState*, FunctionPrototype*, int len, const Identifier&, JSMemberFunction, JSGlobalObject* expectedThisObject); 144 144 145 145 virtual void mark(); 146 virtual JSValue* callAsFunction(ExecState* exec, JSObject* thisObj, const List&);146 virtual JSValue* callAsFunction(ExecState* exec, JSObject* thisObj, const ArgList&); 147 147 148 148 JSGlobalObject* cachedGlobalObject() const { return m_cachedGlobalObject; } … … 154 154 155 155 // Global Functions 156 JSValue* globalFuncEval(ExecState*, PrototypeReflexiveFunction*, JSObject*, const List&);157 JSValue* globalFuncParseInt(ExecState*, JSObject*, const List&);158 JSValue* globalFuncParseFloat(ExecState*, JSObject*, const List&);159 JSValue* globalFuncIsNaN(ExecState*, JSObject*, const List&);160 JSValue* globalFuncIsFinite(ExecState*, JSObject*, const List&);161 JSValue* globalFuncDecodeURI(ExecState*, JSObject*, const List&);162 JSValue* globalFuncDecodeURIComponent(ExecState*, JSObject*, const List&);163 JSValue* globalFuncEncodeURI(ExecState*, JSObject*, const List&);164 JSValue* globalFuncEncodeURIComponent(ExecState*, JSObject*, const List&);165 JSValue* globalFuncEscape(ExecState*, JSObject*, const List&);166 JSValue* globalFuncUnescape(ExecState*, JSObject*, const List&);156 JSValue* globalFuncEval(ExecState*, PrototypeReflexiveFunction*, JSObject*, const ArgList&); 157 JSValue* globalFuncParseInt(ExecState*, JSObject*, const ArgList&); 158 JSValue* globalFuncParseFloat(ExecState*, JSObject*, const ArgList&); 159 JSValue* globalFuncIsNaN(ExecState*, JSObject*, const ArgList&); 160 JSValue* globalFuncIsFinite(ExecState*, JSObject*, const ArgList&); 161 JSValue* globalFuncDecodeURI(ExecState*, JSObject*, const ArgList&); 162 JSValue* globalFuncDecodeURIComponent(ExecState*, JSObject*, const ArgList&); 163 JSValue* globalFuncEncodeURI(ExecState*, JSObject*, const ArgList&); 164 JSValue* globalFuncEncodeURIComponent(ExecState*, JSObject*, const ArgList&); 165 JSValue* globalFuncEscape(ExecState*, JSObject*, const ArgList&); 166 JSValue* globalFuncUnescape(ExecState*, JSObject*, const ArgList&); 167 167 #ifndef NDEBUG 168 JSValue* globalFuncKJSPrint(ExecState*, JSObject*, const List&);168 JSValue* globalFuncKJSPrint(ExecState*, JSObject*, const ArgList&); 169 169 #endif 170 170 -
trunk/JavaScriptCore/kjs/JSGlobalData.h
r34580 r34587 70 70 IdentifierTable* identifierTable; 71 71 CommonIdentifiers* propertyNames; 72 const List emptyList; // Lists are supposed to be allocated on the stack to have their elements properly marked, which is not the case here - but this list has nothing to mark.72 const ArgList emptyList; // Lists are supposed to be allocated on the stack to have their elements properly marked, which is not the case here - but this list has nothing to mark. 73 73 74 74 HashSet<ParserRefCounted*> newTrackedObjects; -
trunk/JavaScriptCore/kjs/JSImmediate.cpp
r34582 r34587 38 38 return new JSNotAnObject(throwError(exec, TypeError, "Undefined value")); 39 39 else if (isBoolean(v)) { 40 List args;40 ArgList args; 41 41 args.append(const_cast<JSValue *>(v)); 42 42 return exec->lexicalGlobalObject()->booleanConstructor()->construct(exec, args); 43 43 } else { 44 44 ASSERT(isNumber(v)); 45 List args;45 ArgList args; 46 46 args.append(const_cast<JSValue *>(v)); 47 47 return exec->lexicalGlobalObject()->numberConstructor()->construct(exec, args); -
trunk/JavaScriptCore/kjs/JSNotAnObject.cpp
r34372 r34587 134 134 } 135 135 136 JSObject* JSNotAnObject::construct(ExecState* exec, const List&)136 JSObject* JSNotAnObject::construct(ExecState* exec, const ArgList&) 137 137 { 138 138 UNUSED_PARAM(exec); … … 141 141 } 142 142 143 JSObject* JSNotAnObject::construct(ExecState* exec, const List&, const Identifier&, const UString&, int)143 JSObject* JSNotAnObject::construct(ExecState* exec, const ArgList&, const Identifier&, const UString&, int) 144 144 { 145 145 UNUSED_PARAM(exec); … … 148 148 } 149 149 150 JSValue* JSNotAnObject::callAsFunction(ExecState* exec, JSObject*, const List&)150 JSValue* JSNotAnObject::callAsFunction(ExecState* exec, JSObject*, const ArgList&) 151 151 { 152 152 UNUSED_PARAM(exec); -
trunk/JavaScriptCore/kjs/JSNotAnObject.h
r34581 r34587 67 67 virtual JSValue* defaultValue(ExecState*, JSType hint) const; 68 68 69 virtual JSObject* construct(ExecState*, const List&);70 virtual JSObject* construct(ExecState*, const List&, const Identifier& functionName, const UString& sourceURL, int lineNumber);69 virtual JSObject* construct(ExecState*, const ArgList&); 70 virtual JSObject* construct(ExecState*, const ArgList&, const Identifier& functionName, const UString& sourceURL, int lineNumber); 71 71 72 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const List&);72 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const ArgList&); 73 73 74 74 virtual void getPropertyNames(ExecState*, PropertyNameArray&); -
trunk/JavaScriptCore/kjs/JSObject.cpp
r34581 r34587 148 148 } 149 149 150 List args;150 ArgList args; 151 151 args.append(value); 152 152 … … 366 366 } 367 367 368 JSObject* JSObject::construct(ExecState*, const List& /*args*/)368 JSObject* JSObject::construct(ExecState*, const ArgList& /*args*/) 369 369 { 370 370 ASSERT(false); … … 372 372 } 373 373 374 JSObject* JSObject::construct(ExecState* exec, const List& args, const Identifier& /*functionName*/, const UString& /*sourceURL*/, int /*lineNumber*/)374 JSObject* JSObject::construct(ExecState* exec, const ArgList& args, const Identifier& /*functionName*/, const UString& /*sourceURL*/, int /*lineNumber*/) 375 375 { 376 376 return construct(exec, args); … … 383 383 } 384 384 385 JSValue *JSObject::callAsFunction(ExecState* /*exec*/, JSObject* /*thisObj*/, const List &/*args*/)385 JSValue *JSObject::callAsFunction(ExecState* /*exec*/, JSObject* /*thisObj*/, const ArgList &/*args*/) 386 386 { 387 387 ASSERT(false); … … 556 556 } 557 557 558 List args;558 ArgList args; 559 559 if (message.isEmpty()) 560 560 args.append(jsString(name)); -
trunk/JavaScriptCore/kjs/JSObject.h
r34582 r34587 350 350 * Implementation of the [[Construct]] internal property 351 351 */ 352 virtual JSObject* construct(ExecState* exec, const List& args);353 virtual JSObject* construct(ExecState* exec, const List& args, const Identifier& functionName, const UString& sourceURL, int lineNumber);352 virtual JSObject* construct(ExecState* exec, const ArgList& args); 353 virtual JSObject* construct(ExecState* exec, const ArgList& args, const Identifier& functionName, const UString& sourceURL, int lineNumber); 354 354 355 355 /** … … 367 367 * is executed, call() will be invoked on the C++ object which implements 368 368 * the toString method, with the thisObj being window.location 369 * @param args List of arguments to be passed to the function369 * @param args ArgList of arguments to be passed to the function 370 370 * @return The return value from the function 371 371 */ 372 372 bool implementsCall(); 373 virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);373 virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const ArgList &args); 374 374 375 375 /** -
trunk/JavaScriptCore/kjs/MathObject.cpp
r34582 r34587 104 104 // ------------------------------ Functions -------------------------------- 105 105 106 JSValue* mathProtoFuncAbs(ExecState* exec, JSObject*, const List& args)106 JSValue* mathProtoFuncAbs(ExecState* exec, JSObject*, const ArgList& args) 107 107 { 108 108 double arg = args[0]->toNumber(exec); … … 110 110 } 111 111 112 JSValue* mathProtoFuncACos(ExecState* exec, JSObject*, const List& args)112 JSValue* mathProtoFuncACos(ExecState* exec, JSObject*, const ArgList& args) 113 113 { 114 114 return jsNumber(acos(args[0]->toNumber(exec))); 115 115 } 116 116 117 JSValue* mathProtoFuncASin(ExecState* exec, JSObject*, const List& args)117 JSValue* mathProtoFuncASin(ExecState* exec, JSObject*, const ArgList& args) 118 118 { 119 119 return jsNumber(asin(args[0]->toNumber(exec))); 120 120 } 121 121 122 JSValue* mathProtoFuncATan(ExecState* exec, JSObject*, const List& args)122 JSValue* mathProtoFuncATan(ExecState* exec, JSObject*, const ArgList& args) 123 123 { 124 124 return jsNumber(atan(args[0]->toNumber(exec))); 125 125 } 126 126 127 JSValue* mathProtoFuncATan2(ExecState* exec, JSObject*, const List& args)127 JSValue* mathProtoFuncATan2(ExecState* exec, JSObject*, const ArgList& args) 128 128 { 129 129 return jsNumber(atan2(args[0]->toNumber(exec), args[1]->toNumber(exec))); 130 130 } 131 131 132 JSValue* mathProtoFuncCeil(ExecState* exec, JSObject*, const List& args)132 JSValue* mathProtoFuncCeil(ExecState* exec, JSObject*, const ArgList& args) 133 133 { 134 134 double arg = args[0]->toNumber(exec); … … 138 138 } 139 139 140 JSValue* mathProtoFuncCos(ExecState* exec, JSObject*, const List& args)140 JSValue* mathProtoFuncCos(ExecState* exec, JSObject*, const ArgList& args) 141 141 { 142 142 return jsNumber(cos(args[0]->toNumber(exec))); 143 143 } 144 144 145 JSValue* mathProtoFuncExp(ExecState* exec, JSObject*, const List& args)145 JSValue* mathProtoFuncExp(ExecState* exec, JSObject*, const ArgList& args) 146 146 { 147 147 return jsNumber(exp(args[0]->toNumber(exec))); 148 148 } 149 149 150 JSValue* mathProtoFuncFloor(ExecState* exec, JSObject*, const List& args)150 JSValue* mathProtoFuncFloor(ExecState* exec, JSObject*, const ArgList& args) 151 151 { 152 152 double arg = args[0]->toNumber(exec); … … 156 156 } 157 157 158 JSValue* mathProtoFuncLog(ExecState* exec, JSObject*, const List& args)158 JSValue* mathProtoFuncLog(ExecState* exec, JSObject*, const ArgList& args) 159 159 { 160 160 return jsNumber(log(args[0]->toNumber(exec))); 161 161 } 162 162 163 JSValue* mathProtoFuncMax(ExecState* exec, JSObject*, const List& args)163 JSValue* mathProtoFuncMax(ExecState* exec, JSObject*, const ArgList& args) 164 164 { 165 165 unsigned argsCount = args.size(); … … 177 177 } 178 178 179 JSValue* mathProtoFuncMin(ExecState* exec, JSObject*, const List& args)179 JSValue* mathProtoFuncMin(ExecState* exec, JSObject*, const ArgList& args) 180 180 { 181 181 unsigned argsCount = args.size(); … … 193 193 } 194 194 195 JSValue* mathProtoFuncPow(ExecState* exec, JSObject*, const List& args)195 JSValue* mathProtoFuncPow(ExecState* exec, JSObject*, const ArgList& args) 196 196 { 197 197 // ECMA 15.8.2.1.13 … … 207 207 } 208 208 209 JSValue* mathProtoFuncRandom(ExecState*, JSObject*, const List&)209 JSValue* mathProtoFuncRandom(ExecState*, JSObject*, const ArgList&) 210 210 { 211 211 #if !USE(MULTIPLE_THREADS) … … 220 220 } 221 221 222 JSValue* mathProtoFuncRound(ExecState* exec, JSObject*, const List& args)222 JSValue* mathProtoFuncRound(ExecState* exec, JSObject*, const ArgList& args) 223 223 { 224 224 double arg = args[0]->toNumber(exec); … … 228 228 } 229 229 230 JSValue* mathProtoFuncSin(ExecState* exec, JSObject*, const List& args)230 JSValue* mathProtoFuncSin(ExecState* exec, JSObject*, const ArgList& args) 231 231 { 232 232 return jsNumber(sin(args[0]->toNumber(exec))); 233 233 } 234 234 235 JSValue* mathProtoFuncSqrt(ExecState* exec, JSObject*, const List& args)235 JSValue* mathProtoFuncSqrt(ExecState* exec, JSObject*, const ArgList& args) 236 236 { 237 237 return jsNumber(sqrt(args[0]->toNumber(exec))); 238 238 } 239 239 240 JSValue* mathProtoFuncTan(ExecState* exec, JSObject*, const List& args)240 JSValue* mathProtoFuncTan(ExecState* exec, JSObject*, const ArgList& args) 241 241 { 242 242 return jsNumber(tan(args[0]->toNumber(exec))); -
trunk/JavaScriptCore/kjs/MathObject.h
r34582 r34587 42 42 43 43 // Functions 44 JSValue* mathProtoFuncAbs(ExecState*, JSObject*, const List&);45 JSValue* mathProtoFuncACos(ExecState*, JSObject*, const List&);46 JSValue* mathProtoFuncASin(ExecState*, JSObject*, const List&);47 JSValue* mathProtoFuncATan(ExecState*, JSObject*, const List&);48 JSValue* mathProtoFuncATan2(ExecState*, JSObject*, const List&);49 JSValue* mathProtoFuncCeil(ExecState*, JSObject*, const List&);50 JSValue* mathProtoFuncCos(ExecState*, JSObject*, const List&);51 JSValue* mathProtoFuncExp(ExecState*, JSObject*, const List&);52 JSValue* mathProtoFuncFloor(ExecState*, JSObject*, const List&);53 JSValue* mathProtoFuncLog(ExecState*, JSObject*, const List&);54 JSValue* mathProtoFuncMax(ExecState*, JSObject*, const List&);55 JSValue* mathProtoFuncMin(ExecState*, JSObject*, const List&);56 JSValue* mathProtoFuncPow(ExecState*, JSObject*, const List&);57 JSValue* mathProtoFuncRandom(ExecState*, JSObject*, const List&);58 JSValue* mathProtoFuncRound(ExecState*, JSObject*, const List&);59 JSValue* mathProtoFuncSin(ExecState*, JSObject*, const List&);60 JSValue* mathProtoFuncSqrt(ExecState*, JSObject*, const List&);61 JSValue* mathProtoFuncTan(ExecState*, JSObject*, const List&);44 JSValue* mathProtoFuncAbs(ExecState*, JSObject*, const ArgList&); 45 JSValue* mathProtoFuncACos(ExecState*, JSObject*, const ArgList&); 46 JSValue* mathProtoFuncASin(ExecState*, JSObject*, const ArgList&); 47 JSValue* mathProtoFuncATan(ExecState*, JSObject*, const ArgList&); 48 JSValue* mathProtoFuncATan2(ExecState*, JSObject*, const ArgList&); 49 JSValue* mathProtoFuncCeil(ExecState*, JSObject*, const ArgList&); 50 JSValue* mathProtoFuncCos(ExecState*, JSObject*, const ArgList&); 51 JSValue* mathProtoFuncExp(ExecState*, JSObject*, const ArgList&); 52 JSValue* mathProtoFuncFloor(ExecState*, JSObject*, const ArgList&); 53 JSValue* mathProtoFuncLog(ExecState*, JSObject*, const ArgList&); 54 JSValue* mathProtoFuncMax(ExecState*, JSObject*, const ArgList&); 55 JSValue* mathProtoFuncMin(ExecState*, JSObject*, const ArgList&); 56 JSValue* mathProtoFuncPow(ExecState*, JSObject*, const ArgList&); 57 JSValue* mathProtoFuncRandom(ExecState*, JSObject*, const ArgList&); 58 JSValue* mathProtoFuncRound(ExecState*, JSObject*, const ArgList&); 59 JSValue* mathProtoFuncSin(ExecState*, JSObject*, const ArgList&); 60 JSValue* mathProtoFuncSqrt(ExecState*, JSObject*, const ArgList&); 61 JSValue* mathProtoFuncTan(ExecState*, JSObject*, const ArgList&); 62 62 63 63 } // namespace KJS -
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()? -
trunk/JavaScriptCore/kjs/NumberObject.h
r34582 r34587 57 57 58 58 virtual ConstructType getConstructData(ConstructData&); 59 virtual JSObject* construct(ExecState*, const List&);59 virtual JSObject* construct(ExecState*, const ArgList&); 60 60 61 virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);61 virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&); 62 62 63 63 bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&); … … 69 69 enum { NaNValue, NegInfinity, PosInfinity, MaxValue, MinValue }; 70 70 71 JSObject* construct(const List&);71 JSObject* construct(const ArgList&); 72 72 }; 73 73 -
trunk/JavaScriptCore/kjs/RegExpObject.cpp
r34582 r34587 40 40 // ------------------------------ RegExpPrototype --------------------------- 41 41 42 static JSValue* regExpProtoFuncTest(ExecState*, JSObject*, const List&);43 static JSValue* regExpProtoFuncExec(ExecState*, JSObject*, const List&);44 static JSValue* regExpProtoFuncCompile(ExecState*, JSObject*, const List&);45 static JSValue* regExpProtoFuncToString(ExecState*, JSObject*, const List&);42 static JSValue* regExpProtoFuncTest(ExecState*, JSObject*, const ArgList&); 43 static JSValue* regExpProtoFuncExec(ExecState*, JSObject*, const ArgList&); 44 static JSValue* regExpProtoFuncCompile(ExecState*, JSObject*, const ArgList&); 45 static JSValue* regExpProtoFuncToString(ExecState*, JSObject*, const ArgList&); 46 46 47 47 // ECMA 15.10.5 … … 60 60 // ------------------------------ Functions --------------------------- 61 61 62 JSValue* regExpProtoFuncTest(ExecState* exec, JSObject* thisObj, const List& args)62 JSValue* regExpProtoFuncTest(ExecState* exec, JSObject* thisObj, const ArgList& args) 63 63 { 64 64 if (!thisObj->inherits(&RegExpObject::info)) … … 68 68 } 69 69 70 JSValue* regExpProtoFuncExec(ExecState* exec, JSObject* thisObj, const List& args)70 JSValue* regExpProtoFuncExec(ExecState* exec, JSObject* thisObj, const ArgList& args) 71 71 { 72 72 if (!thisObj->inherits(&RegExpObject::info)) … … 76 76 } 77 77 78 JSValue* regExpProtoFuncCompile(ExecState* exec, JSObject* thisObj, const List& args)78 JSValue* regExpProtoFuncCompile(ExecState* exec, JSObject* thisObj, const ArgList& args) 79 79 { 80 80 if (!thisObj->inherits(&RegExpObject::info)) … … 103 103 } 104 104 105 JSValue* regExpProtoFuncToString(ExecState* exec, JSObject* thisObj, const List&)105 JSValue* regExpProtoFuncToString(ExecState* exec, JSObject* thisObj, const ArgList&) 106 106 { 107 107 if (!thisObj->inherits(&RegExpObject::info)) { … … 182 182 } 183 183 184 bool RegExpObject::match(ExecState* exec, const List& args)184 bool RegExpObject::match(ExecState* exec, const ArgList& args) 185 185 { 186 186 RegExpConstructor* regExpObj = exec->lexicalGlobalObject()->regExpConstructor(); … … 219 219 } 220 220 221 JSValue* RegExpObject::test(ExecState* exec, const List& args)221 JSValue* RegExpObject::test(ExecState* exec, const ArgList& args) 222 222 { 223 223 return jsBoolean(match(exec, args)); 224 224 } 225 225 226 JSValue* RegExpObject::exec(ExecState* exec, const List& args)226 JSValue* RegExpObject::exec(ExecState* exec, const ArgList& args) 227 227 { 228 228 return match(exec, args) … … 236 236 } 237 237 238 JSValue* RegExpObject::callAsFunction(ExecState* exec, JSObject*, const List& args)238 JSValue* RegExpObject::callAsFunction(ExecState* exec, JSObject*, const ArgList& args) 239 239 { 240 240 return RegExpObject::exec(exec, args); … … 479 479 480 480 // ECMA 15.10.4 481 JSObject *RegExpConstructor::construct(ExecState *exec, const List &args)481 JSObject *RegExpConstructor::construct(ExecState *exec, const ArgList &args) 482 482 { 483 483 JSValue* arg0 = args[0]; … … 500 500 501 501 // ECMA 15.10.3 502 JSValue *RegExpConstructor::callAsFunction(ExecState *exec, JSObject * /*thisObj*/, const List &args)502 JSValue *RegExpConstructor::callAsFunction(ExecState *exec, JSObject * /*thisObj*/, const ArgList &args) 503 503 { 504 504 return construct(exec, args); -
trunk/JavaScriptCore/kjs/RegExpObject.h
r34582 r34587 47 47 RegExp* regExp() const { return m_regExp.get(); } 48 48 49 JSValue* test(ExecState*, const List& args);50 JSValue* exec(ExecState*, const List& args);49 JSValue* test(ExecState*, const ArgList& args); 50 JSValue* exec(ExecState*, const ArgList& args); 51 51 52 52 virtual CallType getCallData(CallData&); 53 virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);53 virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&); 54 54 55 55 bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&); … … 64 64 65 65 private: 66 bool match(ExecState*, const List& args);66 bool match(ExecState*, const ArgList& args); 67 67 68 68 RefPtr<RegExp> m_regExp; … … 78 78 79 79 virtual ConstructType getConstructData(ConstructData&); 80 virtual JSObject* construct(ExecState*, const List&);80 virtual JSObject* construct(ExecState*, const ArgList&); 81 81 82 virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);82 virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&); 83 83 84 84 virtual void put(ExecState*, const Identifier&, JSValue*); -
trunk/JavaScriptCore/kjs/Shell.cpp
r34582 r34587 72 72 static bool fillBufferWithContentsOfFile(const UString& fileName, Vector<char>& buffer); 73 73 74 static JSValue* functionPrint(ExecState*, JSObject*, const List&);75 static JSValue* functionDebug(ExecState*, JSObject*, const List&);76 static JSValue* functionGC(ExecState*, JSObject*, const List&);77 static JSValue* functionVersion(ExecState*, JSObject*, const List&);78 static JSValue* functionRun(ExecState*, JSObject*, const List&);79 static JSValue* functionLoad(ExecState*, JSObject*, const List&);80 static JSValue* functionReadline(ExecState*, JSObject*, const List&);81 static JSValue* functionQuit(ExecState*, JSObject*, const List&);74 static JSValue* functionPrint(ExecState*, JSObject*, const ArgList&); 75 static JSValue* functionDebug(ExecState*, JSObject*, const ArgList&); 76 static JSValue* functionGC(ExecState*, JSObject*, const ArgList&); 77 static JSValue* functionVersion(ExecState*, JSObject*, const ArgList&); 78 static JSValue* functionRun(ExecState*, JSObject*, const ArgList&); 79 static JSValue* functionLoad(ExecState*, JSObject*, const ArgList&); 80 static JSValue* functionReadline(ExecState*, JSObject*, const ArgList&); 81 static JSValue* functionQuit(ExecState*, JSObject*, const ArgList&); 82 82 83 83 struct Options { … … 181 181 } 182 182 183 JSValue* functionPrint(ExecState* exec, JSObject*, const List& args)183 JSValue* functionPrint(ExecState* exec, JSObject*, const ArgList& args) 184 184 { 185 185 for (unsigned i = 0; i < args.size(); ++i) { … … 195 195 } 196 196 197 JSValue* functionDebug(ExecState* exec, JSObject*, const List& args)197 JSValue* functionDebug(ExecState* exec, JSObject*, const ArgList& args) 198 198 { 199 199 fprintf(stderr, "--> %s\n", args[0]->toString(exec).UTF8String().c_str()); … … 201 201 } 202 202 203 JSValue* functionGC(ExecState*, JSObject*, const List&)203 JSValue* functionGC(ExecState*, JSObject*, const ArgList&) 204 204 { 205 205 JSLock lock; … … 208 208 } 209 209 210 JSValue* functionVersion(ExecState*, JSObject*, const List&)210 JSValue* functionVersion(ExecState*, JSObject*, const ArgList&) 211 211 { 212 212 // We need this function for compatibility with the Mozilla JS tests but for now … … 215 215 } 216 216 217 JSValue* functionRun(ExecState* exec, JSObject*, const List& args)217 JSValue* functionRun(ExecState* exec, JSObject*, const ArgList& args) 218 218 { 219 219 StopWatch stopWatch; … … 232 232 } 233 233 234 JSValue* functionLoad(ExecState* exec, JSObject*, const List& args)234 JSValue* functionLoad(ExecState* exec, JSObject*, const ArgList& args) 235 235 { 236 236 UString fileName = args[0]->toString(exec); … … 245 245 } 246 246 247 JSValue* functionReadline(ExecState*, JSObject*, const List&)247 JSValue* functionReadline(ExecState*, JSObject*, const ArgList&) 248 248 { 249 249 Vector<char, 256> line; … … 259 259 } 260 260 261 JSValue* functionQuit(ExecState*, JSObject*, const List&)261 JSValue* functionQuit(ExecState*, JSObject*, const ArgList&) 262 262 { 263 263 exit(0); -
trunk/JavaScriptCore/kjs/collector.cpp
r34581 r34587 89 89 90 90 size_t Collector::mainThreadOnlyObjectCount = 0; 91 HashSet< List*>* Collector::m_markListSet;91 HashSet<ArgList*>* Collector::m_markListSet; 92 92 93 93 static CollectorBlock* allocateBlock() … … 958 958 markProtectedObjects(); 959 959 if (m_markListSet && m_markListSet->size()) 960 List::markLists(*m_markListSet);960 ArgList::markLists(*m_markListSet); 961 961 #if USE(MULTIPLE_THREADS) 962 962 if (!currentThreadIsMainThread) -
trunk/JavaScriptCore/kjs/collector.h
r34514 r34587 32 32 class JSCell; 33 33 class JSValue; 34 class List;34 class ArgList; 35 35 36 36 class Collector { … … 79 79 static void markStackObjectsConservatively(void* start, void* end); 80 80 81 static HashSet< List*>& markListSet() { if (!m_markListSet) m_markListSet = new HashSet<List*>; return *m_markListSet; }81 static HashSet<ArgList*>& markListSet() { if (!m_markListSet) m_markListSet = new HashSet<ArgList*>; return *m_markListSet; } 82 82 83 83 private: … … 101 101 static bool memoryFull; 102 102 103 static HashSet< List*>* m_markListSet;103 static HashSet<ArgList*>* m_markListSet; 104 104 }; 105 105 -
trunk/JavaScriptCore/kjs/date_object.cpp
r34581 r34587 87 87 DateFunction(ExecState *, FunctionPrototype *, int i, int len, const Identifier& ); 88 88 89 virtual JSValue *callAsFunction(ExecState *, JSObject *thisObj, const List &args);89 virtual JSValue *callAsFunction(ExecState *, JSObject *thisObj, const ArgList &args); 90 90 91 91 enum { Parse, UTC, Now }; … … 117 117 } 118 118 119 static UString formatLocaleDate(ExecState *exec, double time, bool includeDate, bool includeTime, const List &args)119 static UString formatLocaleDate(ExecState *exec, double time, bool includeDate, bool includeTime, const ArgList &args) 120 120 { 121 121 CFDateFormatterStyle dateStyle = (includeDate ? kCFDateFormatterLongStyle : kCFDateFormatterNoStyle); … … 254 254 // 255 255 // Format of member function: f([hour,] [min,] [sec,] [ms]) 256 static bool fillStructuresUsingTimeArgs(ExecState* exec, const List& args, int maxArgs, double* ms, GregorianDateTime* t)256 static bool fillStructuresUsingTimeArgs(ExecState* exec, const ArgList& args, int maxArgs, double* ms, GregorianDateTime* t) 257 257 { 258 258 double milliseconds = 0; … … 302 302 // 303 303 // Format of member function: f([years,] [months,] [days]) 304 static bool fillStructuresUsingDateArgs(ExecState *exec, const List &args, int maxArgs, double *ms, GregorianDateTime *t)304 static bool fillStructuresUsingDateArgs(ExecState *exec, const ArgList &args, int maxArgs, double *ms, GregorianDateTime *t) 305 305 { 306 306 int idx = 0; … … 502 502 503 503 // ECMA 15.9.3 504 JSObject *DateConstructor::construct(ExecState *exec, const List &args)504 JSObject *DateConstructor::construct(ExecState *exec, const ArgList &args) 505 505 { 506 506 int numArgs = args.size(); … … 550 550 551 551 // ECMA 15.9.2 552 JSValue *DateConstructor::callAsFunction(ExecState * /*exec*/, JSObject * /*thisObj*/, const List &/*args*/)552 JSValue *DateConstructor::callAsFunction(ExecState * /*exec*/, JSObject * /*thisObj*/, const ArgList &/*args*/) 553 553 { 554 554 time_t localTime = time(0); … … 568 568 569 569 // ECMA 15.9.4.2 - 3 570 JSValue *DateFunction::callAsFunction(ExecState* exec, JSObject*, const List& args)570 JSValue *DateFunction::callAsFunction(ExecState* exec, JSObject*, const ArgList& args) 571 571 { 572 572 if (id == Parse) … … 979 979 // Functions 980 980 981 JSValue* dateProtoFuncToString(ExecState* exec, JSObject* thisObj, const List&)981 JSValue* dateProtoFuncToString(ExecState* exec, JSObject* thisObj, const ArgList&) 982 982 { 983 983 if (!thisObj->inherits(&DateInstance::info)) … … 997 997 } 998 998 999 JSValue* dateProtoFuncToUTCString(ExecState* exec, JSObject* thisObj, const List&)999 JSValue* dateProtoFuncToUTCString(ExecState* exec, JSObject* thisObj, const ArgList&) 1000 1000 { 1001 1001 if (!thisObj->inherits(&DateInstance::info)) … … 1015 1015 } 1016 1016 1017 JSValue* dateProtoFuncToDateString(ExecState* exec, JSObject* thisObj, const List&)1017 JSValue* dateProtoFuncToDateString(ExecState* exec, JSObject* thisObj, const ArgList&) 1018 1018 { 1019 1019 if (!thisObj->inherits(&DateInstance::info)) … … 1033 1033 } 1034 1034 1035 JSValue* dateProtoFuncToTimeString(ExecState* exec, JSObject* thisObj, const List&)1035 JSValue* dateProtoFuncToTimeString(ExecState* exec, JSObject* thisObj, const ArgList&) 1036 1036 { 1037 1037 if (!thisObj->inherits(&DateInstance::info)) … … 1051 1051 } 1052 1052 1053 JSValue* dateProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const List& args)1053 JSValue* dateProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const ArgList& args) 1054 1054 { 1055 1055 if (!thisObj->inherits(&DateInstance::info)) … … 1076 1076 } 1077 1077 1078 JSValue* dateProtoFuncToLocaleDateString(ExecState* exec, JSObject* thisObj, const List& args)1078 JSValue* dateProtoFuncToLocaleDateString(ExecState* exec, JSObject* thisObj, const ArgList& args) 1079 1079 { 1080 1080 if (!thisObj->inherits(&DateInstance::info)) … … 1101 1101 } 1102 1102 1103 JSValue* dateProtoFuncToLocaleTimeString(ExecState* exec, JSObject* thisObj, const List& args)1103 JSValue* dateProtoFuncToLocaleTimeString(ExecState* exec, JSObject* thisObj, const ArgList& args) 1104 1104 { 1105 1105 if (!thisObj->inherits(&DateInstance::info)) … … 1126 1126 } 1127 1127 1128 JSValue* dateProtoFuncValueOf(ExecState* exec, JSObject* thisObj, const List&)1128 JSValue* dateProtoFuncValueOf(ExecState* exec, JSObject* thisObj, const ArgList&) 1129 1129 { 1130 1130 if (!thisObj->inherits(&DateInstance::info)) … … 1140 1140 } 1141 1141 1142 JSValue* dateProtoFuncGetTime(ExecState* exec, JSObject* thisObj, const List&)1142 JSValue* dateProtoFuncGetTime(ExecState* exec, JSObject* thisObj, const ArgList&) 1143 1143 { 1144 1144 if (!thisObj->inherits(&DateInstance::info)) … … 1154 1154 } 1155 1155 1156 JSValue* dateProtoFuncGetFullYear(ExecState* exec, JSObject* thisObj, const List&)1156 JSValue* dateProtoFuncGetFullYear(ExecState* exec, JSObject* thisObj, const ArgList&) 1157 1157 { 1158 1158 if (!thisObj->inherits(&DateInstance::info)) … … 1172 1172 } 1173 1173 1174 JSValue* dateProtoFuncGetUTCFullYear(ExecState* exec, JSObject* thisObj, const List&)1174 JSValue* dateProtoFuncGetUTCFullYear(ExecState* exec, JSObject* thisObj, const ArgList&) 1175 1175 { 1176 1176 if (!thisObj->inherits(&DateInstance::info)) … … 1190 1190 } 1191 1191 1192 JSValue* dateProtoFuncToGMTString(ExecState* exec, JSObject* thisObj, const List&)1192 JSValue* dateProtoFuncToGMTString(ExecState* exec, JSObject* thisObj, const ArgList&) 1193 1193 { 1194 1194 if (!thisObj->inherits(&DateInstance::info)) … … 1208 1208 } 1209 1209 1210 JSValue* dateProtoFuncGetMonth(ExecState* exec, JSObject* thisObj, const List&)1210 JSValue* dateProtoFuncGetMonth(ExecState* exec, JSObject* thisObj, const ArgList&) 1211 1211 { 1212 1212 if (!thisObj->inherits(&DateInstance::info)) … … 1226 1226 } 1227 1227 1228 JSValue* dateProtoFuncGetUTCMonth(ExecState* exec, JSObject* thisObj, const List&)1228 JSValue* dateProtoFuncGetUTCMonth(ExecState* exec, JSObject* thisObj, const ArgList&) 1229 1229 { 1230 1230 if (!thisObj->inherits(&DateInstance::info)) … … 1244 1244 } 1245 1245 1246 JSValue* dateProtoFuncGetDate(ExecState* exec, JSObject* thisObj, const List&)1246 JSValue* dateProtoFuncGetDate(ExecState* exec, JSObject* thisObj, const ArgList&) 1247 1247 { 1248 1248 if (!thisObj->inherits(&DateInstance::info)) … … 1262 1262 } 1263 1263 1264 JSValue* dateProtoFuncGetUTCDate(ExecState* exec, JSObject* thisObj, const List&)1264 JSValue* dateProtoFuncGetUTCDate(ExecState* exec, JSObject* thisObj, const ArgList&) 1265 1265 { 1266 1266 if (!thisObj->inherits(&DateInstance::info)) … … 1280 1280 } 1281 1281 1282 JSValue* dateProtoFuncGetDay(ExecState* exec, JSObject* thisObj, const List&)1282 JSValue* dateProtoFuncGetDay(ExecState* exec, JSObject* thisObj, const ArgList&) 1283 1283 { 1284 1284 if (!thisObj->inherits(&DateInstance::info)) … … 1298 1298 } 1299 1299 1300 JSValue* dateProtoFuncGetUTCDay(ExecState* exec, JSObject* thisObj, const List&)1300 JSValue* dateProtoFuncGetUTCDay(ExecState* exec, JSObject* thisObj, const ArgList&) 1301 1301 { 1302 1302 if (!thisObj->inherits(&DateInstance::info)) … … 1316 1316 } 1317 1317 1318 JSValue* dateProtoFuncGetHours(ExecState* exec, JSObject* thisObj, const List&)1318 JSValue* dateProtoFuncGetHours(ExecState* exec, JSObject* thisObj, const ArgList&) 1319 1319 { 1320 1320 if (!thisObj->inherits(&DateInstance::info)) … … 1334 1334 } 1335 1335 1336 JSValue* dateProtoFuncGetUTCHours(ExecState* exec, JSObject* thisObj, const List&)1336 JSValue* dateProtoFuncGetUTCHours(ExecState* exec, JSObject* thisObj, const ArgList&) 1337 1337 { 1338 1338 if (!thisObj->inherits(&DateInstance::info)) … … 1352 1352 } 1353 1353 1354 JSValue* dateProtoFuncGetMinutes(ExecState* exec, JSObject* thisObj, const List&)1354 JSValue* dateProtoFuncGetMinutes(ExecState* exec, JSObject* thisObj, const ArgList&) 1355 1355 { 1356 1356 if (!thisObj->inherits(&DateInstance::info)) … … 1370 1370 } 1371 1371 1372 JSValue* dateProtoFuncGetUTCMinutes(ExecState* exec, JSObject* thisObj, const List&)1372 JSValue* dateProtoFuncGetUTCMinutes(ExecState* exec, JSObject* thisObj, const ArgList&) 1373 1373 { 1374 1374 if (!thisObj->inherits(&DateInstance::info)) … … 1388 1388 } 1389 1389 1390 JSValue* dateProtoFuncGetSeconds(ExecState* exec, JSObject* thisObj, const List&)1390 JSValue* dateProtoFuncGetSeconds(ExecState* exec, JSObject* thisObj, const ArgList&) 1391 1391 { 1392 1392 if (!thisObj->inherits(&DateInstance::info)) … … 1406 1406 } 1407 1407 1408 JSValue* dateProtoFuncGetUTCSeconds(ExecState* exec, JSObject* thisObj, const List&)1408 JSValue* dateProtoFuncGetUTCSeconds(ExecState* exec, JSObject* thisObj, const ArgList&) 1409 1409 { 1410 1410 if (!thisObj->inherits(&DateInstance::info)) … … 1424 1424 } 1425 1425 1426 JSValue* dateProtoFuncGetMilliSeconds(ExecState* exec, JSObject* thisObj, const List&)1426 JSValue* dateProtoFuncGetMilliSeconds(ExecState* exec, JSObject* thisObj, const ArgList&) 1427 1427 { 1428 1428 if (!thisObj->inherits(&DateInstance::info)) … … 1440 1440 } 1441 1441 1442 JSValue* dateProtoFuncGetUTCMilliseconds(ExecState* exec, JSObject* thisObj, const List&)1442 JSValue* dateProtoFuncGetUTCMilliseconds(ExecState* exec, JSObject* thisObj, const ArgList&) 1443 1443 { 1444 1444 if (!thisObj->inherits(&DateInstance::info)) … … 1456 1456 } 1457 1457 1458 JSValue* dateProtoFuncGetTimezoneOffset(ExecState* exec, JSObject* thisObj, const List&)1458 JSValue* dateProtoFuncGetTimezoneOffset(ExecState* exec, JSObject* thisObj, const ArgList&) 1459 1459 { 1460 1460 if (!thisObj->inherits(&DateInstance::info)) … … 1474 1474 } 1475 1475 1476 JSValue* dateProtoFuncSetTime(ExecState* exec, JSObject* thisObj, const List& args)1476 JSValue* dateProtoFuncSetTime(ExecState* exec, JSObject* thisObj, const ArgList& args) 1477 1477 { 1478 1478 if (!thisObj->inherits(&DateInstance::info)) … … 1487 1487 } 1488 1488 1489 static JSValue* setNewValueFromTimeArgs(ExecState* exec, JSObject* thisObj, const List& args, int numArgsToUse, bool inputIsUTC)1489 static JSValue* setNewValueFromTimeArgs(ExecState* exec, JSObject* thisObj, const ArgList& args, int numArgsToUse, bool inputIsUTC) 1490 1490 { 1491 1491 if (!thisObj->inherits(&DateInstance::info)) … … 1519 1519 } 1520 1520 1521 static JSValue* setNewValueFromDateArgs(ExecState* exec, JSObject* thisObj, const List& args, int numArgsToUse, bool inputIsUTC)1521 static JSValue* setNewValueFromDateArgs(ExecState* exec, JSObject* thisObj, const ArgList& args, int numArgsToUse, bool inputIsUTC) 1522 1522 { 1523 1523 if (!thisObj->inherits(&DateInstance::info)) … … 1557 1557 } 1558 1558 1559 JSValue* dateProtoFuncSetMilliSeconds(ExecState* exec, JSObject* thisObj, const List& args)1559 JSValue* dateProtoFuncSetMilliSeconds(ExecState* exec, JSObject* thisObj, const ArgList& args) 1560 1560 { 1561 1561 const bool inputIsUTC = false; … … 1563 1563 } 1564 1564 1565 JSValue* dateProtoFuncSetUTCMilliseconds(ExecState* exec, JSObject* thisObj, const List& args)1565 JSValue* dateProtoFuncSetUTCMilliseconds(ExecState* exec, JSObject* thisObj, const ArgList& args) 1566 1566 { 1567 1567 const bool inputIsUTC = true; … … 1569 1569 } 1570 1570 1571 JSValue* dateProtoFuncSetSeconds(ExecState* exec, JSObject* thisObj, const List& args)1571 JSValue* dateProtoFuncSetSeconds(ExecState* exec, JSObject* thisObj, const ArgList& args) 1572 1572 { 1573 1573 const bool inputIsUTC = false; … … 1575 1575 } 1576 1576 1577 JSValue* dateProtoFuncSetUTCSeconds(ExecState* exec, JSObject* thisObj, const List& args)1577 JSValue* dateProtoFuncSetUTCSeconds(ExecState* exec, JSObject* thisObj, const ArgList& args) 1578 1578 { 1579 1579 const bool inputIsUTC = true; … … 1581 1581 } 1582 1582 1583 JSValue* dateProtoFuncSetMinutes(ExecState* exec, JSObject* thisObj, const List& args)1583 JSValue* dateProtoFuncSetMinutes(ExecState* exec, JSObject* thisObj, const ArgList& args) 1584 1584 { 1585 1585 const bool inputIsUTC = false; … … 1587 1587 } 1588 1588 1589 JSValue* dateProtoFuncSetUTCMinutes(ExecState* exec, JSObject* thisObj, const List& args)1589 JSValue* dateProtoFuncSetUTCMinutes(ExecState* exec, JSObject* thisObj, const ArgList& args) 1590 1590 { 1591 1591 const bool inputIsUTC = true; … … 1593 1593 } 1594 1594 1595 JSValue* dateProtoFuncSetHours(ExecState* exec, JSObject* thisObj, const List& args)1595 JSValue* dateProtoFuncSetHours(ExecState* exec, JSObject* thisObj, const ArgList& args) 1596 1596 { 1597 1597 const bool inputIsUTC = false; … … 1599 1599 } 1600 1600 1601 JSValue* dateProtoFuncSetUTCHours(ExecState* exec, JSObject* thisObj, const List& args)1601 JSValue* dateProtoFuncSetUTCHours(ExecState* exec, JSObject* thisObj, const ArgList& args) 1602 1602 { 1603 1603 const bool inputIsUTC = true; … … 1605 1605 } 1606 1606 1607 JSValue* dateProtoFuncSetDate(ExecState* exec, JSObject* thisObj, const List& args)1607 JSValue* dateProtoFuncSetDate(ExecState* exec, JSObject* thisObj, const ArgList& args) 1608 1608 { 1609 1609 const bool inputIsUTC = false; … … 1611 1611 } 1612 1612 1613 JSValue* dateProtoFuncSetUTCDate(ExecState* exec, JSObject* thisObj, const List& args)1613 JSValue* dateProtoFuncSetUTCDate(ExecState* exec, JSObject* thisObj, const ArgList& args) 1614 1614 { 1615 1615 const bool inputIsUTC = true; … … 1617 1617 } 1618 1618 1619 JSValue* dateProtoFuncSetMonth(ExecState* exec, JSObject* thisObj, const List& args)1619 JSValue* dateProtoFuncSetMonth(ExecState* exec, JSObject* thisObj, const ArgList& args) 1620 1620 { 1621 1621 const bool inputIsUTC = false; … … 1623 1623 } 1624 1624 1625 JSValue* dateProtoFuncSetUTCMonth(ExecState* exec, JSObject* thisObj, const List& args)1625 JSValue* dateProtoFuncSetUTCMonth(ExecState* exec, JSObject* thisObj, const ArgList& args) 1626 1626 { 1627 1627 const bool inputIsUTC = true; … … 1629 1629 } 1630 1630 1631 JSValue* dateProtoFuncSetFullYear(ExecState* exec, JSObject* thisObj, const List& args)1631 JSValue* dateProtoFuncSetFullYear(ExecState* exec, JSObject* thisObj, const ArgList& args) 1632 1632 { 1633 1633 const bool inputIsUTC = false; … … 1635 1635 } 1636 1636 1637 JSValue* dateProtoFuncSetUTCFullYear(ExecState* exec, JSObject* thisObj, const List& args)1637 JSValue* dateProtoFuncSetUTCFullYear(ExecState* exec, JSObject* thisObj, const ArgList& args) 1638 1638 { 1639 1639 const bool inputIsUTC = true; … … 1641 1641 } 1642 1642 1643 JSValue* dateProtoFuncSetYear(ExecState* exec, JSObject* thisObj, const List& args)1643 JSValue* dateProtoFuncSetYear(ExecState* exec, JSObject* thisObj, const ArgList& args) 1644 1644 { 1645 1645 if (!thisObj->inherits(&DateInstance::info)) … … 1684 1684 } 1685 1685 1686 JSValue* dateProtoFuncGetYear(ExecState* exec, JSObject* thisObj, const List&)1686 JSValue* dateProtoFuncGetYear(ExecState* exec, JSObject* thisObj, const ArgList&) 1687 1687 { 1688 1688 if (!thisObj->inherits(&DateInstance::info)) -
trunk/JavaScriptCore/kjs/date_object.h
r34581 r34587 76 76 // GetYear, SetYear, ToGMTString 77 77 78 JSValue* dateProtoFuncToString(ExecState*, JSObject*, const List&);79 JSValue* dateProtoFuncToUTCString(ExecState*, JSObject*, const List&);80 JSValue* dateProtoFuncToDateString(ExecState*, JSObject*, const List&);81 JSValue* dateProtoFuncToTimeString(ExecState*, JSObject*, const List&);82 JSValue* dateProtoFuncToLocaleString(ExecState*, JSObject*, const List&);83 JSValue* dateProtoFuncToLocaleDateString(ExecState*, JSObject*, const List&);84 JSValue* dateProtoFuncToLocaleTimeString(ExecState*, JSObject*, const List&);85 JSValue* dateProtoFuncValueOf(ExecState*, JSObject*, const List&);86 JSValue* dateProtoFuncGetTime(ExecState*, JSObject*, const List&);87 JSValue* dateProtoFuncGetFullYear(ExecState*, JSObject*, const List&);88 JSValue* dateProtoFuncGetUTCFullYear(ExecState*, JSObject*, const List&);89 JSValue* dateProtoFuncToGMTString(ExecState*, JSObject*, const List&);90 JSValue* dateProtoFuncGetMonth(ExecState*, JSObject*, const List&);91 JSValue* dateProtoFuncGetUTCMonth(ExecState*, JSObject*, const List&);92 JSValue* dateProtoFuncGetDate(ExecState*, JSObject*, const List&);93 JSValue* dateProtoFuncGetUTCDate(ExecState*, JSObject*, const List&);94 JSValue* dateProtoFuncGetDay(ExecState*, JSObject*, const List&);95 JSValue* dateProtoFuncGetUTCDay(ExecState*, JSObject*, const List&);96 JSValue* dateProtoFuncGetHours(ExecState*, JSObject*, const List&);97 JSValue* dateProtoFuncGetUTCHours(ExecState*, JSObject*, const List&);98 JSValue* dateProtoFuncGetMinutes(ExecState*, JSObject*, const List&);99 JSValue* dateProtoFuncGetUTCMinutes(ExecState*, JSObject*, const List&);100 JSValue* dateProtoFuncGetSeconds(ExecState*, JSObject*, const List&);101 JSValue* dateProtoFuncGetUTCSeconds(ExecState*, JSObject*, const List&);102 JSValue* dateProtoFuncGetMilliSeconds(ExecState*, JSObject*, const List&);103 JSValue* dateProtoFuncGetUTCMilliseconds(ExecState*, JSObject*, const List&);104 JSValue* dateProtoFuncGetTimezoneOffset(ExecState*, JSObject*, const List&);105 JSValue* dateProtoFuncSetTime(ExecState*, JSObject*, const List&);106 JSValue* dateProtoFuncSetMilliSeconds(ExecState*, JSObject*, const List&);107 JSValue* dateProtoFuncSetUTCMilliseconds(ExecState*, JSObject*, const List&);108 JSValue* dateProtoFuncSetSeconds(ExecState*, JSObject*, const List&);109 JSValue* dateProtoFuncSetUTCSeconds(ExecState*, JSObject*, const List&);110 JSValue* dateProtoFuncSetMinutes(ExecState*, JSObject*, const List&);111 JSValue* dateProtoFuncSetUTCMinutes(ExecState*, JSObject*, const List&);112 JSValue* dateProtoFuncSetHours(ExecState*, JSObject*, const List&);113 JSValue* dateProtoFuncSetUTCHours(ExecState*, JSObject*, const List&);114 JSValue* dateProtoFuncSetDate(ExecState*, JSObject*, const List&);115 JSValue* dateProtoFuncSetUTCDate(ExecState*, JSObject*, const List&);116 JSValue* dateProtoFuncSetMonth(ExecState*, JSObject*, const List&);117 JSValue* dateProtoFuncSetUTCMonth(ExecState*, JSObject*, const List&);118 JSValue* dateProtoFuncSetFullYear(ExecState*, JSObject*, const List&);119 JSValue* dateProtoFuncSetUTCFullYear(ExecState*, JSObject*, const List&);120 JSValue* dateProtoFuncSetYear(ExecState*, JSObject*, const List&);121 JSValue* dateProtoFuncGetYear(ExecState*, JSObject*, const List&);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 122 123 123 /** … … 131 131 132 132 virtual ConstructType getConstructData(ConstructData&); 133 virtual JSObject* construct(ExecState*, const List& args);133 virtual JSObject* construct(ExecState*, const ArgList& args); 134 134 135 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const List& args);135 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const ArgList& args); 136 136 137 JSObject* construct(const List&);137 JSObject* construct(const ArgList&); 138 138 }; 139 139 -
trunk/JavaScriptCore/kjs/debugger.h
r34351 r34587 34 34 class JSObject; 35 35 class JSValue; 36 class List;36 class ArgList; 37 37 class SourceProvider; 38 38 class UString; -
trunk/JavaScriptCore/kjs/error_object.cpp
r34581 r34587 53 53 } 54 54 55 JSValue* errorProtoFuncToString(ExecState* exec, JSObject* thisObj, const List&)55 JSValue* errorProtoFuncToString(ExecState* exec, JSObject* thisObj, const ArgList&) 56 56 { 57 57 UString s = "Error"; … … 85 85 86 86 // ECMA 15.9.3 87 JSObject* ErrorConstructor::construct(ExecState* exec, const List& args)87 JSObject* ErrorConstructor::construct(ExecState* exec, const ArgList& args) 88 88 { 89 89 JSObject* proto = static_cast<JSObject*>(exec->lexicalGlobalObject()->errorPrototype()); … … 98 98 99 99 // ECMA 15.9.2 100 JSValue* ErrorConstructor::callAsFunction(ExecState* exec, JSObject* /*thisObj*/, const List& args)100 JSValue* ErrorConstructor::callAsFunction(ExecState* exec, JSObject* /*thisObj*/, const ArgList& args) 101 101 { 102 102 // "Error()" gives the sames result as "new Error()" … … 130 130 } 131 131 132 JSObject* NativeErrorConstructor::construct(ExecState* exec, const List& args)132 JSObject* NativeErrorConstructor::construct(ExecState* exec, const ArgList& args) 133 133 { 134 134 JSObject* imp = new ErrorInstance(proto); … … 139 139 } 140 140 141 JSValue* NativeErrorConstructor::callAsFunction(ExecState* exec, JSObject*, const List& args)141 JSValue* NativeErrorConstructor::callAsFunction(ExecState* exec, JSObject*, const ArgList& args) 142 142 { 143 143 return construct(exec, args); -
trunk/JavaScriptCore/kjs/error_object.h
r34582 r34587 39 39 }; 40 40 41 JSValue* errorProtoFuncToString(ExecState*, JSObject*, const List&);41 JSValue* errorProtoFuncToString(ExecState*, JSObject*, const ArgList&); 42 42 43 43 class ErrorConstructor : public InternalFunction { … … 46 46 47 47 virtual ConstructType getConstructData(ConstructData&); 48 virtual JSObject* construct(ExecState*, const List&);48 virtual JSObject* construct(ExecState*, const ArgList&); 49 49 50 virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);50 virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&); 51 51 }; 52 52 … … 61 61 62 62 virtual ConstructType getConstructData(ConstructData&); 63 virtual JSObject* construct(ExecState*, const List&);63 virtual JSObject* construct(ExecState*, const ArgList&); 64 64 65 virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);65 virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&); 66 66 67 67 virtual void mark(); -
trunk/JavaScriptCore/kjs/internal.cpp
r34582 r34587 178 178 JSObject *JSNumberCell::toObject(ExecState *exec) const 179 179 { 180 List args;180 ArgList args; 181 181 args.append(const_cast<JSNumberCell*>(this)); 182 182 return static_cast<JSObject *>(exec->lexicalGlobalObject()->numberConstructor()->construct(exec,args)); … … 185 185 JSObject* JSNumberCell::toThisObject(ExecState* exec) const 186 186 { 187 List args;187 ArgList args; 188 188 args.append(const_cast<JSNumberCell*>(this)); 189 189 return static_cast<JSObject*>(exec->lexicalGlobalObject()->numberConstructor()->construct(exec, args)); -
trunk/JavaScriptCore/kjs/list.cpp
r34514 r34587 26 26 namespace KJS { 27 27 28 void List::getSlice(int startIndex,List& result) const28 void ArgList::getSlice(int startIndex, ArgList& result) const 29 29 { 30 30 ASSERT(!result.m_isReadOnly); … … 36 36 } 37 37 38 void List::markLists(ListSet& markSet)38 void ArgList::markLists(ListSet& markSet) 39 39 { 40 40 ListSet::iterator end = markSet.end(); 41 41 for (ListSet::iterator it = markSet.begin(); it != end; ++it) { 42 List* list = *it;42 ArgList* list = *it; 43 43 44 44 iterator end2 = list->end(); … … 51 51 } 52 52 53 void List::slowAppend(JSValue* v)53 void ArgList::slowAppend(JSValue* v) 54 54 { 55 55 // As long as our size stays within our Vector's inline -
trunk/JavaScriptCore/kjs/list.h
r34581 r34587 31 31 32 32 class JSValue; 33 class List;33 class ArgList; 34 34 35 class List : Noncopyable {35 class ArgList : Noncopyable { 36 36 private: 37 37 static const unsigned inlineCapacity = 8; 38 38 typedef Vector<JSValue*, inlineCapacity> VectorType; 39 typedef HashSet< List*> ListSet;39 typedef HashSet<ArgList*> ListSet; 40 40 41 41 public: … … 45 45 // Constructor for a read-write list, to which you may append values. 46 46 // FIXME: Remove all clients of this API, then remove this API. 47 List()47 ArgList() 48 48 : m_markSet(0) 49 49 #ifndef NDEBUG … … 57 57 58 58 // Constructor for a read-only list whose data has already been allocated elsewhere. 59 List(JSValue*** bufferSlot, size_t offset, size_t size)59 ArgList(JSValue*** bufferSlot, size_t offset, size_t size) 60 60 : m_bufferSlot(bufferSlot) 61 61 , m_offset(offset) … … 68 68 } 69 69 70 ~ List()70 ~ArgList() 71 71 { 72 72 if (m_markSet) … … 107 107 } 108 108 109 void getSlice(int startIndex, List& result) const;109 void getSlice(int startIndex, ArgList& result) const; 110 110 111 111 iterator begin() { return buffer(); } -
trunk/JavaScriptCore/kjs/object_object.cpp
r34582 r34587 31 31 // ------------------------------ ObjectPrototype -------------------------------- 32 32 33 static JSValue* objectProtoFuncValueOf(ExecState*, JSObject*, const List&);34 static JSValue* objectProtoFuncHasOwnProperty(ExecState*, JSObject*, const List&);35 static JSValue* objectProtoFuncIsPrototypeOf(ExecState*, JSObject*, const List&);36 static JSValue* objectProtoFuncDefineGetter(ExecState*, JSObject*, const List&);37 static JSValue* objectProtoFuncDefineSetter(ExecState*, JSObject*, const List&);38 static JSValue* objectProtoFuncLookupGetter(ExecState*, JSObject*, const List&);39 static JSValue* objectProtoFuncLookupSetter(ExecState*, JSObject*, const List&);40 static JSValue* objectProtoFuncPropertyIsEnumerable(ExecState*, JSObject*, const List&);41 static JSValue* objectProtoFuncToLocaleString(ExecState*, JSObject*, const List&);33 static JSValue* objectProtoFuncValueOf(ExecState*, JSObject*, const ArgList&); 34 static JSValue* objectProtoFuncHasOwnProperty(ExecState*, JSObject*, const ArgList&); 35 static JSValue* objectProtoFuncIsPrototypeOf(ExecState*, JSObject*, const ArgList&); 36 static JSValue* objectProtoFuncDefineGetter(ExecState*, JSObject*, const ArgList&); 37 static JSValue* objectProtoFuncDefineSetter(ExecState*, JSObject*, const ArgList&); 38 static JSValue* objectProtoFuncLookupGetter(ExecState*, JSObject*, const ArgList&); 39 static JSValue* objectProtoFuncLookupSetter(ExecState*, JSObject*, const ArgList&); 40 static JSValue* objectProtoFuncPropertyIsEnumerable(ExecState*, JSObject*, const ArgList&); 41 static JSValue* objectProtoFuncToLocaleString(ExecState*, JSObject*, const ArgList&); 42 42 43 43 ObjectPrototype::ObjectPrototype(ExecState* exec, FunctionPrototype* functionPrototype) … … 63 63 // ECMA 15.2.4.2, 15.2.4.4, 15.2.4.5, 15.2.4.7 64 64 65 JSValue* objectProtoFuncValueOf(ExecState*, JSObject* thisObj, const List&)65 JSValue* objectProtoFuncValueOf(ExecState*, JSObject* thisObj, const ArgList&) 66 66 { 67 67 return thisObj; 68 68 } 69 69 70 JSValue* objectProtoFuncHasOwnProperty(ExecState* exec, JSObject* thisObj, const List& args)70 JSValue* objectProtoFuncHasOwnProperty(ExecState* exec, JSObject* thisObj, const ArgList& args) 71 71 { 72 72 return jsBoolean(thisObj->hasOwnProperty(exec, Identifier(args[0]->toString(exec)))); 73 73 } 74 74 75 JSValue* objectProtoFuncIsPrototypeOf(ExecState*, JSObject* thisObj, const List& args)75 JSValue* objectProtoFuncIsPrototypeOf(ExecState*, JSObject* thisObj, const ArgList& args) 76 76 { 77 77 if (!args[0]->isObject()) … … 90 90 } 91 91 92 JSValue* objectProtoFuncDefineGetter(ExecState* exec, JSObject* thisObj, const List& args)92 JSValue* objectProtoFuncDefineGetter(ExecState* exec, JSObject* thisObj, const ArgList& args) 93 93 { 94 94 if (!args[1]->isObject() || !static_cast<JSObject*>(args[1])->implementsCall()) … … 99 99 } 100 100 101 JSValue* objectProtoFuncDefineSetter(ExecState* exec, JSObject* thisObj, const List& args)101 JSValue* objectProtoFuncDefineSetter(ExecState* exec, JSObject* thisObj, const ArgList& args) 102 102 { 103 103 if (!args[1]->isObject() || !static_cast<JSObject*>(args[1])->implementsCall()) … … 108 108 } 109 109 110 JSValue* objectProtoFuncLookupGetter(ExecState* exec, JSObject* thisObj, const List& args)110 JSValue* objectProtoFuncLookupGetter(ExecState* exec, JSObject* thisObj, const ArgList& args) 111 111 { 112 112 return thisObj->lookupGetter(exec, Identifier(args[0]->toString(exec))); 113 113 } 114 114 115 JSValue* objectProtoFuncLookupSetter(ExecState* exec, JSObject* thisObj, const List& args)115 JSValue* objectProtoFuncLookupSetter(ExecState* exec, JSObject* thisObj, const ArgList& args) 116 116 { 117 117 return thisObj->lookupSetter(exec, Identifier(args[0]->toString(exec))); 118 118 } 119 119 120 JSValue* objectProtoFuncPropertyIsEnumerable(ExecState* exec, JSObject* thisObj, const List& args)120 JSValue* objectProtoFuncPropertyIsEnumerable(ExecState* exec, JSObject* thisObj, const ArgList& args) 121 121 { 122 122 return jsBoolean(thisObj->propertyIsEnumerable(exec, Identifier(args[0]->toString(exec)))); 123 123 } 124 124 125 JSValue* objectProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const List&)125 JSValue* objectProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const ArgList&) 126 126 { 127 127 return jsString(thisObj->toString(exec)); 128 128 } 129 129 130 JSValue* objectProtoFuncToString(ExecState*, JSObject* thisObj, const List&)130 JSValue* objectProtoFuncToString(ExecState*, JSObject* thisObj, const ArgList&) 131 131 { 132 132 return jsString("[object " + thisObj->className() + "]"); … … 151 151 152 152 // ECMA 15.2.2 153 JSObject* ObjectConstructor::construct(ExecState* exec, const List& args)153 JSObject* ObjectConstructor::construct(ExecState* exec, const ArgList& args) 154 154 { 155 155 JSValue* arg = args[0]; … … 169 169 } 170 170 171 JSValue* ObjectConstructor::callAsFunction(ExecState* exec, JSObject* /*thisObj*/, const List &args)171 JSValue* ObjectConstructor::callAsFunction(ExecState* exec, JSObject* /*thisObj*/, const ArgList &args) 172 172 { 173 173 return construct(exec, args); -
trunk/JavaScriptCore/kjs/object_object.h
r34581 r34587 37 37 }; 38 38 39 JSValue* objectProtoFuncToString(ExecState*, JSObject*, const List&);39 JSValue* objectProtoFuncToString(ExecState*, JSObject*, const ArgList&); 40 40 41 41 /** … … 49 49 50 50 virtual ConstructType getConstructData(ConstructData&); 51 virtual JSObject* construct(ExecState*, const List&);51 virtual JSObject* construct(ExecState*, const ArgList&); 52 52 53 virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);53 virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&); 54 54 }; 55 55 -
trunk/JavaScriptCore/kjs/string_object.cpp
r34582 r34587 306 306 if (replacementFunction) { 307 307 int completeMatchStart = ovector[0]; 308 List args;308 ArgList args; 309 309 310 310 for (unsigned i = 0; i < reg->numSubpatterns() + 1; i++) { … … 364 364 365 365 if (replacementFunction) { 366 List args;366 ArgList args; 367 367 368 368 args.append(jsString(source.substr(matchPos, matchLen))); … … 376 376 } 377 377 378 JSValue* stringProtoFuncToString(ExecState* exec, JSObject* thisObj, const List&)378 JSValue* stringProtoFuncToString(ExecState* exec, JSObject* thisObj, const ArgList&) 379 379 { 380 380 if (!thisObj->inherits(&StringObject::info)) … … 384 384 } 385 385 386 JSValue* stringProtoFuncValueOf(ExecState* exec, JSObject* thisObj, const List&)386 JSValue* stringProtoFuncValueOf(ExecState* exec, JSObject* thisObj, const ArgList&) 387 387 { 388 388 if (!thisObj->inherits(&StringObject::info)) … … 392 392 } 393 393 394 JSValue* stringProtoFuncCharAt(ExecState* exec, JSObject* thisObj, const List& args)394 JSValue* stringProtoFuncCharAt(ExecState* exec, JSObject* thisObj, const ArgList& args) 395 395 { 396 396 // This optimizes the common case that thisObj is a StringObject … … 408 408 } 409 409 410 JSValue* stringProtoFuncCharCodeAt(ExecState* exec, JSObject* thisObj, const List& args)410 JSValue* stringProtoFuncCharCodeAt(ExecState* exec, JSObject* thisObj, const ArgList& args) 411 411 { 412 412 // This optimizes the common case that thisObj is a StringObject … … 425 425 } 426 426 427 JSValue* stringProtoFuncConcat(ExecState* exec, JSObject* thisObj, const List& args)428 { 429 // This optimizes the common case that thisObj is a StringObject 430 UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec); 431 432 List::const_iterator end = args.end();433 for ( List::const_iterator it = args.begin(); it != end; ++it) {427 JSValue* stringProtoFuncConcat(ExecState* exec, JSObject* thisObj, const ArgList& args) 428 { 429 // This optimizes the common case that thisObj is a StringObject 430 UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec); 431 432 ArgList::const_iterator end = args.end(); 433 for (ArgList::const_iterator it = args.begin(); it != end; ++it) { 434 434 s += (*it)->toString(exec); 435 435 } … … 437 437 } 438 438 439 JSValue* stringProtoFuncIndexOf(ExecState* exec, JSObject* thisObj, const List& args)439 JSValue* stringProtoFuncIndexOf(ExecState* exec, JSObject* thisObj, const ArgList& args) 440 440 { 441 441 // This optimizes the common case that thisObj is a StringObject … … 454 454 } 455 455 456 JSValue* stringProtoFuncLastIndexOf(ExecState* exec, JSObject* thisObj, const List& args)456 JSValue* stringProtoFuncLastIndexOf(ExecState* exec, JSObject* thisObj, const ArgList& args) 457 457 { 458 458 // This optimizes the common case that thisObj is a StringObject … … 472 472 } 473 473 474 JSValue* stringProtoFuncMatch(ExecState* exec, JSObject* thisObj, const List& args)474 JSValue* stringProtoFuncMatch(ExecState* exec, JSObject* thisObj, const ArgList& args) 475 475 { 476 476 // This optimizes the common case that thisObj is a StringObject … … 505 505 } else { 506 506 // return array of matches 507 List list;507 ArgList list; 508 508 int lastIndex = 0; 509 509 while (pos >= 0) { … … 527 527 } 528 528 529 JSValue* stringProtoFuncSearch(ExecState* exec, JSObject* thisObj, const List& args)529 JSValue* stringProtoFuncSearch(ExecState* exec, JSObject* thisObj, const ArgList& args) 530 530 { 531 531 // This optimizes the common case that thisObj is a StringObject … … 553 553 } 554 554 555 JSValue* stringProtoFuncReplace(ExecState* exec, JSObject* thisObj, const List& args)555 JSValue* stringProtoFuncReplace(ExecState* exec, JSObject* thisObj, const ArgList& args) 556 556 { 557 557 // This optimizes the common case that thisObj is a StringObject … … 568 568 } 569 569 570 JSValue* stringProtoFuncSlice(ExecState* exec, JSObject* thisObj, const List& args)570 JSValue* stringProtoFuncSlice(ExecState* exec, JSObject* thisObj, const ArgList& args) 571 571 { 572 572 // This optimizes the common case that thisObj is a StringObject … … 593 593 } 594 594 595 JSValue* stringProtoFuncSplit(ExecState* exec, JSObject* thisObj, const List& args)595 JSValue* stringProtoFuncSplit(ExecState* exec, JSObject* thisObj, const ArgList& args) 596 596 { 597 597 // This optimizes the common case that thisObj is a StringObject … … 663 663 } 664 664 665 JSValue* stringProtoFuncSubstr(ExecState* exec, JSObject* thisObj, const List& args)665 JSValue* stringProtoFuncSubstr(ExecState* exec, JSObject* thisObj, const ArgList& args) 666 666 { 667 667 // This optimizes the common case that thisObj is a StringObject … … 688 688 } 689 689 690 JSValue* stringProtoFuncSubstring(ExecState* exec, JSObject* thisObj, const List& args)690 JSValue* stringProtoFuncSubstring(ExecState* exec, JSObject* thisObj, const ArgList& args) 691 691 { 692 692 // This optimizes the common case that thisObj is a StringObject … … 721 721 } 722 722 723 JSValue* stringProtoFuncToLowerCase(ExecState* exec, JSObject* thisObj, const List&)723 JSValue* stringProtoFuncToLowerCase(ExecState* exec, JSObject* thisObj, const ArgList&) 724 724 { 725 725 // This optimizes the common case that thisObj is a StringObject … … 746 746 } 747 747 748 JSValue* stringProtoFuncToUpperCase(ExecState* exec, JSObject* thisObj, const List&)748 JSValue* stringProtoFuncToUpperCase(ExecState* exec, JSObject* thisObj, const ArgList&) 749 749 { 750 750 // This optimizes the common case that thisObj is a StringObject … … 771 771 } 772 772 773 JSValue* stringProtoFuncToLocaleLowerCase(ExecState* exec, JSObject* thisObj, const List&)773 JSValue* stringProtoFuncToLocaleLowerCase(ExecState* exec, JSObject* thisObj, const ArgList&) 774 774 { 775 775 // This optimizes the common case that thisObj is a StringObject … … 797 797 } 798 798 799 JSValue* stringProtoFuncToLocaleUpperCase(ExecState* exec, JSObject* thisObj, const List&)799 JSValue* stringProtoFuncToLocaleUpperCase(ExecState* exec, JSObject* thisObj, const ArgList&) 800 800 { 801 801 // This optimizes the common case that thisObj is a StringObject … … 822 822 } 823 823 824 JSValue* stringProtoFuncLocaleCompare(ExecState* exec, JSObject* thisObj, const List& args)824 JSValue* stringProtoFuncLocaleCompare(ExecState* exec, JSObject* thisObj, const ArgList& args) 825 825 { 826 826 if (args.size() < 1) … … 833 833 } 834 834 835 JSValue* stringProtoFuncBig(ExecState* exec, JSObject* thisObj, const List&)835 JSValue* stringProtoFuncBig(ExecState* exec, JSObject* thisObj, const ArgList&) 836 836 { 837 837 // This optimizes the common case that thisObj is a StringObject … … 840 840 } 841 841 842 JSValue* stringProtoFuncSmall(ExecState* exec, JSObject* thisObj, const List&)842 JSValue* stringProtoFuncSmall(ExecState* exec, JSObject* thisObj, const ArgList&) 843 843 { 844 844 // This optimizes the common case that thisObj is a StringObject … … 847 847 } 848 848 849 JSValue* stringProtoFuncBlink(ExecState* exec, JSObject* thisObj, const List&)849 JSValue* stringProtoFuncBlink(ExecState* exec, JSObject* thisObj, const ArgList&) 850 850 { 851 851 // This optimizes the common case that thisObj is a StringObject … … 854 854 } 855 855 856 JSValue* stringProtoFuncBold(ExecState* exec, JSObject* thisObj, const List&)856 JSValue* stringProtoFuncBold(ExecState* exec, JSObject* thisObj, const ArgList&) 857 857 { 858 858 // This optimizes the common case that thisObj is a StringObject … … 861 861 } 862 862 863 JSValue* stringProtoFuncFixed(ExecState* exec, JSObject* thisObj, const List&)863 JSValue* stringProtoFuncFixed(ExecState* exec, JSObject* thisObj, const ArgList&) 864 864 { 865 865 // This optimizes the common case that thisObj is a StringObject … … 868 868 } 869 869 870 JSValue* stringProtoFuncItalics(ExecState* exec, JSObject* thisObj, const List&)870 JSValue* stringProtoFuncItalics(ExecState* exec, JSObject* thisObj, const ArgList&) 871 871 { 872 872 // This optimizes the common case that thisObj is a StringObject … … 875 875 } 876 876 877 JSValue* stringProtoFuncStrike(ExecState* exec, JSObject* thisObj, const List&)877 JSValue* stringProtoFuncStrike(ExecState* exec, JSObject* thisObj, const ArgList&) 878 878 { 879 879 // This optimizes the common case that thisObj is a StringObject … … 882 882 } 883 883 884 JSValue* stringProtoFuncSub(ExecState* exec, JSObject* thisObj, const List&)884 JSValue* stringProtoFuncSub(ExecState* exec, JSObject* thisObj, const ArgList&) 885 885 { 886 886 // This optimizes the common case that thisObj is a StringObject … … 889 889 } 890 890 891 JSValue* stringProtoFuncSup(ExecState* exec, JSObject* thisObj, const List&)891 JSValue* stringProtoFuncSup(ExecState* exec, JSObject* thisObj, const ArgList&) 892 892 { 893 893 // This optimizes the common case that thisObj is a StringObject … … 896 896 } 897 897 898 JSValue* stringProtoFuncFontcolor(ExecState* exec, JSObject* thisObj, const List& args)898 JSValue* stringProtoFuncFontcolor(ExecState* exec, JSObject* thisObj, const ArgList& args) 899 899 { 900 900 // This optimizes the common case that thisObj is a StringObject … … 904 904 } 905 905 906 JSValue* stringProtoFuncFontsize(ExecState* exec, JSObject* thisObj, const List& args)906 JSValue* stringProtoFuncFontsize(ExecState* exec, JSObject* thisObj, const ArgList& args) 907 907 { 908 908 // This optimizes the common case that thisObj is a StringObject … … 912 912 } 913 913 914 JSValue* stringProtoFuncAnchor(ExecState* exec, JSObject* thisObj, const List& args)914 JSValue* stringProtoFuncAnchor(ExecState* exec, JSObject* thisObj, const ArgList& args) 915 915 { 916 916 // This optimizes the common case that thisObj is a StringObject … … 920 920 } 921 921 922 JSValue* stringProtoFuncLink(ExecState* exec, JSObject* thisObj, const List& args)922 JSValue* stringProtoFuncLink(ExecState* exec, JSObject* thisObj, const ArgList& args) 923 923 { 924 924 // This optimizes the common case that thisObj is a StringObject … … 949 949 950 950 // ECMA 15.5.2 951 JSObject *StringConstructor::construct(ExecState *exec, const List &args)951 JSObject *StringConstructor::construct(ExecState *exec, const ArgList &args) 952 952 { 953 953 JSObject *proto = exec->lexicalGlobalObject()->stringPrototype(); … … 958 958 959 959 // ECMA 15.5.1 960 JSValue *StringConstructor::callAsFunction(ExecState *exec, JSObject* /*thisObj*/, const List &args)960 JSValue *StringConstructor::callAsFunction(ExecState *exec, JSObject* /*thisObj*/, const ArgList &args) 961 961 { 962 962 if (args.isEmpty()) … … 977 977 } 978 978 979 JSValue *StringConstructorFunction::callAsFunction(ExecState *exec, JSObject* /*thisObj*/, const List &args)979 JSValue *StringConstructorFunction::callAsFunction(ExecState *exec, JSObject* /*thisObj*/, const ArgList &args) 980 980 { 981 981 UString s; … … 983 983 UChar *buf = static_cast<UChar *>(fastMalloc(args.size() * sizeof(UChar))); 984 984 UChar *p = buf; 985 List::const_iterator end = args.end();986 for ( List::const_iterator it = args.begin(); it != end; ++it) {985 ArgList::const_iterator end = args.end(); 986 for (ArgList::const_iterator it = args.begin(); it != end; ++it) { 987 987 unsigned short u = static_cast<unsigned short>((*it)->toUInt32(exec)); 988 988 *p++ = UChar(u); -
trunk/JavaScriptCore/kjs/string_object.h
r34582 r34587 84 84 */ 85 85 86 JSValue* stringProtoFuncToString(ExecState*, JSObject*, const List&);87 JSValue* stringProtoFuncValueOf(ExecState*, JSObject*, const List&);88 JSValue* stringProtoFuncCharAt(ExecState*, JSObject*, const List&);89 JSValue* stringProtoFuncCharCodeAt(ExecState*, JSObject*, const List&);90 JSValue* stringProtoFuncConcat(ExecState*, JSObject*, const List&);91 JSValue* stringProtoFuncIndexOf(ExecState*, JSObject*, const List&);92 JSValue* stringProtoFuncLastIndexOf(ExecState*, JSObject*, const List&);93 JSValue* stringProtoFuncMatch(ExecState*, JSObject*, const List&);94 JSValue* stringProtoFuncReplace(ExecState*, JSObject*, const List&);95 JSValue* stringProtoFuncSearch(ExecState*, JSObject*, const List&);96 JSValue* stringProtoFuncSlice(ExecState*, JSObject*, const List&);97 JSValue* stringProtoFuncSplit(ExecState*, JSObject*, const List&);98 JSValue* stringProtoFuncSubstr(ExecState*, JSObject*, const List&);99 JSValue* stringProtoFuncSubstring(ExecState*, JSObject*, const List&);100 JSValue* stringProtoFuncToLowerCase(ExecState*, JSObject*, const List&);101 JSValue* stringProtoFuncToUpperCase(ExecState*, JSObject*, const List&);102 JSValue* stringProtoFuncToLocaleLowerCase(ExecState*, JSObject*, const List&);103 JSValue* stringProtoFuncToLocaleUpperCase(ExecState*, JSObject*, const List&);104 JSValue* stringProtoFuncLocaleCompare(ExecState*, JSObject*, const List&);86 JSValue* stringProtoFuncToString(ExecState*, JSObject*, const ArgList&); 87 JSValue* stringProtoFuncValueOf(ExecState*, JSObject*, const ArgList&); 88 JSValue* stringProtoFuncCharAt(ExecState*, JSObject*, const ArgList&); 89 JSValue* stringProtoFuncCharCodeAt(ExecState*, JSObject*, const ArgList&); 90 JSValue* stringProtoFuncConcat(ExecState*, JSObject*, const ArgList&); 91 JSValue* stringProtoFuncIndexOf(ExecState*, JSObject*, const ArgList&); 92 JSValue* stringProtoFuncLastIndexOf(ExecState*, JSObject*, const ArgList&); 93 JSValue* stringProtoFuncMatch(ExecState*, JSObject*, const ArgList&); 94 JSValue* stringProtoFuncReplace(ExecState*, JSObject*, const ArgList&); 95 JSValue* stringProtoFuncSearch(ExecState*, JSObject*, const ArgList&); 96 JSValue* stringProtoFuncSlice(ExecState*, JSObject*, const ArgList&); 97 JSValue* stringProtoFuncSplit(ExecState*, JSObject*, const ArgList&); 98 JSValue* stringProtoFuncSubstr(ExecState*, JSObject*, const ArgList&); 99 JSValue* stringProtoFuncSubstring(ExecState*, JSObject*, const ArgList&); 100 JSValue* stringProtoFuncToLowerCase(ExecState*, JSObject*, const ArgList&); 101 JSValue* stringProtoFuncToUpperCase(ExecState*, JSObject*, const ArgList&); 102 JSValue* stringProtoFuncToLocaleLowerCase(ExecState*, JSObject*, const ArgList&); 103 JSValue* stringProtoFuncToLocaleUpperCase(ExecState*, JSObject*, const ArgList&); 104 JSValue* stringProtoFuncLocaleCompare(ExecState*, JSObject*, const ArgList&); 105 105 106 JSValue* stringProtoFuncBig(ExecState*, JSObject*, const List&);107 JSValue* stringProtoFuncSmall(ExecState*, JSObject*, const List&);108 JSValue* stringProtoFuncBlink(ExecState*, JSObject*, const List&);109 JSValue* stringProtoFuncBold(ExecState*, JSObject*, const List&);110 JSValue* stringProtoFuncFixed(ExecState*, JSObject*, const List&);111 JSValue* stringProtoFuncItalics(ExecState*, JSObject*, const List&);112 JSValue* stringProtoFuncStrike(ExecState*, JSObject*, const List&);113 JSValue* stringProtoFuncSub(ExecState*, JSObject*, const List&);114 JSValue* stringProtoFuncSup(ExecState*, JSObject*, const List&);115 JSValue* stringProtoFuncFontcolor(ExecState*, JSObject*, const List&);116 JSValue* stringProtoFuncFontsize(ExecState*, JSObject*, const List&);117 JSValue* stringProtoFuncAnchor(ExecState*, JSObject*, const List&);118 JSValue* stringProtoFuncLink(ExecState*, JSObject*, const List&);106 JSValue* stringProtoFuncBig(ExecState*, JSObject*, const ArgList&); 107 JSValue* stringProtoFuncSmall(ExecState*, JSObject*, const ArgList&); 108 JSValue* stringProtoFuncBlink(ExecState*, JSObject*, const ArgList&); 109 JSValue* stringProtoFuncBold(ExecState*, JSObject*, const ArgList&); 110 JSValue* stringProtoFuncFixed(ExecState*, JSObject*, const ArgList&); 111 JSValue* stringProtoFuncItalics(ExecState*, JSObject*, const ArgList&); 112 JSValue* stringProtoFuncStrike(ExecState*, JSObject*, const ArgList&); 113 JSValue* stringProtoFuncSub(ExecState*, JSObject*, const ArgList&); 114 JSValue* stringProtoFuncSup(ExecState*, JSObject*, const ArgList&); 115 JSValue* stringProtoFuncFontcolor(ExecState*, JSObject*, const ArgList&); 116 JSValue* stringProtoFuncFontsize(ExecState*, JSObject*, const ArgList&); 117 JSValue* stringProtoFuncAnchor(ExecState*, JSObject*, const ArgList&); 118 JSValue* stringProtoFuncLink(ExecState*, JSObject*, const ArgList&); 119 119 120 120 /** … … 128 128 129 129 virtual ConstructType getConstructData(ConstructData&); 130 virtual JSObject* construct(ExecState*, const List&);130 virtual JSObject* construct(ExecState*, const ArgList&); 131 131 132 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const List& args);132 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const ArgList& args); 133 133 }; 134 134 … … 142 142 public: 143 143 StringConstructorFunction(ExecState*, FunctionPrototype*, const Identifier&); 144 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const List& args);144 virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const ArgList& args); 145 145 }; 146 146
Note:
See TracChangeset
for help on using the changeset viewer.