JavaScriptCore:
2008-06-15 Darin Adler <darin@apple.com>
- rename KJS::List to KJS::ArgList
* API/JSCallbackConstructor.cpp:
(KJS::JSCallbackConstructor::construct):
* API/JSCallbackConstructor.h:
* API/JSCallbackFunction.cpp:
(KJS::JSCallbackFunction::callAsFunction):
* API/JSCallbackFunction.h:
* API/JSCallbackObject.h:
* API/JSCallbackObjectFunctions.h:
(KJS::::construct):
(KJS::::callAsFunction):
* API/JSObjectRef.cpp:
(JSObjectMakeFunction):
(JSObjectCallAsFunction):
(JSObjectCallAsConstructor):
* JavaScriptCore.exp:
* VM/Machine.cpp:
(KJS::Machine::execute):
(KJS::Machine::privateExecute):
* VM/Machine.h:
* kjs/ArrayPrototype.cpp:
(KJS::arrayProtoFuncToString):
(KJS::arrayProtoFuncToLocaleString):
(KJS::arrayProtoFuncJoin):
(KJS::arrayProtoFuncConcat):
(KJS::arrayProtoFuncPop):
(KJS::arrayProtoFuncPush):
(KJS::arrayProtoFuncReverse):
(KJS::arrayProtoFuncShift):
(KJS::arrayProtoFuncSlice):
(KJS::arrayProtoFuncSort):
(KJS::arrayProtoFuncSplice):
(KJS::arrayProtoFuncUnShift):
(KJS::arrayProtoFuncFilter):
(KJS::arrayProtoFuncMap):
(KJS::arrayProtoFuncEvery):
(KJS::arrayProtoFuncForEach):
(KJS::arrayProtoFuncSome):
(KJS::arrayProtoFuncIndexOf):
(KJS::arrayProtoFuncLastIndexOf):
(KJS::ArrayConstructor::construct):
(KJS::ArrayConstructor::callAsFunction):
* kjs/ArrayPrototype.h:
* kjs/BooleanObject.cpp:
(KJS::booleanProtoFuncToString):
(KJS::booleanProtoFuncValueOf):
(KJS::BooleanConstructor::construct):
(KJS::BooleanConstructor::callAsFunction):
* kjs/BooleanObject.h:
* kjs/CommonIdentifiers.h:
* kjs/ExecState.h:
(KJS::ExecState::emptyList):
* kjs/FunctionPrototype.cpp:
(KJS::FunctionPrototype::callAsFunction):
(KJS::functionProtoFuncToString):
(KJS::functionProtoFuncApply):
(KJS::functionProtoFuncCall):
(KJS::FunctionConstructor::construct):
(KJS::FunctionConstructor::callAsFunction):
* kjs/FunctionPrototype.h:
* kjs/JSActivation.cpp:
(KJS::JSActivation::createArgumentsObject):
* kjs/JSArray.cpp:
(KJS::JSArray::JSArray):
(KJS::AVLTreeAbstractorForArrayCompare::compare_key_key):
* kjs/JSArray.h:
* kjs/JSFunction.cpp:
(KJS::JSFunction::callAsFunction):
(KJS::JSFunction::construct):
(KJS::IndexToNameMap::IndexToNameMap):
(KJS::Arguments::Arguments):
(KJS::encode):
(KJS::decode):
(KJS::globalFuncEval):
(KJS::globalFuncParseInt):
(KJS::globalFuncParseFloat):
(KJS::globalFuncIsNaN):
(KJS::globalFuncIsFinite):
(KJS::globalFuncDecodeURI):
(KJS::globalFuncDecodeURIComponent):
(KJS::globalFuncEncodeURI):
(KJS::globalFuncEncodeURIComponent):
(KJS::globalFuncEscape):
(KJS::globalFuncUnescape):
(KJS::globalFuncKJSPrint):
(KJS::PrototypeFunction::callAsFunction):
(KJS::PrototypeReflexiveFunction::callAsFunction):
* kjs/JSFunction.h:
* kjs/JSGlobalData.h:
* kjs/JSImmediate.cpp:
(KJS::JSImmediate::toObject):
* kjs/JSNotAnObject.cpp:
(KJS::JSNotAnObject::construct):
(KJS::JSNotAnObject::callAsFunction):
* kjs/JSNotAnObject.h:
* kjs/JSObject.cpp:
(KJS::JSObject::put):
(KJS::JSObject::construct):
(KJS::JSObject::callAsFunction):
(KJS::Error::create):
* kjs/JSObject.h:
* kjs/MathObject.cpp:
(KJS::mathProtoFuncAbs):
(KJS::mathProtoFuncACos):
(KJS::mathProtoFuncASin):
(KJS::mathProtoFuncATan):
(KJS::mathProtoFuncATan2):
(KJS::mathProtoFuncCeil):
(KJS::mathProtoFuncCos):
(KJS::mathProtoFuncExp):
(KJS::mathProtoFuncFloor):
(KJS::mathProtoFuncLog):
(KJS::mathProtoFuncMax):
(KJS::mathProtoFuncMin):
(KJS::mathProtoFuncPow):
(KJS::mathProtoFuncRandom):
(KJS::mathProtoFuncRound):
(KJS::mathProtoFuncSin):
(KJS::mathProtoFuncSqrt):
(KJS::mathProtoFuncTan):
* kjs/MathObject.h:
* kjs/NumberObject.cpp:
(KJS::numberProtoFuncToString):
(KJS::numberProtoFuncToLocaleString):
(KJS::numberProtoFuncValueOf):
(KJS::numberProtoFuncToFixed):
(KJS::numberProtoFuncToExponential):
(KJS::numberProtoFuncToPrecision):
(KJS::NumberConstructor::construct):
(KJS::NumberConstructor::callAsFunction):
* kjs/NumberObject.h:
* kjs/RegExpObject.cpp:
(KJS::regExpProtoFuncTest):
(KJS::regExpProtoFuncExec):
(KJS::regExpProtoFuncCompile):
(KJS::regExpProtoFuncToString):
(KJS::RegExpObject::match):
(KJS::RegExpObject::test):
(KJS::RegExpObject::exec):
(KJS::RegExpObject::callAsFunction):
(KJS::RegExpConstructor::construct):
(KJS::RegExpConstructor::callAsFunction):
* kjs/RegExpObject.h:
* kjs/Shell.cpp:
(functionPrint):
(functionDebug):
(functionGC):
(functionVersion):
(functionRun):
(functionLoad):
(functionReadline):
(functionQuit):
* kjs/collector.cpp:
(KJS::Collector::collect):
* kjs/collector.h:
(KJS::Collector::markListSet):
* kjs/date_object.cpp:
(KJS::formatLocaleDate):
(KJS::fillStructuresUsingTimeArgs):
(KJS::fillStructuresUsingDateArgs):
(KJS::DateConstructor::construct):
(KJS::DateConstructor::callAsFunction):
(KJS::DateFunction::callAsFunction):
(KJS::dateProtoFuncToString):
(KJS::dateProtoFuncToUTCString):
(KJS::dateProtoFuncToDateString):
(KJS::dateProtoFuncToTimeString):
(KJS::dateProtoFuncToLocaleString):
(KJS::dateProtoFuncToLocaleDateString):
(KJS::dateProtoFuncToLocaleTimeString):
(KJS::dateProtoFuncValueOf):
(KJS::dateProtoFuncGetTime):
(KJS::dateProtoFuncGetFullYear):
(KJS::dateProtoFuncGetUTCFullYear):
(KJS::dateProtoFuncToGMTString):
(KJS::dateProtoFuncGetMonth):
(KJS::dateProtoFuncGetUTCMonth):
(KJS::dateProtoFuncGetDate):
(KJS::dateProtoFuncGetUTCDate):
(KJS::dateProtoFuncGetDay):
(KJS::dateProtoFuncGetUTCDay):
(KJS::dateProtoFuncGetHours):
(KJS::dateProtoFuncGetUTCHours):
(KJS::dateProtoFuncGetMinutes):
(KJS::dateProtoFuncGetUTCMinutes):
(KJS::dateProtoFuncGetSeconds):
(KJS::dateProtoFuncGetUTCSeconds):
(KJS::dateProtoFuncGetMilliSeconds):
(KJS::dateProtoFuncGetUTCMilliseconds):
(KJS::dateProtoFuncGetTimezoneOffset):
(KJS::dateProtoFuncSetTime):
(KJS::setNewValueFromTimeArgs):
(KJS::setNewValueFromDateArgs):
(KJS::dateProtoFuncSetMilliSeconds):
(KJS::dateProtoFuncSetUTCMilliseconds):
(KJS::dateProtoFuncSetSeconds):
(KJS::dateProtoFuncSetUTCSeconds):
(KJS::dateProtoFuncSetMinutes):
(KJS::dateProtoFuncSetUTCMinutes):
(KJS::dateProtoFuncSetHours):
(KJS::dateProtoFuncSetUTCHours):
(KJS::dateProtoFuncSetDate):
(KJS::dateProtoFuncSetUTCDate):
(KJS::dateProtoFuncSetMonth):
(KJS::dateProtoFuncSetUTCMonth):
(KJS::dateProtoFuncSetFullYear):
(KJS::dateProtoFuncSetUTCFullYear):
(KJS::dateProtoFuncSetYear):
(KJS::dateProtoFuncGetYear):
* kjs/date_object.h:
* kjs/debugger.h:
* kjs/error_object.cpp:
(KJS::errorProtoFuncToString):
(KJS::ErrorConstructor::construct):
(KJS::ErrorConstructor::callAsFunction):
(KJS::NativeErrorConstructor::construct):
(KJS::NativeErrorConstructor::callAsFunction):
* kjs/error_object.h:
* kjs/internal.cpp:
(KJS::JSNumberCell::toObject):
(KJS::JSNumberCell::toThisObject):
* kjs/list.cpp:
(KJS::ArgList::getSlice):
(KJS::ArgList::markLists):
(KJS::ArgList::slowAppend):
* kjs/list.h:
(KJS::ArgList::ArgList):
(KJS::ArgList::~ArgList):
* kjs/object_object.cpp:
(KJS::objectProtoFuncValueOf):
(KJS::objectProtoFuncHasOwnProperty):
(KJS::objectProtoFuncIsPrototypeOf):
(KJS::objectProtoFuncDefineGetter):
(KJS::objectProtoFuncDefineSetter):
(KJS::objectProtoFuncLookupGetter):
(KJS::objectProtoFuncLookupSetter):
(KJS::objectProtoFuncPropertyIsEnumerable):
(KJS::objectProtoFuncToLocaleString):
(KJS::objectProtoFuncToString):
(KJS::ObjectConstructor::construct):
(KJS::ObjectConstructor::callAsFunction):
* kjs/object_object.h:
* kjs/string_object.cpp:
(KJS::replace):
(KJS::stringProtoFuncToString):
(KJS::stringProtoFuncValueOf):
(KJS::stringProtoFuncCharAt):
(KJS::stringProtoFuncCharCodeAt):
(KJS::stringProtoFuncConcat):
(KJS::stringProtoFuncIndexOf):
(KJS::stringProtoFuncLastIndexOf):
(KJS::stringProtoFuncMatch):
(KJS::stringProtoFuncSearch):
(KJS::stringProtoFuncReplace):
(KJS::stringProtoFuncSlice):
(KJS::stringProtoFuncSplit):
(KJS::stringProtoFuncSubstr):
(KJS::stringProtoFuncSubstring):
(KJS::stringProtoFuncToLowerCase):
(KJS::stringProtoFuncToUpperCase):
(KJS::stringProtoFuncToLocaleLowerCase):
(KJS::stringProtoFuncToLocaleUpperCase):
(KJS::stringProtoFuncLocaleCompare):
(KJS::stringProtoFuncBig):
(KJS::stringProtoFuncSmall):
(KJS::stringProtoFuncBlink):
(KJS::stringProtoFuncBold):
(KJS::stringProtoFuncFixed):
(KJS::stringProtoFuncItalics):
(KJS::stringProtoFuncStrike):
(KJS::stringProtoFuncSub):
(KJS::stringProtoFuncSup):
(KJS::stringProtoFuncFontcolor):
(KJS::stringProtoFuncFontsize):
(KJS::stringProtoFuncAnchor):
(KJS::stringProtoFuncLink):
(KJS::StringConstructor::construct):
(KJS::StringConstructor::callAsFunction):
(KJS::StringConstructorFunction::callAsFunction):
* kjs/string_object.h:
JavaScriptGlue:
2008-06-15 Darin Adler <darin@apple.com>
- rename KJS::List to KJS::ArgList
* JSValueWrapper.cpp:
(JSValueWrapper::JSObjectCallFunction):
* UserObjectImp.cpp:
(UserObjectImp::callAsFunction):
* UserObjectImp.h:
WebCore:
2008-06-15 Darin Adler <darin@apple.com>
- try to fix Qt build
* dom/XMLTokenizer.cpp: Use create instead of new.
- rename KJS::List to KJS::ArgList
* bindings/js/JSAudioConstructor.cpp:
(WebCore::JSAudioConstructor::construct):
* bindings/js/JSAudioConstructor.h:
* bindings/js/JSCanvasRenderingContext2DCustom.cpp:
(WebCore::JSCanvasRenderingContext2D::setFillColor):
(WebCore::JSCanvasRenderingContext2D::setStrokeColor):
(WebCore::JSCanvasRenderingContext2D::strokeRect):
(WebCore::JSCanvasRenderingContext2D::drawImage):
(WebCore::JSCanvasRenderingContext2D::drawImageFromRect):
(WebCore::JSCanvasRenderingContext2D::setShadow):
(WebCore::JSCanvasRenderingContext2D::createPattern):
(WebCore::JSCanvasRenderingContext2D::putImageData):
* bindings/js/JSClipboardCustom.cpp:
(WebCore::JSClipboard::types):
(WebCore::JSClipboard::clearData):
(WebCore::JSClipboard::getData):
(WebCore::JSClipboard::setData):
(WebCore::JSClipboard::setDragImage):
* bindings/js/JSConsoleCustom.cpp:
(WebCore::JSConsole::debug):
(WebCore::JSConsole::error):
(WebCore::JSConsole::info):
(WebCore::JSConsole::log):
(WebCore::JSConsole::warn):
(WebCore::JSConsole::assertCondition):
(WebCore::JSConsole::profile):
(WebCore::JSConsole::profileEnd):
* bindings/js/JSCustomSQLStatementCallback.cpp:
(WebCore::JSCustomSQLStatementCallback::handleEvent):
* bindings/js/JSCustomSQLStatementErrorCallback.cpp:
(WebCore::JSCustomSQLStatementErrorCallback::handleEvent):
* bindings/js/JSCustomSQLTransactionCallback.cpp:
(WebCore::JSCustomSQLTransactionCallback::handleEvent):
* bindings/js/JSCustomSQLTransactionErrorCallback.cpp:
(WebCore::JSCustomSQLTransactionErrorCallback::handleEvent):
* bindings/js/JSCustomVoidCallback.cpp:
(WebCore::JSCustomVoidCallback::handleEvent):
* bindings/js/JSCustomXPathNSResolver.cpp:
(WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
* bindings/js/JSDOMApplicationCacheCustom.cpp:
(WebCore::JSDOMApplicationCache::add):
(WebCore::JSDOMApplicationCache::remove):
(WebCore::JSDOMApplicationCache::addEventListener):
(WebCore::JSDOMApplicationCache::removeEventListener):
(WebCore::JSDOMApplicationCache::dispatchEvent):
* bindings/js/JSDOMWindowBase.cpp:
(WebCore::windowProtoFuncAToB):
(WebCore::windowProtoFuncBToA):
(WebCore::windowProtoFuncOpen):
(WebCore::windowProtoFuncSetTimeout):
(WebCore::windowProtoFuncClearTimeout):
(WebCore::windowProtoFuncSetInterval):
(WebCore::windowProtoFuncAddEventListener):
(WebCore::windowProtoFuncRemoveEventListener):
(WebCore::windowProtoFuncShowModalDialog):
(WebCore::windowProtoFuncNotImplemented):
(WebCore::JSDOMWindowBase::installTimeout):
* bindings/js/JSDOMWindowBase.h:
* bindings/js/JSDOMWindowCustom.cpp:
(WebCore::JSDOMWindow::postMessage):
* bindings/js/JSDatabaseCustom.cpp:
(WebCore::JSDatabase::changeVersion):
(WebCore::JSDatabase::transaction):
* bindings/js/JSElementCustom.cpp:
(WebCore::JSElement::setAttribute):
(WebCore::JSElement::setAttributeNode):
(WebCore::JSElement::setAttributeNS):
(WebCore::JSElement::setAttributeNodeNS):
* bindings/js/JSEventTargetBase.cpp:
(WebCore::jsEventTargetAddEventListener):
(WebCore::jsEventTargetRemoveEventListener):
(WebCore::jsEventTargetDispatchEvent):
* bindings/js/JSEventTargetBase.h:
* bindings/js/JSHTMLAppletElementCustom.cpp:
(WebCore::JSHTMLAppletElement::callAsFunction):
* bindings/js/JSHTMLCollectionCustom.cpp:
(WebCore::JSHTMLCollection::callAsFunction):
(WebCore::JSHTMLCollection::item):
(WebCore::JSHTMLCollection::namedItem):
* bindings/js/JSHTMLDocumentCustom.cpp:
(WebCore::JSHTMLDocument::open):
(WebCore::writeHelper):
(WebCore::JSHTMLDocument::write):
(WebCore::JSHTMLDocument::writeln):
* bindings/js/JSHTMLEmbedElementCustom.cpp:
(WebCore::JSHTMLEmbedElement::callAsFunction):
* bindings/js/JSHTMLInputElementBase.cpp:
(WebCore::jsHTMLInputElementBaseFunctionSetSelectionRange):
* bindings/js/JSHTMLInputElementBase.h:
* bindings/js/JSHTMLObjectElementCustom.cpp:
(WebCore::JSHTMLObjectElement::callAsFunction):
* bindings/js/JSHTMLOptionElementConstructor.cpp:
(WebCore::JSHTMLOptionElementConstructor::construct):
* bindings/js/JSHTMLOptionElementConstructor.h:
* bindings/js/JSHTMLOptionsCollectionCustom.cpp:
(WebCore::JSHTMLOptionsCollection::add):
(WebCore::JSHTMLOptionsCollection::remove):
* bindings/js/JSHTMLSelectElementCustom.cpp:
(WebCore::JSHTMLSelectElement::remove):
* bindings/js/JSImageConstructor.cpp:
(WebCore::JSImageConstructor::construct):
* bindings/js/JSImageConstructor.h:
* bindings/js/JSJavaScriptCallFrameCustom.cpp:
(WebCore::JSJavaScriptCallFrame::evaluate):
(WebCore::JSJavaScriptCallFrame::scopeChain):
* bindings/js/JSLocationCustom.cpp:
(WebCore::JSLocation::replace):
(WebCore::JSLocation::reload):
(WebCore::JSLocation::assign):
(WebCore::JSLocation::toString):
* bindings/js/JSNodeCustom.cpp:
(WebCore::JSNode::insertBefore):
(WebCore::JSNode::replaceChild):
(WebCore::JSNode::removeChild):
(WebCore::JSNode::appendChild):
* bindings/js/JSNodeFilterCondition.cpp:
(WebCore::JSNodeFilterCondition::acceptNode):
* bindings/js/JSNodeFilterCustom.cpp:
(WebCore::JSNodeFilter::acceptNode):
* bindings/js/JSNodeIteratorCustom.cpp:
(WebCore::JSNodeIterator::nextNode):
(WebCore::JSNodeIterator::previousNode):
* bindings/js/JSNodeListCustom.cpp:
(WebCore::JSNodeList::callAsFunction):
* bindings/js/JSQuarantinedObjectWrapper.cpp:
(WebCore::JSQuarantinedObjectWrapper::construct):
(WebCore::JSQuarantinedObjectWrapper::callAsFunction):
* bindings/js/JSQuarantinedObjectWrapper.h:
* bindings/js/JSSQLResultSetRowListCustom.cpp:
(WebCore::JSSQLResultSetRowList::item):
* bindings/js/JSSQLTransactionCustom.cpp:
(WebCore::JSSQLTransaction::executeSql):
* bindings/js/JSSVGMatrixCustom.cpp:
(WebCore::JSSVGMatrix::multiply):
(WebCore::JSSVGMatrix::inverse):
(WebCore::JSSVGMatrix::translate):
(WebCore::JSSVGMatrix::scale):
(WebCore::JSSVGMatrix::scaleNonUniform):
(WebCore::JSSVGMatrix::rotate):
(WebCore::JSSVGMatrix::rotateFromVector):
(WebCore::JSSVGMatrix::flipX):
(WebCore::JSSVGMatrix::flipY):
(WebCore::JSSVGMatrix::skewX):
(WebCore::JSSVGMatrix::skewY):
* bindings/js/JSSVGPathSegListCustom.cpp:
(WebCore::JSSVGPathSegList::clear):
(WebCore::JSSVGPathSegList::initialize):
(WebCore::JSSVGPathSegList::getItem):
(WebCore::JSSVGPathSegList::insertItemBefore):
(WebCore::JSSVGPathSegList::replaceItem):
(WebCore::JSSVGPathSegList::removeItem):
(WebCore::JSSVGPathSegList::appendItem):
* bindings/js/JSSVGPointListCustom.cpp:
(WebCore::JSSVGPointList::clear):
(WebCore::JSSVGPointList::initialize):
(WebCore::JSSVGPointList::getItem):
(WebCore::JSSVGPointList::insertItemBefore):
(WebCore::JSSVGPointList::replaceItem):
(WebCore::JSSVGPointList::removeItem):
(WebCore::JSSVGPointList::appendItem):
* bindings/js/JSSVGTransformListCustom.cpp:
(WebCore::JSSVGTransformList::clear):
(WebCore::JSSVGTransformList::initialize):
(WebCore::JSSVGTransformList::getItem):
(WebCore::JSSVGTransformList::insertItemBefore):
(WebCore::JSSVGTransformList::replaceItem):
(WebCore::JSSVGTransformList::removeItem):
(WebCore::JSSVGTransformList::appendItem):
* bindings/js/JSTreeWalkerCustom.cpp:
(WebCore::JSTreeWalker::parentNode):
(WebCore::JSTreeWalker::firstChild):
(WebCore::JSTreeWalker::lastChild):
(WebCore::JSTreeWalker::nextSibling):
(WebCore::JSTreeWalker::previousSibling):
(WebCore::JSTreeWalker::previousNode):
(WebCore::JSTreeWalker::nextNode):
* bindings/js/JSXMLHttpRequestConstructor.cpp:
(WebCore::JSXMLHttpRequestConstructor::construct):
* bindings/js/JSXMLHttpRequestConstructor.h:
* bindings/js/JSXMLHttpRequestCustom.cpp:
(WebCore::JSXMLHttpRequest::open):
(WebCore::JSXMLHttpRequest::setRequestHeader):
(WebCore::JSXMLHttpRequest::send):
(WebCore::JSXMLHttpRequest::getResponseHeader):
(WebCore::JSXMLHttpRequest::overrideMimeType):
(WebCore::JSXMLHttpRequest::addEventListener):
(WebCore::JSXMLHttpRequest::removeEventListener):
(WebCore::JSXMLHttpRequest::dispatchEvent):
* bindings/js/JSXSLTProcessorConstructor.cpp:
(WebCore::JSXSLTProcessorConstructor::construct):
* bindings/js/JSXSLTProcessorConstructor.h:
* bindings/js/JSXSLTProcessorCustom.cpp:
(WebCore::JSXSLTProcessor::importStylesheet):
(WebCore::JSXSLTProcessor::transformToFragment):
(WebCore::JSXSLTProcessor::transformToDocument):
(WebCore::JSXSLTProcessor::setParameter):
(WebCore::JSXSLTProcessor::getParameter):
(WebCore::JSXSLTProcessor::removeParameter):
* bindings/js/ScheduledAction.cpp:
(WebCore::ScheduledAction::ScheduledAction):
(WebCore::ScheduledAction::execute):
* bindings/js/ScheduledAction.h:
* bindings/js/kjs_events.cpp:
(WebCore::JSAbstractEventListener::handleEvent):
(WebCore::JSLazyEventListener::parseCode):
* bindings/js/kjs_html.cpp:
(WebCore::runtimeObjectCallAsFunction):
* bindings/js/kjs_html.h:
* bindings/objc/WebScriptObject.mm:
(getListFromNSArray):
(-[WebScriptObject callWebScriptMethod:withArguments:]):
* bindings/scripts/CodeGeneratorJS.pm:
* bridge/NP_jsobject.cpp:
(getListFromVariantArgs):
(_NPN_InvokeDefault):
(_NPN_Invoke):
* bridge/c/c_instance.cpp:
(KJS::Bindings::CInstance::invokeMethod):
(KJS::Bindings::CInstance::invokeDefaultMethod):
* bridge/c/c_instance.h:
* bridge/jni/jni_instance.cpp:
(JavaInstance::invokeMethod):
* bridge/jni/jni_instance.h:
* bridge/jni/jni_jsobject.h:
* bridge/jni/jni_jsobject.mm:
(JavaJSObject::call):
(JavaJSObject::getListFromJArray):
* bridge/objc/objc_instance.h:
* bridge/objc/objc_instance.mm:
(ObjcInstance::invokeMethod):
(ObjcInstance::invokeDefaultMethod):
* bridge/objc/objc_runtime.h:
* bridge/objc/objc_runtime.mm:
(ObjcFallbackObjectImp::callAsFunction):
* bridge/qt/qt_instance.cpp:
(KJS::Bindings::QtRuntimeObjectImp::construct):
(KJS::Bindings::QtInstance::invokeMethod):
(KJS::Bindings::QtInstance::invokeDefaultMethod):
* bridge/qt/qt_instance.h:
* bridge/qt/qt_runtime.cpp:
(KJS::Bindings::convertQVariantToValue):
(KJS::Bindings::findMethodIndex):
(KJS::Bindings::QtRuntimeMetaMethod::callAsFunction):
(KJS::Bindings::QtRuntimeConnectionMethod::callAsFunction):
(KJS::Bindings::QtConnectionObject::execute):
* bridge/qt/qt_runtime.h:
* bridge/runtime.h:
(KJS::Bindings::Instance::invokeDefaultMethod):
* bridge/runtime_method.cpp:
(RuntimeMethod::callAsFunction):
* bridge/runtime_method.h:
* bridge/runtime_object.cpp:
(RuntimeObjectImp::callAsFunction):
* bridge/runtime_object.h:
* page/Console.cpp:
(WebCore::printToStandardOut):
(WebCore::Console::debug):
(WebCore::Console::error):
(WebCore::Console::info):
(WebCore::Console::log):
(WebCore::Console::assertCondition):
(WebCore::Console::profile):
(WebCore::Console::profileEnd):
(WebCore::Console::warn):
* page/Console.h:
* page/InspectorController.cpp:
(WebCore::ConsoleMessage::ConsoleMessage):
(WebCore::InspectorController::addMessageToConsole):
* page/InspectorController.h:
WebKit/mac:
2008-06-15 Darin Adler <darin@apple.com>
- rename KJS::List to KJS::ArgList
* WebView/WebScriptDebugger.h:
WebKit/win:
2008-06-15 Darin Adler <darin@apple.com>
- rename KJS::List to KJS::ArgList
* WebScriptCallFrame.cpp:
(WebScriptCallFrame::valueByEvaluatingJavaScriptFromString):
WebKitTools:
2008-06-15 Darin Adler <darin@apple.com>
* Scripts/do-webcore-rename: Updated for the latest round of renaming.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34587 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/JavaScriptCore/kjs/ArrayPrototype.cpp b/JavaScriptCore/kjs/ArrayPrototype.cpp
index 1409fe0..5e7847b 100644
--- a/JavaScriptCore/kjs/ArrayPrototype.cpp
+++ b/JavaScriptCore/kjs/ArrayPrototype.cpp
@@ -88,7 +88,7 @@
return slot.getValue(exec, index);
}
-JSValue* arrayProtoFuncToString(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* arrayProtoFuncToString(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&JSArray::info))
return throwError(exec, TypeError);
@@ -131,7 +131,7 @@
return jsString(UString(strBuffer.data(), strBuffer.data() ? strBuffer.size() : 0));
}
-JSValue* arrayProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* arrayProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&JSArray::info))
return throwError(exec, TypeError);
@@ -180,7 +180,7 @@
return jsString(UString(strBuffer.data(), strBuffer.data() ? strBuffer.size() : 0));
}
-JSValue* arrayProtoFuncJoin(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* arrayProtoFuncJoin(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
HashSet<JSObject*>& arrayVisitedElements = exec->dynamicGlobalObject()->arrayVisitedElements();
if (arrayVisitedElements.size() > MaxReentryDepth)
@@ -223,14 +223,14 @@
return jsString(UString(strBuffer.data(), strBuffer.data() ? strBuffer.size() : 0));
}
-JSValue* arrayProtoFuncConcat(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* arrayProtoFuncConcat(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
JSObject* arr = static_cast<JSObject*>(exec->lexicalGlobalObject()->arrayConstructor()->construct(exec, exec->emptyList()));
int n = 0;
JSValue* curArg = thisObj;
JSObject* curObj = static_cast<JSObject* >(thisObj);
- List::const_iterator it = args.begin();
- List::const_iterator end = args.end();
+ ArgList::const_iterator it = args.begin();
+ ArgList::const_iterator end = args.end();
while (1) {
if (curArg->isObject() && curObj->inherits(&JSArray::info)) {
unsigned k = 0;
@@ -257,7 +257,7 @@
return arr;
}
-JSValue* arrayProtoFuncPop(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* arrayProtoFuncPop(ExecState* exec, JSObject* thisObj, const ArgList&)
{
JSValue* result = 0;
unsigned length = thisObj->get(exec, exec->propertyNames().length)->toUInt32(exec);
@@ -272,7 +272,7 @@
return result;
}
-JSValue* arrayProtoFuncPush(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* arrayProtoFuncPush(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
unsigned length = thisObj->get(exec, exec->propertyNames().length)->toUInt32(exec);
for (unsigned n = 0; n < args.size(); n++)
@@ -282,7 +282,7 @@
return jsNumber(length);
}
-JSValue* arrayProtoFuncReverse(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* arrayProtoFuncReverse(ExecState* exec, JSObject* thisObj, const ArgList&)
{
unsigned length = thisObj->get(exec, exec->propertyNames().length)->toUInt32(exec);
unsigned middle = length / 2;
@@ -305,7 +305,7 @@
return thisObj;
}
-JSValue* arrayProtoFuncShift(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* arrayProtoFuncShift(ExecState* exec, JSObject* thisObj, const ArgList&)
{
JSValue* result = 0;
@@ -327,7 +327,7 @@
return result;
}
-JSValue* arrayProtoFuncSlice(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* arrayProtoFuncSlice(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// http://developer.netscape.com/docs/manuals/js/client/jsref/array.htm#1193713 or 15.4.4.10
@@ -370,7 +370,7 @@
return result;
}
-JSValue* arrayProtoFuncSort(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* arrayProtoFuncSort(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
JSObject* sortFunction = 0;
if (!args[0]->isUndefined()) {
@@ -406,7 +406,7 @@
else if (minObj->isUndefined())
compareResult = -1;
else if (sortFunction) {
- List l;
+ ArgList l;
l.append(jObj);
l.append(minObj);
compareResult = sortFunction->callAsFunction(exec, exec->globalThisValue(), l)->toNumber(exec);
@@ -427,7 +427,7 @@
return thisObj;
}
-JSValue* arrayProtoFuncSplice(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* arrayProtoFuncSplice(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// 15.4.4.12
JSObject* resObj = static_cast<JSObject* >(exec->lexicalGlobalObject()->arrayConstructor()->construct(exec, exec->emptyList()));
@@ -480,7 +480,7 @@
return result;
}
-JSValue* arrayProtoFuncUnShift(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* arrayProtoFuncUnShift(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// 15.4.4.13
unsigned length = thisObj->get(exec, exec->propertyNames().length)->toUInt32(exec);
@@ -500,7 +500,7 @@
return result;
}
-JSValue* arrayProtoFuncFilter(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* arrayProtoFuncFilter(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
JSObject* eachFunction = args[0]->toObject(exec);
@@ -520,7 +520,7 @@
JSValue* v = slot.getValue(exec, k);
- List eachArguments;
+ ArgList eachArguments;
eachArguments.append(v);
eachArguments.append(jsNumber(k));
@@ -534,7 +534,7 @@
return resultArray;
}
-JSValue* arrayProtoFuncMap(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* arrayProtoFuncMap(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
JSObject* eachFunction = args[0]->toObject(exec);
if (!eachFunction->implementsCall())
@@ -544,7 +544,7 @@
unsigned length = thisObj->get(exec, exec->propertyNames().length)->toUInt32(exec);
- List mapArgs;
+ ArgList mapArgs;
mapArgs.append(jsNumber(length));
JSObject* resultArray = static_cast<JSObject*>(exec->lexicalGlobalObject()->arrayConstructor()->construct(exec, mapArgs));
@@ -555,7 +555,7 @@
JSValue* v = slot.getValue(exec, k);
- List eachArguments;
+ ArgList eachArguments;
eachArguments.append(v);
eachArguments.append(jsNumber(k));
@@ -573,7 +573,7 @@
// http://developer-test.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Objects:Array:forEach
// http://developer-test.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Objects:Array:some
-JSValue* arrayProtoFuncEvery(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* arrayProtoFuncEvery(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
JSObject* eachFunction = args[0]->toObject(exec);
@@ -591,7 +591,7 @@
if (!thisObj->getPropertySlot(exec, k, slot))
continue;
- List eachArguments;
+ ArgList eachArguments;
eachArguments.append(slot.getValue(exec, k));
eachArguments.append(jsNumber(k));
@@ -608,7 +608,7 @@
return result;
}
-JSValue* arrayProtoFuncForEach(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* arrayProtoFuncForEach(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
JSObject* eachFunction = args[0]->toObject(exec);
@@ -623,7 +623,7 @@
if (!thisObj->getPropertySlot(exec, k, slot))
continue;
- List eachArguments;
+ ArgList eachArguments;
eachArguments.append(slot.getValue(exec, k));
eachArguments.append(jsNumber(k));
eachArguments.append(thisObj);
@@ -633,7 +633,7 @@
return jsUndefined();
}
-JSValue* arrayProtoFuncSome(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* arrayProtoFuncSome(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
JSObject* eachFunction = args[0]->toObject(exec);
@@ -650,7 +650,7 @@
if (!thisObj->getPropertySlot(exec, k, slot))
continue;
- List eachArguments;
+ ArgList eachArguments;
eachArguments.append(slot.getValue(exec, k));
eachArguments.append(jsNumber(k));
eachArguments.append(thisObj);
@@ -665,7 +665,7 @@
return result;
}
-JSValue* arrayProtoFuncIndexOf(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* arrayProtoFuncIndexOf(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// JavaScript 1.5 Extension by Mozilla
// Documentation: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array:indexOf
@@ -694,7 +694,7 @@
return jsNumber(-1);
}
-JSValue* arrayProtoFuncLastIndexOf(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* arrayProtoFuncLastIndexOf(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// JavaScript 1.6 Extension by Mozilla
// Documentation: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Array:lastIndexOf
@@ -741,7 +741,7 @@
}
// ECMA 15.4.2
-JSObject* ArrayConstructor::construct(ExecState* exec, const List& args)
+JSObject* ArrayConstructor::construct(ExecState* exec, const ArgList& args)
{
// a single numeric argument denotes the array size (!)
if (args.size() == 1 && args[0]->isNumber()) {
@@ -756,7 +756,7 @@
}
// ECMA 15.6.1
-JSValue* ArrayConstructor::callAsFunction(ExecState* exec, JSObject*, const List& args)
+JSValue* ArrayConstructor::callAsFunction(ExecState* exec, JSObject*, const ArgList& args)
{
// equivalent to 'new Array(....)'
return construct(exec,args);
diff --git a/JavaScriptCore/kjs/ArrayPrototype.h b/JavaScriptCore/kjs/ArrayPrototype.h
index d39aaa8..1f1819c 100644
--- a/JavaScriptCore/kjs/ArrayPrototype.h
+++ b/JavaScriptCore/kjs/ArrayPrototype.h
@@ -41,31 +41,31 @@
ArrayConstructor(ExecState*, FunctionPrototype*, ArrayPrototype*);
virtual ConstructType getConstructData(ConstructData&);
- virtual JSObject* construct(ExecState*, const List&);
+ virtual JSObject* construct(ExecState*, const ArgList&);
- virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);
+ virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&);
};
- JSValue* arrayProtoFuncToString(ExecState*, JSObject*, const List&);
- JSValue* arrayProtoFuncToLocaleString(ExecState*, JSObject*, const List&);
- JSValue* arrayProtoFuncConcat(ExecState*, JSObject*, const List&);
- JSValue* arrayProtoFuncJoin(ExecState*, JSObject*, const List&);
- JSValue* arrayProtoFuncPop(ExecState*, JSObject*, const List&);
- JSValue* arrayProtoFuncPush(ExecState*, JSObject*, const List&);
- JSValue* arrayProtoFuncReverse(ExecState*, JSObject*, const List&);
- JSValue* arrayProtoFuncShift(ExecState*, JSObject*, const List&);
- JSValue* arrayProtoFuncSlice(ExecState*, JSObject*, const List&);
- JSValue* arrayProtoFuncSort(ExecState*, JSObject*, const List&);
- JSValue* arrayProtoFuncSplice(ExecState*, JSObject*, const List&);
- JSValue* arrayProtoFuncUnShift(ExecState*, JSObject*, const List&);
- JSValue* arrayProtoFuncEvery(ExecState*, JSObject*, const List&);
- JSValue* arrayProtoFuncForEach(ExecState*, JSObject*, const List&);
- JSValue* arrayProtoFuncSome(ExecState*, JSObject*, const List&);
- JSValue* arrayProtoFuncIndexOf(ExecState*, JSObject*, const List&);
- JSValue* arrayProtoFuncFilter(ExecState*, JSObject*, const List&);
- JSValue* arrayProtoFuncMap(ExecState*, JSObject*, const List&);
- JSValue* arrayProtoFuncLastIndexOf(ExecState*, JSObject*, const List&);
+ JSValue* arrayProtoFuncToString(ExecState*, JSObject*, const ArgList&);
+ JSValue* arrayProtoFuncToLocaleString(ExecState*, JSObject*, const ArgList&);
+ JSValue* arrayProtoFuncConcat(ExecState*, JSObject*, const ArgList&);
+ JSValue* arrayProtoFuncJoin(ExecState*, JSObject*, const ArgList&);
+ JSValue* arrayProtoFuncPop(ExecState*, JSObject*, const ArgList&);
+ JSValue* arrayProtoFuncPush(ExecState*, JSObject*, const ArgList&);
+ JSValue* arrayProtoFuncReverse(ExecState*, JSObject*, const ArgList&);
+ JSValue* arrayProtoFuncShift(ExecState*, JSObject*, const ArgList&);
+ JSValue* arrayProtoFuncSlice(ExecState*, JSObject*, const ArgList&);
+ JSValue* arrayProtoFuncSort(ExecState*, JSObject*, const ArgList&);
+ JSValue* arrayProtoFuncSplice(ExecState*, JSObject*, const ArgList&);
+ JSValue* arrayProtoFuncUnShift(ExecState*, JSObject*, const ArgList&);
+ JSValue* arrayProtoFuncEvery(ExecState*, JSObject*, const ArgList&);
+ JSValue* arrayProtoFuncForEach(ExecState*, JSObject*, const ArgList&);
+ JSValue* arrayProtoFuncSome(ExecState*, JSObject*, const ArgList&);
+ JSValue* arrayProtoFuncIndexOf(ExecState*, JSObject*, const ArgList&);
+ JSValue* arrayProtoFuncFilter(ExecState*, JSObject*, const ArgList&);
+ JSValue* arrayProtoFuncMap(ExecState*, JSObject*, const ArgList&);
+ JSValue* arrayProtoFuncLastIndexOf(ExecState*, JSObject*, const ArgList&);
} // namespace KJS
diff --git a/JavaScriptCore/kjs/BooleanObject.cpp b/JavaScriptCore/kjs/BooleanObject.cpp
index 131e971..7a05cfb 100644
--- a/JavaScriptCore/kjs/BooleanObject.cpp
+++ b/JavaScriptCore/kjs/BooleanObject.cpp
@@ -40,8 +40,8 @@
// ------------------------------ BooleanPrototype --------------------------
// Functions
-static JSValue* booleanProtoFuncToString(ExecState*, JSObject*, const List&);
-static JSValue* booleanProtoFuncValueOf(ExecState*, JSObject*, const List&);
+static JSValue* booleanProtoFuncToString(ExecState*, JSObject*, const ArgList&);
+static JSValue* booleanProtoFuncValueOf(ExecState*, JSObject*, const ArgList&);
// ECMA 15.6.4
@@ -59,7 +59,7 @@
// ECMA 15.6.4.2 + 15.6.4.3
-JSValue* booleanProtoFuncToString(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* booleanProtoFuncToString(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&BooleanObject::info))
return throwError(exec, TypeError);
@@ -69,7 +69,7 @@
return jsString(v->toString(exec));
}
-JSValue* booleanProtoFuncValueOf(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* booleanProtoFuncValueOf(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&BooleanObject::info))
return throwError(exec, TypeError);
@@ -99,7 +99,7 @@
}
// ECMA 15.6.2
-JSObject* BooleanConstructor::construct(ExecState* exec, const List& args)
+JSObject* BooleanConstructor::construct(ExecState* exec, const ArgList& args)
{
BooleanObject* obj(new BooleanObject(exec->lexicalGlobalObject()->booleanPrototype()));
obj->setInternalValue(jsBoolean(args[0]->toBoolean(exec)));
@@ -107,7 +107,7 @@
}
// ECMA 15.6.1
-JSValue* BooleanConstructor::callAsFunction(ExecState* exec, JSObject*, const List& args)
+JSValue* BooleanConstructor::callAsFunction(ExecState* exec, JSObject*, const ArgList& args)
{
// TODO: optimize for bool case
return jsBoolean(args[0]->toBoolean(exec));
diff --git a/JavaScriptCore/kjs/BooleanObject.h b/JavaScriptCore/kjs/BooleanObject.h
index 3365c01..80b6709 100644
--- a/JavaScriptCore/kjs/BooleanObject.h
+++ b/JavaScriptCore/kjs/BooleanObject.h
@@ -55,9 +55,9 @@
BooleanConstructor(ExecState*, FunctionPrototype*, BooleanPrototype*);
virtual ConstructType getConstructData(ConstructData&);
- virtual JSObject* construct(ExecState*, const List&);
+ virtual JSObject* construct(ExecState*, const ArgList&);
- virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);
+ virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&);
};
} // namespace KJS
diff --git a/JavaScriptCore/kjs/CommonIdentifiers.h b/JavaScriptCore/kjs/CommonIdentifiers.h
index e6e9112..4274519 100644
--- a/JavaScriptCore/kjs/CommonIdentifiers.h
+++ b/JavaScriptCore/kjs/CommonIdentifiers.h
@@ -24,7 +24,7 @@
#include "identifier.h"
#include <wtf/Noncopyable.h>
-// List of property names, passed to a macro so we can do set them up various
+// ArgList of property names, passed to a macro so we can do set them up various
// ways without repeating the list.
#define KJS_COMMON_IDENTIFIERS_EACH_PROPERTY_NAME(macro) \
macro(__defineGetter__) \
diff --git a/JavaScriptCore/kjs/ExecState.h b/JavaScriptCore/kjs/ExecState.h
index 8beb61a..4916159 100644
--- a/JavaScriptCore/kjs/ExecState.h
+++ b/JavaScriptCore/kjs/ExecState.h
@@ -81,7 +81,7 @@
IdentifierTable* identifierTable() { return m_globalData->identifierTable; }
const CommonIdentifiers& propertyNames() const { return *m_globalData->propertyNames; }
- const List& emptyList() const { return m_globalData->emptyList; }
+ const ArgList& emptyList() const { return m_globalData->emptyList; }
Lexer* lexer() { return m_globalData->lexer; }
Parser* parser() { return m_globalData->parser; }
static const HashTable* arrayTable(ExecState* exec) { return exec->m_globalData->arrayTable; }
diff --git a/JavaScriptCore/kjs/FunctionPrototype.cpp b/JavaScriptCore/kjs/FunctionPrototype.cpp
index fa30cd4..6e055f19f 100644
--- a/JavaScriptCore/kjs/FunctionPrototype.cpp
+++ b/JavaScriptCore/kjs/FunctionPrototype.cpp
@@ -38,9 +38,9 @@
// ------------------------------ FunctionPrototype -------------------------
-static JSValue* functionProtoFuncToString(ExecState*, JSObject*, const List&);
-static JSValue* functionProtoFuncApply(ExecState*, JSObject*, const List&);
-static JSValue* functionProtoFuncCall(ExecState*, JSObject*, const List&);
+static JSValue* functionProtoFuncToString(ExecState*, JSObject*, const ArgList&);
+static JSValue* functionProtoFuncApply(ExecState*, JSObject*, const ArgList&);
+static JSValue* functionProtoFuncCall(ExecState*, JSObject*, const ArgList&);
FunctionPrototype::FunctionPrototype(ExecState* exec)
{
@@ -52,14 +52,14 @@
}
// ECMA 15.3.4
-JSValue* FunctionPrototype::callAsFunction(ExecState*, JSObject*, const List&)
+JSValue* FunctionPrototype::callAsFunction(ExecState*, JSObject*, const ArgList&)
{
return jsUndefined();
}
// Functions
-JSValue* functionProtoFuncToString(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* functionProtoFuncToString(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj || !thisObj->inherits(&InternalFunction::info)) {
#ifndef NDEBUG
@@ -76,7 +76,7 @@
return jsString("function " + static_cast<InternalFunction*>(thisObj)->functionName().ustring() + "() {\n [native code]\n}");
}
-JSValue* functionProtoFuncApply(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* functionProtoFuncApply(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
if (!thisObj->implementsCall())
return throwError(exec, TypeError);
@@ -90,7 +90,7 @@
else
applyThis = thisArg->toObject(exec);
- List applyArgs;
+ ArgList applyArgs;
if (!argArray->isUndefinedOrNull()) {
if (argArray->isObject() &&
(static_cast<JSObject*>(argArray)->inherits(&JSArray::info) ||
@@ -107,7 +107,7 @@
return thisObj->callAsFunction(exec, applyThis, applyArgs);
}
-JSValue* functionProtoFuncCall(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* functionProtoFuncCall(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
if (!thisObj->implementsCall())
return throwError(exec, TypeError);
@@ -120,7 +120,7 @@
else
callThis = thisArg->toObject(exec);
- List argsTail;
+ ArgList argsTail;
args.getSlice(1, argsTail);
return thisObj->callAsFunction(exec, callThis, argsTail);
}
@@ -142,7 +142,7 @@
}
// ECMA 15.3.2 The Function Constructor
-JSObject* FunctionConstructor::construct(ExecState* exec, const List& args, const Identifier& functionName, const UString& sourceURL, int lineNumber)
+JSObject* FunctionConstructor::construct(ExecState* exec, const ArgList& args, const Identifier& functionName, const UString& sourceURL, int lineNumber)
{
UString p("");
UString body;
@@ -215,13 +215,13 @@
}
// ECMA 15.3.2 The Function Constructor
-JSObject* FunctionConstructor::construct(ExecState* exec, const List& args)
+JSObject* FunctionConstructor::construct(ExecState* exec, const ArgList& args)
{
return construct(exec, args, "anonymous", UString(), 1);
}
// ECMA 15.3.1 The Function Constructor Called as a Function
-JSValue* FunctionConstructor::callAsFunction(ExecState* exec, JSObject*, const List& args)
+JSValue* FunctionConstructor::callAsFunction(ExecState* exec, JSObject*, const ArgList& args)
{
return construct(exec, args);
}
diff --git a/JavaScriptCore/kjs/FunctionPrototype.h b/JavaScriptCore/kjs/FunctionPrototype.h
index 03fd954..d66e06d 100644
--- a/JavaScriptCore/kjs/FunctionPrototype.h
+++ b/JavaScriptCore/kjs/FunctionPrototype.h
@@ -38,7 +38,7 @@
public:
FunctionPrototype(ExecState*);
- virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);
+ virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&);
};
/**
@@ -51,10 +51,10 @@
FunctionConstructor(ExecState*, FunctionPrototype*);
virtual ConstructType getConstructData(ConstructData&);
- virtual JSObject* construct(ExecState*, const List&);
- virtual JSObject* construct(ExecState*, const List&, const Identifier& functionName, const UString& sourceURL, int lineNumber);
+ virtual JSObject* construct(ExecState*, const ArgList&);
+ virtual JSObject* construct(ExecState*, const ArgList&, const Identifier& functionName, const UString& sourceURL, int lineNumber);
- virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);
+ virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&);
};
} // namespace KJS
diff --git a/JavaScriptCore/kjs/JSActivation.cpp b/JavaScriptCore/kjs/JSActivation.cpp
index 9243dcd..325266c 100644
--- a/JavaScriptCore/kjs/JSActivation.cpp
+++ b/JavaScriptCore/kjs/JSActivation.cpp
@@ -185,7 +185,7 @@
Register* argv;
int argc;
exec->machine()->getFunctionAndArguments(registerBase(), callFrame, function, argv, argc);
- List args(reinterpret_cast<JSValue***>(registerBase()), argv - *registerBase(), argc);
+ ArgList args(reinterpret_cast<JSValue***>(registerBase()), argv - *registerBase(), argc);
return new Arguments(exec, function, args, this);
}
diff --git a/JavaScriptCore/kjs/JSArray.cpp b/JavaScriptCore/kjs/JSArray.cpp
index 430969e..1a15e1c 100644
--- a/JavaScriptCore/kjs/JSArray.cpp
+++ b/JavaScriptCore/kjs/JSArray.cpp
@@ -93,7 +93,7 @@
checkConsistency();
}
-JSArray::JSArray(JSObject* prototype, const List& list)
+JSArray::JSArray(JSObject* prototype, const ArgList& list)
: JSObject(prototype)
{
unsigned length = list.size();
@@ -107,8 +107,8 @@
storage->m_sparseValueMap = 0;
size_t i = 0;
- List::const_iterator end = list.end();
- for (List::const_iterator it = list.begin(); it != end; ++it, ++i)
+ ArgList::const_iterator end = list.end();
+ for (ArgList::const_iterator it = list.begin(); it != end; ++it, ++i)
storage->m_vector[i] = *it;
m_storage = storage;
@@ -592,7 +592,7 @@
if (m_exec->hadException())
return 1;
- List arguments;
+ ArgList arguments;
arguments.append(va);
arguments.append(vb);
double compareResult = m_compareFunction->callAsFunction(m_exec, m_globalThisValue, arguments)->toNumber(m_exec);
diff --git a/JavaScriptCore/kjs/JSArray.h b/JavaScriptCore/kjs/JSArray.h
index dd364cb..6124374 100644
--- a/JavaScriptCore/kjs/JSArray.h
+++ b/JavaScriptCore/kjs/JSArray.h
@@ -31,7 +31,7 @@
class JSArray : public JSObject {
public:
JSArray(JSObject* prototype, unsigned initialLength);
- JSArray(JSObject* prototype, const List& initialValues);
+ JSArray(JSObject* prototype, const ArgList& initialValues);
~JSArray();
virtual bool getOwnPropertySlot(ExecState*, const Identifier& propertyName, PropertySlot&);
diff --git a/JavaScriptCore/kjs/JSFunction.cpp b/JavaScriptCore/kjs/JSFunction.cpp
index eea9326..27ce2df 100644
--- a/JavaScriptCore/kjs/JSFunction.cpp
+++ b/JavaScriptCore/kjs/JSFunction.cpp
@@ -80,7 +80,7 @@
return CallTypeJS;
}
-JSValue* JSFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* JSFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
JSValue* exception = 0;
RegisterFileStack* stack = &exec->dynamicGlobalObject()->registerFileStack();
@@ -186,7 +186,7 @@
return ConstructTypeJS;
}
-JSObject* JSFunction::construct(ExecState* exec, const List& args)
+JSObject* JSFunction::construct(ExecState* exec, const ArgList& args)
{
JSObject* proto;
JSValue* p = get(exec, exec->propertyNames().prototype);
@@ -220,14 +220,14 @@
// We use Identifier::null to indicate that a given argument's value
// isn't stored in the activation object.
-IndexToNameMap::IndexToNameMap(JSFunction* func, const List& args)
+IndexToNameMap::IndexToNameMap(JSFunction* func, const ArgList& args)
{
_map = new Identifier[args.size()];
this->size = args.size();
unsigned i = 0;
- List::const_iterator end = args.end();
- for (List::const_iterator it = args.begin(); it != end; ++i, ++it)
+ ArgList::const_iterator end = args.end();
+ for (ArgList::const_iterator it = args.begin(); it != end; ++i, ++it)
_map[i] = func->getParameterName(i); // null if there is no corresponding parameter
}
@@ -278,7 +278,7 @@
const ClassInfo Arguments::info = { "Arguments", 0, 0, 0 };
// ECMA 10.1.8
-Arguments::Arguments(ExecState* exec, JSFunction* func, const List& args, JSActivation* act)
+Arguments::Arguments(ExecState* exec, JSFunction* func, const ArgList& args, JSActivation* act)
: JSObject(exec->lexicalGlobalObject()->objectPrototype())
, _activationObject(act)
, indexToNameMap(func, args)
@@ -287,8 +287,8 @@
putDirect(exec->propertyNames().length, args.size(), DontEnum);
int i = 0;
- List::const_iterator end = args.end();
- for (List::const_iterator it = args.begin(); it != end; ++it, ++i) {
+ ArgList::const_iterator end = args.end();
+ for (ArgList::const_iterator it = args.begin(); it != end; ++it, ++i) {
Identifier name = Identifier::from(i);
if (!indexToNameMap.isMapped(name))
putDirect(name, *it, DontEnum);
@@ -338,7 +338,7 @@
// ------------------------------ Global Functions -----------------------------------
-static JSValue* encode(ExecState* exec, const List& args, const char* do_not_escape)
+static JSValue* encode(ExecState* exec, const ArgList& args, const char* do_not_escape)
{
UString r = "", s, str = args[0]->toString(exec);
CString cstr = str.UTF8String(true);
@@ -358,7 +358,7 @@
return jsString(r);
}
-static JSValue* decode(ExecState* exec, const List& args, const char* do_not_unescape, bool strict)
+static JSValue* decode(ExecState* exec, const ArgList& args, const char* do_not_unescape, bool strict)
{
UString s = "", str = args[0]->toString(exec);
int k = 0, len = str.size();
@@ -557,7 +557,7 @@
return s.toDouble( true /*tolerant*/, false /* NaN for empty string */ );
}
-JSValue* globalFuncEval(ExecState* exec, PrototypeReflexiveFunction* function, JSObject* thisObj, const List& args)
+JSValue* globalFuncEval(ExecState* exec, PrototypeReflexiveFunction* function, JSObject* thisObj, const ArgList& args)
{
JSGlobalObject* globalObject = thisObj->toGlobalObject(exec);
@@ -590,28 +590,28 @@
return value ? value : jsUndefined();
}
-JSValue* globalFuncParseInt(ExecState* exec, JSObject*, const List& args)
+JSValue* globalFuncParseInt(ExecState* exec, JSObject*, const ArgList& args)
{
return jsNumber(parseInt(args[0]->toString(exec), args[1]->toInt32(exec)));
}
-JSValue* globalFuncParseFloat(ExecState* exec, JSObject*, const List& args)
+JSValue* globalFuncParseFloat(ExecState* exec, JSObject*, const ArgList& args)
{
return jsNumber(parseFloat(args[0]->toString(exec)));
}
-JSValue* globalFuncIsNaN(ExecState* exec, JSObject*, const List& args)
+JSValue* globalFuncIsNaN(ExecState* exec, JSObject*, const ArgList& args)
{
return jsBoolean(isnan(args[0]->toNumber(exec)));
}
-JSValue* globalFuncIsFinite(ExecState* exec, JSObject*, const List& args)
+JSValue* globalFuncIsFinite(ExecState* exec, JSObject*, const ArgList& args)
{
double n = args[0]->toNumber(exec);
return jsBoolean(!isnan(n) && !isinf(n));
}
-JSValue* globalFuncDecodeURI(ExecState* exec, JSObject*, const List& args)
+JSValue* globalFuncDecodeURI(ExecState* exec, JSObject*, const ArgList& args)
{
static const char do_not_unescape_when_decoding_URI[] =
"#$&+,/:;=?@";
@@ -619,12 +619,12 @@
return decode(exec, args, do_not_unescape_when_decoding_URI, true);
}
-JSValue* globalFuncDecodeURIComponent(ExecState* exec, JSObject*, const List& args)
+JSValue* globalFuncDecodeURIComponent(ExecState* exec, JSObject*, const ArgList& args)
{
return decode(exec, args, "", true);
}
-JSValue* globalFuncEncodeURI(ExecState* exec, JSObject*, const List& args)
+JSValue* globalFuncEncodeURI(ExecState* exec, JSObject*, const ArgList& args)
{
static const char do_not_escape_when_encoding_URI[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
@@ -635,7 +635,7 @@
return encode(exec, args, do_not_escape_when_encoding_URI);
}
-JSValue* globalFuncEncodeURIComponent(ExecState* exec, JSObject*, const List& args)
+JSValue* globalFuncEncodeURIComponent(ExecState* exec, JSObject*, const ArgList& args)
{
static const char do_not_escape_when_encoding_URI_component[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
@@ -646,7 +646,7 @@
return encode(exec, args, do_not_escape_when_encoding_URI_component);
}
-JSValue* globalFuncEscape(ExecState* exec, JSObject*, const List& args)
+JSValue* globalFuncEscape(ExecState* exec, JSObject*, const ArgList& args)
{
static const char do_not_escape[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
@@ -675,7 +675,7 @@
return jsString(r);
}
-JSValue* globalFuncUnescape(ExecState* exec, JSObject*, const List& args)
+JSValue* globalFuncUnescape(ExecState* exec, JSObject*, const ArgList& args)
{
UString s = "", str = args[0]->toString(exec);
int k = 0, len = str.size();
@@ -701,7 +701,7 @@
}
#ifndef NDEBUG
-JSValue* globalFuncKJSPrint(ExecState* exec, JSObject*, const List& args)
+JSValue* globalFuncKJSPrint(ExecState* exec, JSObject*, const ArgList& args)
{
CStringBuffer string;
args[0]->toString(exec).getCString(string);
@@ -728,7 +728,7 @@
putDirect(exec->propertyNames().length, jsNumber(len), DontDelete | ReadOnly | DontEnum);
}
-JSValue* PrototypeFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* PrototypeFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
return m_function(exec, thisObj, args);
}
@@ -745,7 +745,7 @@
putDirect(exec->propertyNames().length, jsNumber(len), DontDelete | ReadOnly | DontEnum);
}
-JSValue* PrototypeReflexiveFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* PrototypeReflexiveFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
return m_function(exec, this, thisObj, args);
}
diff --git a/JavaScriptCore/kjs/JSFunction.h b/JavaScriptCore/kjs/JSFunction.h
index a861495..68aae05 100644
--- a/JavaScriptCore/kjs/JSFunction.h
+++ b/JavaScriptCore/kjs/JSFunction.h
@@ -44,7 +44,7 @@
virtual CallType getCallData(CallData&);
- virtual JSValue* callAsFunction(ExecState*, JSObject* thisObjec, const List& args) = 0;
+ virtual JSValue* callAsFunction(ExecState*, JSObject* thisObjec, const ArgList& args) = 0;
virtual bool implementsHasInstance() const;
virtual const ClassInfo* classInfo() const { return &info; }
@@ -64,10 +64,10 @@
virtual bool deleteProperty(ExecState*, const Identifier& propertyName);
virtual ConstructType getConstructData(ConstructData&);
- virtual JSObject* construct(ExecState*, const List& args);
+ virtual JSObject* construct(ExecState*, const ArgList& args);
virtual CallType getCallData(CallData&);
- virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const List& args);
+ virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const ArgList& args);
// Note: unlike body->paramName, this returns Identifier::null for parameters
// that will never get set, due to later param having the same name
@@ -93,7 +93,7 @@
class IndexToNameMap {
public:
- IndexToNameMap(JSFunction*, const List& args);
+ IndexToNameMap(JSFunction*, const ArgList& args);
~IndexToNameMap();
Identifier& operator[](const Identifier& index);
@@ -107,7 +107,7 @@
class Arguments : public JSObject {
public:
- Arguments(ExecState*, JSFunction* func, const List& args, JSActivation* act);
+ Arguments(ExecState*, JSFunction* func, const ArgList& args, JSActivation* act);
virtual void mark();
virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
virtual void put(ExecState*, const Identifier& propertyName, JSValue*);
@@ -123,12 +123,12 @@
class PrototypeFunction : public InternalFunction {
public:
- typedef JSValue* (*JSMemberFunction)(ExecState*, JSObject* thisObj, const List&);
+ typedef JSValue* (*JSMemberFunction)(ExecState*, JSObject* thisObj, const ArgList&);
PrototypeFunction(ExecState*, int len, const Identifier&, JSMemberFunction);
PrototypeFunction(ExecState*, FunctionPrototype*, int len, const Identifier&, JSMemberFunction);
- virtual JSValue* callAsFunction(ExecState* exec, JSObject* thisObj, const List&);
+ virtual JSValue* callAsFunction(ExecState* exec, JSObject* thisObj, const ArgList&);
private:
const JSMemberFunction m_function;
@@ -138,12 +138,12 @@
// Just like PrototypeFunction, but callbacks also get passed the JS function object.
class PrototypeReflexiveFunction : public InternalFunction {
public:
- typedef JSValue* (*JSMemberFunction)(ExecState*, PrototypeReflexiveFunction*, JSObject* thisObj, const List&);
+ typedef JSValue* (*JSMemberFunction)(ExecState*, PrototypeReflexiveFunction*, JSObject* thisObj, const ArgList&);
PrototypeReflexiveFunction(ExecState*, FunctionPrototype*, int len, const Identifier&, JSMemberFunction, JSGlobalObject* expectedThisObject);
virtual void mark();
- virtual JSValue* callAsFunction(ExecState* exec, JSObject* thisObj, const List&);
+ virtual JSValue* callAsFunction(ExecState* exec, JSObject* thisObj, const ArgList&);
JSGlobalObject* cachedGlobalObject() const { return m_cachedGlobalObject; }
@@ -153,19 +153,19 @@
};
// Global Functions
- JSValue* globalFuncEval(ExecState*, PrototypeReflexiveFunction*, JSObject*, const List&);
- JSValue* globalFuncParseInt(ExecState*, JSObject*, const List&);
- JSValue* globalFuncParseFloat(ExecState*, JSObject*, const List&);
- JSValue* globalFuncIsNaN(ExecState*, JSObject*, const List&);
- JSValue* globalFuncIsFinite(ExecState*, JSObject*, const List&);
- JSValue* globalFuncDecodeURI(ExecState*, JSObject*, const List&);
- JSValue* globalFuncDecodeURIComponent(ExecState*, JSObject*, const List&);
- JSValue* globalFuncEncodeURI(ExecState*, JSObject*, const List&);
- JSValue* globalFuncEncodeURIComponent(ExecState*, JSObject*, const List&);
- JSValue* globalFuncEscape(ExecState*, JSObject*, const List&);
- JSValue* globalFuncUnescape(ExecState*, JSObject*, const List&);
+ JSValue* globalFuncEval(ExecState*, PrototypeReflexiveFunction*, JSObject*, const ArgList&);
+ JSValue* globalFuncParseInt(ExecState*, JSObject*, const ArgList&);
+ JSValue* globalFuncParseFloat(ExecState*, JSObject*, const ArgList&);
+ JSValue* globalFuncIsNaN(ExecState*, JSObject*, const ArgList&);
+ JSValue* globalFuncIsFinite(ExecState*, JSObject*, const ArgList&);
+ JSValue* globalFuncDecodeURI(ExecState*, JSObject*, const ArgList&);
+ JSValue* globalFuncDecodeURIComponent(ExecState*, JSObject*, const ArgList&);
+ JSValue* globalFuncEncodeURI(ExecState*, JSObject*, const ArgList&);
+ JSValue* globalFuncEncodeURIComponent(ExecState*, JSObject*, const ArgList&);
+ JSValue* globalFuncEscape(ExecState*, JSObject*, const ArgList&);
+ JSValue* globalFuncUnescape(ExecState*, JSObject*, const ArgList&);
#ifndef NDEBUG
- JSValue* globalFuncKJSPrint(ExecState*, JSObject*, const List&);
+ JSValue* globalFuncKJSPrint(ExecState*, JSObject*, const ArgList&);
#endif
static const double mantissaOverflowLowerBound = 9007199254740992.0;
diff --git a/JavaScriptCore/kjs/JSGlobalData.h b/JavaScriptCore/kjs/JSGlobalData.h
index be9880e..d35d99f 100644
--- a/JavaScriptCore/kjs/JSGlobalData.h
+++ b/JavaScriptCore/kjs/JSGlobalData.h
@@ -69,7 +69,7 @@
IdentifierTable* identifierTable;
CommonIdentifiers* propertyNames;
- 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.
+ 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.
HashSet<ParserRefCounted*> newTrackedObjects;
HashCountedSet<ParserRefCounted*> trackedObjectExtraRefCounts;
diff --git a/JavaScriptCore/kjs/JSImmediate.cpp b/JavaScriptCore/kjs/JSImmediate.cpp
index 468eb5a..b1483e4 100644
--- a/JavaScriptCore/kjs/JSImmediate.cpp
+++ b/JavaScriptCore/kjs/JSImmediate.cpp
@@ -37,12 +37,12 @@
else if (v == jsUndefined())
return new JSNotAnObject(throwError(exec, TypeError, "Undefined value"));
else if (isBoolean(v)) {
- List args;
+ ArgList args;
args.append(const_cast<JSValue *>(v));
return exec->lexicalGlobalObject()->booleanConstructor()->construct(exec, args);
} else {
ASSERT(isNumber(v));
- List args;
+ ArgList args;
args.append(const_cast<JSValue *>(v));
return exec->lexicalGlobalObject()->numberConstructor()->construct(exec, args);
}
diff --git a/JavaScriptCore/kjs/JSNotAnObject.cpp b/JavaScriptCore/kjs/JSNotAnObject.cpp
index ac7b907..dc4eeec 100644
--- a/JavaScriptCore/kjs/JSNotAnObject.cpp
+++ b/JavaScriptCore/kjs/JSNotAnObject.cpp
@@ -133,21 +133,21 @@
return m_exception;
}
-JSObject* JSNotAnObject::construct(ExecState* exec, const List&)
+JSObject* JSNotAnObject::construct(ExecState* exec, const ArgList&)
{
UNUSED_PARAM(exec);
ASSERT(exec->hadException() && exec->exception() == m_exception);
return m_exception;
}
-JSObject* JSNotAnObject::construct(ExecState* exec, const List&, const Identifier&, const UString&, int)
+JSObject* JSNotAnObject::construct(ExecState* exec, const ArgList&, const Identifier&, const UString&, int)
{
UNUSED_PARAM(exec);
ASSERT(exec->hadException() && exec->exception() == m_exception);
return m_exception;
}
-JSValue* JSNotAnObject::callAsFunction(ExecState* exec, JSObject*, const List&)
+JSValue* JSNotAnObject::callAsFunction(ExecState* exec, JSObject*, const ArgList&)
{
UNUSED_PARAM(exec);
ASSERT(exec->hadException() && exec->exception() == m_exception);
diff --git a/JavaScriptCore/kjs/JSNotAnObject.h b/JavaScriptCore/kjs/JSNotAnObject.h
index 34f1d7e..0ddf97d 100644
--- a/JavaScriptCore/kjs/JSNotAnObject.h
+++ b/JavaScriptCore/kjs/JSNotAnObject.h
@@ -66,10 +66,10 @@
virtual JSValue* defaultValue(ExecState*, JSType hint) const;
- virtual JSObject* construct(ExecState*, const List&);
- virtual JSObject* construct(ExecState*, const List&, const Identifier& functionName, const UString& sourceURL, int lineNumber);
+ virtual JSObject* construct(ExecState*, const ArgList&);
+ virtual JSObject* construct(ExecState*, const ArgList&, const Identifier& functionName, const UString& sourceURL, int lineNumber);
- virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const List&);
+ virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const ArgList&);
virtual void getPropertyNames(ExecState*, PropertyNameArray&);
diff --git a/JavaScriptCore/kjs/JSObject.cpp b/JavaScriptCore/kjs/JSObject.cpp
index e3eb5cb..4980703 100644
--- a/JavaScriptCore/kjs/JSObject.cpp
+++ b/JavaScriptCore/kjs/JSObject.cpp
@@ -147,7 +147,7 @@
return;
}
- List args;
+ ArgList args;
args.append(value);
setterFunc->callAsFunction(exec, this->toThisObject(exec), args);
@@ -365,13 +365,13 @@
}
}
-JSObject* JSObject::construct(ExecState*, const List& /*args*/)
+JSObject* JSObject::construct(ExecState*, const ArgList& /*args*/)
{
ASSERT(false);
return NULL;
}
-JSObject* JSObject::construct(ExecState* exec, const List& args, const Identifier& /*functionName*/, const UString& /*sourceURL*/, int /*lineNumber*/)
+JSObject* JSObject::construct(ExecState* exec, const ArgList& args, const Identifier& /*functionName*/, const UString& /*sourceURL*/, int /*lineNumber*/)
{
return construct(exec, args);
}
@@ -382,7 +382,7 @@
return getCallData(callData) != CallTypeNone;
}
-JSValue *JSObject::callAsFunction(ExecState* /*exec*/, JSObject* /*thisObj*/, const List &/*args*/)
+JSValue *JSObject::callAsFunction(ExecState* /*exec*/, JSObject* /*thisObj*/, const ArgList &/*args*/)
{
ASSERT(false);
return NULL;
@@ -555,7 +555,7 @@
break;
}
- List args;
+ ArgList args;
if (message.isEmpty())
args.append(jsString(name));
else
diff --git a/JavaScriptCore/kjs/JSObject.h b/JavaScriptCore/kjs/JSObject.h
index 0471468..4fc0064 100644
--- a/JavaScriptCore/kjs/JSObject.h
+++ b/JavaScriptCore/kjs/JSObject.h
@@ -349,8 +349,8 @@
/**
* Implementation of the [[Construct]] internal property
*/
- virtual JSObject* construct(ExecState* exec, const List& args);
- virtual JSObject* construct(ExecState* exec, const List& args, const Identifier& functionName, const UString& sourceURL, int lineNumber);
+ virtual JSObject* construct(ExecState* exec, const ArgList& args);
+ virtual JSObject* construct(ExecState* exec, const ArgList& args, const Identifier& functionName, const UString& sourceURL, int lineNumber);
/**
* Calls this object as if it is a function.
@@ -366,11 +366,11 @@
* object. For example, if the ECMAScript code "window.location->toString()"
* is executed, call() will be invoked on the C++ object which implements
* the toString method, with the thisObj being window.location
- * @param args List of arguments to be passed to the function
+ * @param args ArgList of arguments to be passed to the function
* @return The return value from the function
*/
bool implementsCall();
- virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const List &args);
+ virtual JSValue *callAsFunction(ExecState *exec, JSObject *thisObj, const ArgList &args);
/**
* Whether or not the object implements the hasInstance() method. If this
diff --git a/JavaScriptCore/kjs/MathObject.cpp b/JavaScriptCore/kjs/MathObject.cpp
index a0dcda7..d198899 100644
--- a/JavaScriptCore/kjs/MathObject.cpp
+++ b/JavaScriptCore/kjs/MathObject.cpp
@@ -103,33 +103,33 @@
// ------------------------------ Functions --------------------------------
-JSValue* mathProtoFuncAbs(ExecState* exec, JSObject*, const List& args)
+JSValue* mathProtoFuncAbs(ExecState* exec, JSObject*, const ArgList& args)
{
double arg = args[0]->toNumber(exec);
return signbit(arg) ? jsNumber(-arg) : jsNumber(arg);
}
-JSValue* mathProtoFuncACos(ExecState* exec, JSObject*, const List& args)
+JSValue* mathProtoFuncACos(ExecState* exec, JSObject*, const ArgList& args)
{
return jsNumber(acos(args[0]->toNumber(exec)));
}
-JSValue* mathProtoFuncASin(ExecState* exec, JSObject*, const List& args)
+JSValue* mathProtoFuncASin(ExecState* exec, JSObject*, const ArgList& args)
{
return jsNumber(asin(args[0]->toNumber(exec)));
}
-JSValue* mathProtoFuncATan(ExecState* exec, JSObject*, const List& args)
+JSValue* mathProtoFuncATan(ExecState* exec, JSObject*, const ArgList& args)
{
return jsNumber(atan(args[0]->toNumber(exec)));
}
-JSValue* mathProtoFuncATan2(ExecState* exec, JSObject*, const List& args)
+JSValue* mathProtoFuncATan2(ExecState* exec, JSObject*, const ArgList& args)
{
return jsNumber(atan2(args[0]->toNumber(exec), args[1]->toNumber(exec)));
}
-JSValue* mathProtoFuncCeil(ExecState* exec, JSObject*, const List& args)
+JSValue* mathProtoFuncCeil(ExecState* exec, JSObject*, const ArgList& args)
{
double arg = args[0]->toNumber(exec);
if (signbit(arg) && arg > -1.0)
@@ -137,17 +137,17 @@
return jsNumber(ceil(arg));
}
-JSValue* mathProtoFuncCos(ExecState* exec, JSObject*, const List& args)
+JSValue* mathProtoFuncCos(ExecState* exec, JSObject*, const ArgList& args)
{
return jsNumber(cos(args[0]->toNumber(exec)));
}
-JSValue* mathProtoFuncExp(ExecState* exec, JSObject*, const List& args)
+JSValue* mathProtoFuncExp(ExecState* exec, JSObject*, const ArgList& args)
{
return jsNumber(exp(args[0]->toNumber(exec)));
}
-JSValue* mathProtoFuncFloor(ExecState* exec, JSObject*, const List& args)
+JSValue* mathProtoFuncFloor(ExecState* exec, JSObject*, const ArgList& args)
{
double arg = args[0]->toNumber(exec);
if (signbit(arg) && arg == 0.0)
@@ -155,12 +155,12 @@
return jsNumber(floor(arg));
}
-JSValue* mathProtoFuncLog(ExecState* exec, JSObject*, const List& args)
+JSValue* mathProtoFuncLog(ExecState* exec, JSObject*, const ArgList& args)
{
return jsNumber(log(args[0]->toNumber(exec)));
}
-JSValue* mathProtoFuncMax(ExecState* exec, JSObject*, const List& args)
+JSValue* mathProtoFuncMax(ExecState* exec, JSObject*, const ArgList& args)
{
unsigned argsCount = args.size();
double result = -Inf;
@@ -176,7 +176,7 @@
return jsNumber(result);
}
-JSValue* mathProtoFuncMin(ExecState* exec, JSObject*, const List& args)
+JSValue* mathProtoFuncMin(ExecState* exec, JSObject*, const ArgList& args)
{
unsigned argsCount = args.size();
double result = +Inf;
@@ -192,7 +192,7 @@
return jsNumber(result);
}
-JSValue* mathProtoFuncPow(ExecState* exec, JSObject*, const List& args)
+JSValue* mathProtoFuncPow(ExecState* exec, JSObject*, const ArgList& args)
{
// ECMA 15.8.2.1.13
@@ -206,7 +206,7 @@
return jsNumber(pow(arg, arg2));
}
-JSValue* mathProtoFuncRandom(ExecState*, JSObject*, const List&)
+JSValue* mathProtoFuncRandom(ExecState*, JSObject*, const ArgList&)
{
#if !USE(MULTIPLE_THREADS)
static bool didInitRandom;
@@ -219,7 +219,7 @@
return jsNumber(wtf_random());
}
-JSValue* mathProtoFuncRound(ExecState* exec, JSObject*, const List& args)
+JSValue* mathProtoFuncRound(ExecState* exec, JSObject*, const ArgList& args)
{
double arg = args[0]->toNumber(exec);
if (signbit(arg) && arg >= -0.5)
@@ -227,17 +227,17 @@
return jsNumber(floor(arg + 0.5));
}
-JSValue* mathProtoFuncSin(ExecState* exec, JSObject*, const List& args)
+JSValue* mathProtoFuncSin(ExecState* exec, JSObject*, const ArgList& args)
{
return jsNumber(sin(args[0]->toNumber(exec)));
}
-JSValue* mathProtoFuncSqrt(ExecState* exec, JSObject*, const List& args)
+JSValue* mathProtoFuncSqrt(ExecState* exec, JSObject*, const ArgList& args)
{
return jsNumber(sqrt(args[0]->toNumber(exec)));
}
-JSValue* mathProtoFuncTan(ExecState* exec, JSObject*, const List& args)
+JSValue* mathProtoFuncTan(ExecState* exec, JSObject*, const ArgList& args)
{
return jsNumber(tan(args[0]->toNumber(exec)));
}
diff --git a/JavaScriptCore/kjs/MathObject.h b/JavaScriptCore/kjs/MathObject.h
index 658cb55..fb542fe 100644
--- a/JavaScriptCore/kjs/MathObject.h
+++ b/JavaScriptCore/kjs/MathObject.h
@@ -41,24 +41,24 @@
};
// Functions
- JSValue* mathProtoFuncAbs(ExecState*, JSObject*, const List&);
- JSValue* mathProtoFuncACos(ExecState*, JSObject*, const List&);
- JSValue* mathProtoFuncASin(ExecState*, JSObject*, const List&);
- JSValue* mathProtoFuncATan(ExecState*, JSObject*, const List&);
- JSValue* mathProtoFuncATan2(ExecState*, JSObject*, const List&);
- JSValue* mathProtoFuncCeil(ExecState*, JSObject*, const List&);
- JSValue* mathProtoFuncCos(ExecState*, JSObject*, const List&);
- JSValue* mathProtoFuncExp(ExecState*, JSObject*, const List&);
- JSValue* mathProtoFuncFloor(ExecState*, JSObject*, const List&);
- JSValue* mathProtoFuncLog(ExecState*, JSObject*, const List&);
- JSValue* mathProtoFuncMax(ExecState*, JSObject*, const List&);
- JSValue* mathProtoFuncMin(ExecState*, JSObject*, const List&);
- JSValue* mathProtoFuncPow(ExecState*, JSObject*, const List&);
- JSValue* mathProtoFuncRandom(ExecState*, JSObject*, const List&);
- JSValue* mathProtoFuncRound(ExecState*, JSObject*, const List&);
- JSValue* mathProtoFuncSin(ExecState*, JSObject*, const List&);
- JSValue* mathProtoFuncSqrt(ExecState*, JSObject*, const List&);
- JSValue* mathProtoFuncTan(ExecState*, JSObject*, const List&);
+ JSValue* mathProtoFuncAbs(ExecState*, JSObject*, const ArgList&);
+ JSValue* mathProtoFuncACos(ExecState*, JSObject*, const ArgList&);
+ JSValue* mathProtoFuncASin(ExecState*, JSObject*, const ArgList&);
+ JSValue* mathProtoFuncATan(ExecState*, JSObject*, const ArgList&);
+ JSValue* mathProtoFuncATan2(ExecState*, JSObject*, const ArgList&);
+ JSValue* mathProtoFuncCeil(ExecState*, JSObject*, const ArgList&);
+ JSValue* mathProtoFuncCos(ExecState*, JSObject*, const ArgList&);
+ JSValue* mathProtoFuncExp(ExecState*, JSObject*, const ArgList&);
+ JSValue* mathProtoFuncFloor(ExecState*, JSObject*, const ArgList&);
+ JSValue* mathProtoFuncLog(ExecState*, JSObject*, const ArgList&);
+ JSValue* mathProtoFuncMax(ExecState*, JSObject*, const ArgList&);
+ JSValue* mathProtoFuncMin(ExecState*, JSObject*, const ArgList&);
+ JSValue* mathProtoFuncPow(ExecState*, JSObject*, const ArgList&);
+ JSValue* mathProtoFuncRandom(ExecState*, JSObject*, const ArgList&);
+ JSValue* mathProtoFuncRound(ExecState*, JSObject*, const ArgList&);
+ JSValue* mathProtoFuncSin(ExecState*, JSObject*, const ArgList&);
+ JSValue* mathProtoFuncSqrt(ExecState*, JSObject*, const ArgList&);
+ JSValue* mathProtoFuncTan(ExecState*, JSObject*, const ArgList&);
} // namespace KJS
diff --git a/JavaScriptCore/kjs/NumberObject.cpp b/JavaScriptCore/kjs/NumberObject.cpp
index 90dba9d..e3f24dc 100644
--- a/JavaScriptCore/kjs/NumberObject.cpp
+++ b/JavaScriptCore/kjs/NumberObject.cpp
@@ -43,12 +43,12 @@
// ------------------------------ NumberPrototype ---------------------------
-static JSValue* numberProtoFuncToString(ExecState*, JSObject*, const List&);
-static JSValue* numberProtoFuncToLocaleString(ExecState*, JSObject*, const List&);
-static JSValue* numberProtoFuncValueOf(ExecState*, JSObject*, const List&);
-static JSValue* numberProtoFuncToFixed(ExecState*, JSObject*, const List&);
-static JSValue* numberProtoFuncToExponential(ExecState*, JSObject*, const List&);
-static JSValue* numberProtoFuncToPrecision(ExecState*, JSObject*, const List&);
+static JSValue* numberProtoFuncToString(ExecState*, JSObject*, const ArgList&);
+static JSValue* numberProtoFuncToLocaleString(ExecState*, JSObject*, const ArgList&);
+static JSValue* numberProtoFuncValueOf(ExecState*, JSObject*, const ArgList&);
+static JSValue* numberProtoFuncToFixed(ExecState*, JSObject*, const ArgList&);
+static JSValue* numberProtoFuncToExponential(ExecState*, JSObject*, const ArgList&);
+static JSValue* numberProtoFuncToPrecision(ExecState*, JSObject*, const ArgList&);
// ECMA 15.7.4
@@ -142,7 +142,7 @@
}
-JSValue* numberProtoFuncToString(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* numberProtoFuncToString(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
if (!thisObj->inherits(&NumberObject::info))
return throwError(exec, TypeError);
@@ -207,7 +207,7 @@
return jsString(startOfResultString);
}
-JSValue* numberProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* numberProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&NumberObject::info))
return throwError(exec, TypeError);
@@ -216,7 +216,7 @@
return jsString(static_cast<NumberObject*>(thisObj)->internalValue()->toString(exec));
}
-JSValue* numberProtoFuncValueOf(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* numberProtoFuncValueOf(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&NumberObject::info))
return throwError(exec, TypeError);
@@ -224,7 +224,7 @@
return static_cast<NumberObject*>(thisObj)->internalValue()->toJSNumber(exec);
}
-JSValue* numberProtoFuncToFixed(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* numberProtoFuncToFixed(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
if (!thisObj->inherits(&NumberObject::info))
return throwError(exec, TypeError);
@@ -310,7 +310,7 @@
buf[i++] = static_cast<char>('0' + exponential % 10);
}
-JSValue* numberProtoFuncToExponential(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* numberProtoFuncToExponential(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
if (!thisObj->inherits(&NumberObject::info))
return throwError(exec, TypeError);
@@ -381,7 +381,7 @@
return jsString(buf);
}
-JSValue* numberProtoFuncToPrecision(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* numberProtoFuncToPrecision(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
if (!thisObj->inherits(&NumberObject::info))
return throwError(exec, TypeError);
@@ -501,7 +501,7 @@
}
// ECMA 15.7.1
-JSObject* NumberConstructor::construct(ExecState* exec, const List& args)
+JSObject* NumberConstructor::construct(ExecState* exec, const ArgList& args)
{
JSObject* proto = exec->lexicalGlobalObject()->numberPrototype();
NumberObject* obj = new NumberObject(proto);
@@ -513,7 +513,7 @@
}
// ECMA 15.7.2
-JSValue* NumberConstructor::callAsFunction(ExecState* exec, JSObject*, const List& args)
+JSValue* NumberConstructor::callAsFunction(ExecState* exec, JSObject*, const ArgList& args)
{
// FIXME: Check args[0]->isUndefined() instead of args.isEmpty()?
return jsNumber(args.isEmpty() ? 0 : args[0]->toNumber(exec));
diff --git a/JavaScriptCore/kjs/NumberObject.h b/JavaScriptCore/kjs/NumberObject.h
index e946ac3..3510fa6 100644
--- a/JavaScriptCore/kjs/NumberObject.h
+++ b/JavaScriptCore/kjs/NumberObject.h
@@ -56,9 +56,9 @@
NumberConstructor(ExecState*, FunctionPrototype*, NumberPrototype*);
virtual ConstructType getConstructData(ConstructData&);
- virtual JSObject* construct(ExecState*, const List&);
+ virtual JSObject* construct(ExecState*, const ArgList&);
- virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);
+ virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&);
bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
JSValue* getValueProperty(ExecState*, int token) const;
@@ -68,7 +68,7 @@
enum { NaNValue, NegInfinity, PosInfinity, MaxValue, MinValue };
- JSObject* construct(const List&);
+ JSObject* construct(const ArgList&);
};
} // namespace KJS
diff --git a/JavaScriptCore/kjs/RegExpObject.cpp b/JavaScriptCore/kjs/RegExpObject.cpp
index 365d341..1a6d45b 100644
--- a/JavaScriptCore/kjs/RegExpObject.cpp
+++ b/JavaScriptCore/kjs/RegExpObject.cpp
@@ -39,10 +39,10 @@
// ------------------------------ RegExpPrototype ---------------------------
-static JSValue* regExpProtoFuncTest(ExecState*, JSObject*, const List&);
-static JSValue* regExpProtoFuncExec(ExecState*, JSObject*, const List&);
-static JSValue* regExpProtoFuncCompile(ExecState*, JSObject*, const List&);
-static JSValue* regExpProtoFuncToString(ExecState*, JSObject*, const List&);
+static JSValue* regExpProtoFuncTest(ExecState*, JSObject*, const ArgList&);
+static JSValue* regExpProtoFuncExec(ExecState*, JSObject*, const ArgList&);
+static JSValue* regExpProtoFuncCompile(ExecState*, JSObject*, const ArgList&);
+static JSValue* regExpProtoFuncToString(ExecState*, JSObject*, const ArgList&);
// ECMA 15.10.5
@@ -59,7 +59,7 @@
// ------------------------------ Functions ---------------------------
-JSValue* regExpProtoFuncTest(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* regExpProtoFuncTest(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
if (!thisObj->inherits(&RegExpObject::info))
return throwError(exec, TypeError);
@@ -67,7 +67,7 @@
return static_cast<RegExpObject*>(thisObj)->test(exec, args);
}
-JSValue* regExpProtoFuncExec(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* regExpProtoFuncExec(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
if (!thisObj->inherits(&RegExpObject::info))
return throwError(exec, TypeError);
@@ -75,7 +75,7 @@
return static_cast<RegExpObject*>(thisObj)->exec(exec, args);
}
-JSValue* regExpProtoFuncCompile(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* regExpProtoFuncCompile(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
if (!thisObj->inherits(&RegExpObject::info))
return throwError(exec, TypeError);
@@ -102,7 +102,7 @@
return jsUndefined();
}
-JSValue* regExpProtoFuncToString(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* regExpProtoFuncToString(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&RegExpObject::info)) {
if (thisObj->inherits(&RegExpPrototype::info))
@@ -181,7 +181,7 @@
m_lastIndex = value->toInteger(exec);
}
-bool RegExpObject::match(ExecState* exec, const List& args)
+bool RegExpObject::match(ExecState* exec, const ArgList& args)
{
RegExpConstructor* regExpObj = exec->lexicalGlobalObject()->regExpConstructor();
@@ -218,12 +218,12 @@
return foundIndex >= 0;
}
-JSValue* RegExpObject::test(ExecState* exec, const List& args)
+JSValue* RegExpObject::test(ExecState* exec, const ArgList& args)
{
return jsBoolean(match(exec, args));
}
-JSValue* RegExpObject::exec(ExecState* exec, const List& args)
+JSValue* RegExpObject::exec(ExecState* exec, const ArgList& args)
{
return match(exec, args)
? exec->lexicalGlobalObject()->regExpConstructor()->arrayOfMatches(exec)
@@ -235,7 +235,7 @@
return CallTypeNative;
}
-JSValue* RegExpObject::callAsFunction(ExecState* exec, JSObject*, const List& args)
+JSValue* RegExpObject::callAsFunction(ExecState* exec, JSObject*, const ArgList& args)
{
return RegExpObject::exec(exec, args);
}
@@ -478,7 +478,7 @@
}
// ECMA 15.10.4
-JSObject *RegExpConstructor::construct(ExecState *exec, const List &args)
+JSObject *RegExpConstructor::construct(ExecState *exec, const ArgList &args)
{
JSValue* arg0 = args[0];
JSValue* arg1 = args[1];
@@ -499,7 +499,7 @@
}
// ECMA 15.10.3
-JSValue *RegExpConstructor::callAsFunction(ExecState *exec, JSObject * /*thisObj*/, const List &args)
+JSValue *RegExpConstructor::callAsFunction(ExecState *exec, JSObject * /*thisObj*/, const ArgList &args)
{
return construct(exec, args);
}
diff --git a/JavaScriptCore/kjs/RegExpObject.h b/JavaScriptCore/kjs/RegExpObject.h
index 336f0f5..77d3605 100644
--- a/JavaScriptCore/kjs/RegExpObject.h
+++ b/JavaScriptCore/kjs/RegExpObject.h
@@ -46,11 +46,11 @@
void setRegExp(PassRefPtr<RegExp> r) { m_regExp = r; }
RegExp* regExp() const { return m_regExp.get(); }
- JSValue* test(ExecState*, const List& args);
- JSValue* exec(ExecState*, const List& args);
+ JSValue* test(ExecState*, const ArgList& args);
+ JSValue* exec(ExecState*, const ArgList& args);
virtual CallType getCallData(CallData&);
- virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);
+ virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&);
bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&);
JSValue* getValueProperty(ExecState*, int token) const;
@@ -63,7 +63,7 @@
void setLastIndex(double lastIndex) { m_lastIndex = lastIndex; }
private:
- bool match(ExecState*, const List& args);
+ bool match(ExecState*, const ArgList& args);
RefPtr<RegExp> m_regExp;
double m_lastIndex;
@@ -77,9 +77,9 @@
RegExpConstructor(ExecState*, FunctionPrototype*, RegExpPrototype*);
virtual ConstructType getConstructData(ConstructData&);
- virtual JSObject* construct(ExecState*, const List&);
+ virtual JSObject* construct(ExecState*, const ArgList&);
- virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);
+ virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&);
virtual void put(ExecState*, const Identifier&, JSValue*);
void putValueProperty(ExecState*, int token, JSValue*);
diff --git a/JavaScriptCore/kjs/Shell.cpp b/JavaScriptCore/kjs/Shell.cpp
index 5f4230f..90082c9 100644
--- a/JavaScriptCore/kjs/Shell.cpp
+++ b/JavaScriptCore/kjs/Shell.cpp
@@ -71,14 +71,14 @@
static bool fillBufferWithContentsOfFile(const UString& fileName, Vector<char>& buffer);
-static JSValue* functionPrint(ExecState*, JSObject*, const List&);
-static JSValue* functionDebug(ExecState*, JSObject*, const List&);
-static JSValue* functionGC(ExecState*, JSObject*, const List&);
-static JSValue* functionVersion(ExecState*, JSObject*, const List&);
-static JSValue* functionRun(ExecState*, JSObject*, const List&);
-static JSValue* functionLoad(ExecState*, JSObject*, const List&);
-static JSValue* functionReadline(ExecState*, JSObject*, const List&);
-static JSValue* functionQuit(ExecState*, JSObject*, const List&);
+static JSValue* functionPrint(ExecState*, JSObject*, const ArgList&);
+static JSValue* functionDebug(ExecState*, JSObject*, const ArgList&);
+static JSValue* functionGC(ExecState*, JSObject*, const ArgList&);
+static JSValue* functionVersion(ExecState*, JSObject*, const ArgList&);
+static JSValue* functionRun(ExecState*, JSObject*, const ArgList&);
+static JSValue* functionLoad(ExecState*, JSObject*, const ArgList&);
+static JSValue* functionReadline(ExecState*, JSObject*, const ArgList&);
+static JSValue* functionQuit(ExecState*, JSObject*, const ArgList&);
struct Options {
Options()
@@ -180,7 +180,7 @@
Interpreter::setShouldPrintExceptions(true);
}
-JSValue* functionPrint(ExecState* exec, JSObject*, const List& args)
+JSValue* functionPrint(ExecState* exec, JSObject*, const ArgList& args)
{
for (unsigned i = 0; i < args.size(); ++i) {
if (i != 0)
@@ -194,27 +194,27 @@
return jsUndefined();
}
-JSValue* functionDebug(ExecState* exec, JSObject*, const List& args)
+JSValue* functionDebug(ExecState* exec, JSObject*, const ArgList& args)
{
fprintf(stderr, "--> %s\n", args[0]->toString(exec).UTF8String().c_str());
return jsUndefined();
}
-JSValue* functionGC(ExecState*, JSObject*, const List&)
+JSValue* functionGC(ExecState*, JSObject*, const ArgList&)
{
JSLock lock;
Collector::collect();
return jsUndefined();
}
-JSValue* functionVersion(ExecState*, JSObject*, const List&)
+JSValue* functionVersion(ExecState*, JSObject*, const ArgList&)
{
// We need this function for compatibility with the Mozilla JS tests but for now
// we don't actually do any version-specific handling
return jsUndefined();
}
-JSValue* functionRun(ExecState* exec, JSObject*, const List& args)
+JSValue* functionRun(ExecState* exec, JSObject*, const ArgList& args)
{
StopWatch stopWatch;
UString fileName = args[0]->toString(exec);
@@ -231,7 +231,7 @@
return jsNumber(stopWatch.getElapsedMS());
}
-JSValue* functionLoad(ExecState* exec, JSObject*, const List& args)
+JSValue* functionLoad(ExecState* exec, JSObject*, const ArgList& args)
{
UString fileName = args[0]->toString(exec);
Vector<char> script;
@@ -244,7 +244,7 @@
return jsUndefined();
}
-JSValue* functionReadline(ExecState*, JSObject*, const List&)
+JSValue* functionReadline(ExecState*, JSObject*, const ArgList&)
{
Vector<char, 256> line;
int c;
@@ -258,7 +258,7 @@
return jsString(line.data());
}
-JSValue* functionQuit(ExecState*, JSObject*, const List&)
+JSValue* functionQuit(ExecState*, JSObject*, const ArgList&)
{
exit(0);
#if !COMPILER(MSVC)
diff --git a/JavaScriptCore/kjs/collector.cpp b/JavaScriptCore/kjs/collector.cpp
index 1a6bbe9..a91ecc6 100644
--- a/JavaScriptCore/kjs/collector.cpp
+++ b/JavaScriptCore/kjs/collector.cpp
@@ -88,7 +88,7 @@
static CollectorHeap numberHeap = { 0, 0, 0, 0, 0, 0, 0, NoOperation };
size_t Collector::mainThreadOnlyObjectCount = 0;
-HashSet<List*>* Collector::m_markListSet;
+HashSet<ArgList*>* Collector::m_markListSet;
static CollectorBlock* allocateBlock()
{
@@ -957,7 +957,7 @@
markStackObjectsConservatively();
markProtectedObjects();
if (m_markListSet && m_markListSet->size())
- List::markLists(*m_markListSet);
+ ArgList::markLists(*m_markListSet);
#if USE(MULTIPLE_THREADS)
if (!currentThreadIsMainThread)
markMainThreadOnlyObjects();
diff --git a/JavaScriptCore/kjs/collector.h b/JavaScriptCore/kjs/collector.h
index d6c3288..6370493 100644
--- a/JavaScriptCore/kjs/collector.h
+++ b/JavaScriptCore/kjs/collector.h
@@ -31,7 +31,7 @@
class CollectorBlock;
class JSCell;
class JSValue;
- class List;
+ class ArgList;
class Collector {
public:
@@ -78,7 +78,7 @@
static void markStackObjectsConservatively(void* start, void* end);
- static HashSet<List*>& markListSet() { if (!m_markListSet) m_markListSet = new HashSet<List*>; return *m_markListSet; }
+ static HashSet<ArgList*>& markListSet() { if (!m_markListSet) m_markListSet = new HashSet<ArgList*>; return *m_markListSet; }
private:
template <Collector::HeapType heapType> static void* heapAllocate(size_t s);
@@ -100,7 +100,7 @@
static size_t mainThreadOnlyObjectCount;
static bool memoryFull;
- static HashSet<List*>* m_markListSet;
+ static HashSet<ArgList*>* m_markListSet;
};
// tunable parameters
diff --git a/JavaScriptCore/kjs/date_object.cpp b/JavaScriptCore/kjs/date_object.cpp
index 9485446..0498bb5 100644
--- a/JavaScriptCore/kjs/date_object.cpp
+++ b/JavaScriptCore/kjs/date_object.cpp
@@ -86,7 +86,7 @@
public:
DateFunction(ExecState *, FunctionPrototype *, int i, int len, const Identifier& );
- virtual JSValue *callAsFunction(ExecState *, JSObject *thisObj, const List &args);
+ virtual JSValue *callAsFunction(ExecState *, JSObject *thisObj, const ArgList &args);
enum { Parse, UTC, Now };
@@ -116,7 +116,7 @@
return defaultStyle;
}
-static UString formatLocaleDate(ExecState *exec, double time, bool includeDate, bool includeTime, const List &args)
+static UString formatLocaleDate(ExecState *exec, double time, bool includeDate, bool includeTime, const ArgList &args)
{
CFDateFormatterStyle dateStyle = (includeDate ? kCFDateFormatterLongStyle : kCFDateFormatterNoStyle);
CFDateFormatterStyle timeStyle = (includeTime ? kCFDateFormatterLongStyle : kCFDateFormatterNoStyle);
@@ -253,7 +253,7 @@
// ms (representing milliseconds) and t (representing the rest of the date structure) appropriately.
//
// Format of member function: f([hour,] [min,] [sec,] [ms])
-static bool fillStructuresUsingTimeArgs(ExecState* exec, const List& args, int maxArgs, double* ms, GregorianDateTime* t)
+static bool fillStructuresUsingTimeArgs(ExecState* exec, const ArgList& args, int maxArgs, double* ms, GregorianDateTime* t)
{
double milliseconds = 0;
bool ok = true;
@@ -301,7 +301,7 @@
// ms (representing milliseconds) and t (representing the rest of the date structure) appropriately.
//
// Format of member function: f([years,] [months,] [days])
-static bool fillStructuresUsingDateArgs(ExecState *exec, const List &args, int maxArgs, double *ms, GregorianDateTime *t)
+static bool fillStructuresUsingDateArgs(ExecState *exec, const ArgList &args, int maxArgs, double *ms, GregorianDateTime *t)
{
int idx = 0;
bool ok = true;
@@ -501,7 +501,7 @@
}
// ECMA 15.9.3
-JSObject *DateConstructor::construct(ExecState *exec, const List &args)
+JSObject *DateConstructor::construct(ExecState *exec, const ArgList &args)
{
int numArgs = args.size();
@@ -549,7 +549,7 @@
}
// ECMA 15.9.2
-JSValue *DateConstructor::callAsFunction(ExecState * /*exec*/, JSObject * /*thisObj*/, const List &/*args*/)
+JSValue *DateConstructor::callAsFunction(ExecState * /*exec*/, JSObject * /*thisObj*/, const ArgList &/*args*/)
{
time_t localTime = time(0);
tm localTM;
@@ -567,7 +567,7 @@
}
// ECMA 15.9.4.2 - 3
-JSValue *DateFunction::callAsFunction(ExecState* exec, JSObject*, const List& args)
+JSValue *DateFunction::callAsFunction(ExecState* exec, JSObject*, const ArgList& args)
{
if (id == Parse)
return jsNumber(parseDate(args[0]->toString(exec)));
@@ -978,7 +978,7 @@
// Functions
-JSValue* dateProtoFuncToString(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncToString(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -996,7 +996,7 @@
return jsString(formatDate(t) + " " + formatTime(t, utc));
}
-JSValue* dateProtoFuncToUTCString(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncToUTCString(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1014,7 +1014,7 @@
return jsString(formatDateUTCVariant(t) + " " + formatTime(t, utc));
}
-JSValue* dateProtoFuncToDateString(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncToDateString(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1032,7 +1032,7 @@
return jsString(formatDate(t));
}
-JSValue* dateProtoFuncToTimeString(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncToTimeString(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1050,7 +1050,7 @@
return jsString(formatTime(t, utc));
}
-JSValue* dateProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* dateProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1075,7 +1075,7 @@
#endif
}
-JSValue* dateProtoFuncToLocaleDateString(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* dateProtoFuncToLocaleDateString(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1100,7 +1100,7 @@
#endif
}
-JSValue* dateProtoFuncToLocaleTimeString(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* dateProtoFuncToLocaleTimeString(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1125,7 +1125,7 @@
#endif
}
-JSValue* dateProtoFuncValueOf(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncValueOf(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1139,7 +1139,7 @@
return jsNumber(milli);
}
-JSValue* dateProtoFuncGetTime(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncGetTime(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1153,7 +1153,7 @@
return jsNumber(milli);
}
-JSValue* dateProtoFuncGetFullYear(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncGetFullYear(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1171,7 +1171,7 @@
return jsNumber(1900 + t.year);
}
-JSValue* dateProtoFuncGetUTCFullYear(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncGetUTCFullYear(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1189,7 +1189,7 @@
return jsNumber(1900 + t.year);
}
-JSValue* dateProtoFuncToGMTString(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncToGMTString(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1207,7 +1207,7 @@
return jsString(formatDateUTCVariant(t) + " " + formatTime(t, utc));
}
-JSValue* dateProtoFuncGetMonth(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncGetMonth(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1225,7 +1225,7 @@
return jsNumber(t.month);
}
-JSValue* dateProtoFuncGetUTCMonth(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncGetUTCMonth(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1243,7 +1243,7 @@
return jsNumber(t.month);
}
-JSValue* dateProtoFuncGetDate(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncGetDate(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1261,7 +1261,7 @@
return jsNumber(t.monthDay);
}
-JSValue* dateProtoFuncGetUTCDate(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncGetUTCDate(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1279,7 +1279,7 @@
return jsNumber(t.monthDay);
}
-JSValue* dateProtoFuncGetDay(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncGetDay(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1297,7 +1297,7 @@
return jsNumber(t.weekDay);
}
-JSValue* dateProtoFuncGetUTCDay(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncGetUTCDay(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1315,7 +1315,7 @@
return jsNumber(t.weekDay);
}
-JSValue* dateProtoFuncGetHours(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncGetHours(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1333,7 +1333,7 @@
return jsNumber(t.hour);
}
-JSValue* dateProtoFuncGetUTCHours(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncGetUTCHours(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1351,7 +1351,7 @@
return jsNumber(t.hour);
}
-JSValue* dateProtoFuncGetMinutes(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncGetMinutes(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1369,7 +1369,7 @@
return jsNumber(t.minute);
}
-JSValue* dateProtoFuncGetUTCMinutes(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncGetUTCMinutes(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1387,7 +1387,7 @@
return jsNumber(t.minute);
}
-JSValue* dateProtoFuncGetSeconds(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncGetSeconds(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1405,7 +1405,7 @@
return jsNumber(t.second);
}
-JSValue* dateProtoFuncGetUTCSeconds(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncGetUTCSeconds(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1423,7 +1423,7 @@
return jsNumber(t.second);
}
-JSValue* dateProtoFuncGetMilliSeconds(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncGetMilliSeconds(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1439,7 +1439,7 @@
return jsNumber(ms);
}
-JSValue* dateProtoFuncGetUTCMilliseconds(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncGetUTCMilliseconds(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1455,7 +1455,7 @@
return jsNumber(ms);
}
-JSValue* dateProtoFuncGetTimezoneOffset(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncGetTimezoneOffset(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1473,7 +1473,7 @@
return jsNumber(-gmtoffset(t) / minutesPerHour);
}
-JSValue* dateProtoFuncSetTime(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* dateProtoFuncSetTime(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1486,7 +1486,7 @@
return result;
}
-static JSValue* setNewValueFromTimeArgs(ExecState* exec, JSObject* thisObj, const List& args, int numArgsToUse, bool inputIsUTC)
+static JSValue* setNewValueFromTimeArgs(ExecState* exec, JSObject* thisObj, const ArgList& args, int numArgsToUse, bool inputIsUTC)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1518,7 +1518,7 @@
return result;
}
-static JSValue* setNewValueFromDateArgs(ExecState* exec, JSObject* thisObj, const List& args, int numArgsToUse, bool inputIsUTC)
+static JSValue* setNewValueFromDateArgs(ExecState* exec, JSObject* thisObj, const ArgList& args, int numArgsToUse, bool inputIsUTC)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1556,91 +1556,91 @@
return result;
}
-JSValue* dateProtoFuncSetMilliSeconds(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* dateProtoFuncSetMilliSeconds(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
const bool inputIsUTC = false;
return setNewValueFromTimeArgs(exec, thisObj, args, 1, inputIsUTC);
}
-JSValue* dateProtoFuncSetUTCMilliseconds(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* dateProtoFuncSetUTCMilliseconds(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
const bool inputIsUTC = true;
return setNewValueFromTimeArgs(exec, thisObj, args, 1, inputIsUTC);
}
-JSValue* dateProtoFuncSetSeconds(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* dateProtoFuncSetSeconds(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
const bool inputIsUTC = false;
return setNewValueFromTimeArgs(exec, thisObj, args, 2, inputIsUTC);
}
-JSValue* dateProtoFuncSetUTCSeconds(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* dateProtoFuncSetUTCSeconds(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
const bool inputIsUTC = true;
return setNewValueFromTimeArgs(exec, thisObj, args, 2, inputIsUTC);
}
-JSValue* dateProtoFuncSetMinutes(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* dateProtoFuncSetMinutes(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
const bool inputIsUTC = false;
return setNewValueFromTimeArgs(exec, thisObj, args, 3, inputIsUTC);
}
-JSValue* dateProtoFuncSetUTCMinutes(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* dateProtoFuncSetUTCMinutes(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
const bool inputIsUTC = true;
return setNewValueFromTimeArgs(exec, thisObj, args, 3, inputIsUTC);
}
-JSValue* dateProtoFuncSetHours(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* dateProtoFuncSetHours(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
const bool inputIsUTC = false;
return setNewValueFromTimeArgs(exec, thisObj, args, 4, inputIsUTC);
}
-JSValue* dateProtoFuncSetUTCHours(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* dateProtoFuncSetUTCHours(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
const bool inputIsUTC = true;
return setNewValueFromTimeArgs(exec, thisObj, args, 4, inputIsUTC);
}
-JSValue* dateProtoFuncSetDate(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* dateProtoFuncSetDate(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
const bool inputIsUTC = false;
return setNewValueFromDateArgs(exec, thisObj, args, 1, inputIsUTC);
}
-JSValue* dateProtoFuncSetUTCDate(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* dateProtoFuncSetUTCDate(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
const bool inputIsUTC = true;
return setNewValueFromDateArgs(exec, thisObj, args, 1, inputIsUTC);
}
-JSValue* dateProtoFuncSetMonth(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* dateProtoFuncSetMonth(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
const bool inputIsUTC = false;
return setNewValueFromDateArgs(exec, thisObj, args, 2, inputIsUTC);
}
-JSValue* dateProtoFuncSetUTCMonth(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* dateProtoFuncSetUTCMonth(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
const bool inputIsUTC = true;
return setNewValueFromDateArgs(exec, thisObj, args, 2, inputIsUTC);
}
-JSValue* dateProtoFuncSetFullYear(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* dateProtoFuncSetFullYear(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
const bool inputIsUTC = false;
return setNewValueFromDateArgs(exec, thisObj, args, 3, inputIsUTC);
}
-JSValue* dateProtoFuncSetUTCFullYear(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* dateProtoFuncSetUTCFullYear(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
const bool inputIsUTC = true;
return setNewValueFromDateArgs(exec, thisObj, args, 3, inputIsUTC);
}
-JSValue* dateProtoFuncSetYear(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* dateProtoFuncSetYear(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
@@ -1683,7 +1683,7 @@
return result;
}
-JSValue* dateProtoFuncGetYear(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* dateProtoFuncGetYear(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&DateInstance::info))
return throwError(exec, TypeError);
diff --git a/JavaScriptCore/kjs/date_object.h b/JavaScriptCore/kjs/date_object.h
index f216139..be31b14 100644
--- a/JavaScriptCore/kjs/date_object.h
+++ b/JavaScriptCore/kjs/date_object.h
@@ -75,50 +75,50 @@
// Non-normative properties (Appendix B)
// GetYear, SetYear, ToGMTString
- JSValue* dateProtoFuncToString(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncToUTCString(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncToDateString(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncToTimeString(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncToLocaleString(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncToLocaleDateString(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncToLocaleTimeString(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncValueOf(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncGetTime(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncGetFullYear(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncGetUTCFullYear(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncToGMTString(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncGetMonth(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncGetUTCMonth(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncGetDate(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncGetUTCDate(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncGetDay(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncGetUTCDay(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncGetHours(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncGetUTCHours(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncGetMinutes(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncGetUTCMinutes(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncGetSeconds(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncGetUTCSeconds(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncGetMilliSeconds(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncGetUTCMilliseconds(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncGetTimezoneOffset(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncSetTime(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncSetMilliSeconds(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncSetUTCMilliseconds(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncSetSeconds(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncSetUTCSeconds(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncSetMinutes(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncSetUTCMinutes(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncSetHours(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncSetUTCHours(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncSetDate(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncSetUTCDate(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncSetMonth(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncSetUTCMonth(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncSetFullYear(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncSetUTCFullYear(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncSetYear(ExecState*, JSObject*, const List&);
- JSValue* dateProtoFuncGetYear(ExecState*, JSObject*, const List&);
+ JSValue* dateProtoFuncToString(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncToUTCString(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncToDateString(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncToTimeString(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncToLocaleString(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncToLocaleDateString(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncToLocaleTimeString(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncValueOf(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncGetTime(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncGetFullYear(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncGetUTCFullYear(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncToGMTString(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncGetMonth(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncGetUTCMonth(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncGetDate(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncGetUTCDate(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncGetDay(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncGetUTCDay(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncGetHours(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncGetUTCHours(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncGetMinutes(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncGetUTCMinutes(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncGetSeconds(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncGetUTCSeconds(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncGetMilliSeconds(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncGetUTCMilliseconds(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncGetTimezoneOffset(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncSetTime(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncSetMilliSeconds(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncSetUTCMilliseconds(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncSetSeconds(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncSetUTCSeconds(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncSetMinutes(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncSetUTCMinutes(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncSetHours(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncSetUTCHours(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncSetDate(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncSetUTCDate(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncSetMonth(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncSetUTCMonth(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncSetFullYear(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncSetUTCFullYear(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncSetYear(ExecState*, JSObject*, const ArgList&);
+ JSValue* dateProtoFuncGetYear(ExecState*, JSObject*, const ArgList&);
/**
* @internal
@@ -130,11 +130,11 @@
DateConstructor(ExecState*, FunctionPrototype*, DatePrototype*);
virtual ConstructType getConstructData(ConstructData&);
- virtual JSObject* construct(ExecState*, const List& args);
+ virtual JSObject* construct(ExecState*, const ArgList& args);
- virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const List& args);
+ virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const ArgList& args);
- JSObject* construct(const List&);
+ JSObject* construct(const ArgList&);
};
} // namespace
diff --git a/JavaScriptCore/kjs/debugger.h b/JavaScriptCore/kjs/debugger.h
index d81c53c..550c77c 100644
--- a/JavaScriptCore/kjs/debugger.h
+++ b/JavaScriptCore/kjs/debugger.h
@@ -33,7 +33,7 @@
class JSGlobalObject;
class JSObject;
class JSValue;
- class List;
+ class ArgList;
class SourceProvider;
class UString;
diff --git a/JavaScriptCore/kjs/error_object.cpp b/JavaScriptCore/kjs/error_object.cpp
index 04f8dd8..c087ae3 100644
--- a/JavaScriptCore/kjs/error_object.cpp
+++ b/JavaScriptCore/kjs/error_object.cpp
@@ -52,7 +52,7 @@
putDirectFunction(new PrototypeFunction(exec, functionPrototype, 0, exec->propertyNames().toString, errorProtoFuncToString), DontEnum);
}
-JSValue* errorProtoFuncToString(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* errorProtoFuncToString(ExecState* exec, JSObject* thisObj, const ArgList&)
{
UString s = "Error";
@@ -84,7 +84,7 @@
}
// ECMA 15.9.3
-JSObject* ErrorConstructor::construct(ExecState* exec, const List& args)
+JSObject* ErrorConstructor::construct(ExecState* exec, const ArgList& args)
{
JSObject* proto = static_cast<JSObject*>(exec->lexicalGlobalObject()->errorPrototype());
JSObject* imp = new ErrorInstance(proto);
@@ -97,7 +97,7 @@
}
// ECMA 15.9.2
-JSValue* ErrorConstructor::callAsFunction(ExecState* exec, JSObject* /*thisObj*/, const List& args)
+JSValue* ErrorConstructor::callAsFunction(ExecState* exec, JSObject* /*thisObj*/, const ArgList& args)
{
// "Error()" gives the sames result as "new Error()"
return construct(exec, args);
@@ -129,7 +129,7 @@
return ConstructTypeNative;
}
-JSObject* NativeErrorConstructor::construct(ExecState* exec, const List& args)
+JSObject* NativeErrorConstructor::construct(ExecState* exec, const ArgList& args)
{
JSObject* imp = new ErrorInstance(proto);
JSObject* obj(imp);
@@ -138,7 +138,7 @@
return obj;
}
-JSValue* NativeErrorConstructor::callAsFunction(ExecState* exec, JSObject*, const List& args)
+JSValue* NativeErrorConstructor::callAsFunction(ExecState* exec, JSObject*, const ArgList& args)
{
return construct(exec, args);
}
diff --git a/JavaScriptCore/kjs/error_object.h b/JavaScriptCore/kjs/error_object.h
index 41f8c5f..4251a22 100644
--- a/JavaScriptCore/kjs/error_object.h
+++ b/JavaScriptCore/kjs/error_object.h
@@ -38,16 +38,16 @@
ErrorPrototype(ExecState*, ObjectPrototype*, FunctionPrototype*);
};
- JSValue* errorProtoFuncToString(ExecState*, JSObject*, const List&);
+ JSValue* errorProtoFuncToString(ExecState*, JSObject*, const ArgList&);
class ErrorConstructor : public InternalFunction {
public:
ErrorConstructor(ExecState*, FunctionPrototype*, ErrorPrototype*);
virtual ConstructType getConstructData(ConstructData&);
- virtual JSObject* construct(ExecState*, const List&);
+ virtual JSObject* construct(ExecState*, const ArgList&);
- virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);
+ virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&);
};
class NativeErrorPrototype : public JSObject {
@@ -60,9 +60,9 @@
NativeErrorConstructor(ExecState*, FunctionPrototype*, NativeErrorPrototype*);
virtual ConstructType getConstructData(ConstructData&);
- virtual JSObject* construct(ExecState*, const List&);
+ virtual JSObject* construct(ExecState*, const ArgList&);
- virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);
+ virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&);
virtual void mark();
diff --git a/JavaScriptCore/kjs/internal.cpp b/JavaScriptCore/kjs/internal.cpp
index 69fffa6..902757f 100644
--- a/JavaScriptCore/kjs/internal.cpp
+++ b/JavaScriptCore/kjs/internal.cpp
@@ -177,14 +177,14 @@
JSObject *JSNumberCell::toObject(ExecState *exec) const
{
- List args;
+ ArgList args;
args.append(const_cast<JSNumberCell*>(this));
return static_cast<JSObject *>(exec->lexicalGlobalObject()->numberConstructor()->construct(exec,args));
}
JSObject* JSNumberCell::toThisObject(ExecState* exec) const
{
- List args;
+ ArgList args;
args.append(const_cast<JSNumberCell*>(this));
return static_cast<JSObject*>(exec->lexicalGlobalObject()->numberConstructor()->construct(exec, args));
}
diff --git a/JavaScriptCore/kjs/list.cpp b/JavaScriptCore/kjs/list.cpp
index 9b9a8f0..c86e6d0 100644
--- a/JavaScriptCore/kjs/list.cpp
+++ b/JavaScriptCore/kjs/list.cpp
@@ -25,7 +25,7 @@
namespace KJS {
-void List::getSlice(int startIndex, List& result) const
+void ArgList::getSlice(int startIndex, ArgList& result) const
{
ASSERT(!result.m_isReadOnly);
@@ -35,11 +35,11 @@
result.m_bufferSlot = result.m_vector.dataSlot();
}
-void List::markLists(ListSet& markSet)
+void ArgList::markLists(ListSet& markSet)
{
ListSet::iterator end = markSet.end();
for (ListSet::iterator it = markSet.begin(); it != end; ++it) {
- List* list = *it;
+ ArgList* list = *it;
iterator end2 = list->end();
for (iterator it2 = list->begin(); it2 != end2; ++it2) {
@@ -50,7 +50,7 @@
}
}
-void List::slowAppend(JSValue* v)
+void ArgList::slowAppend(JSValue* v)
{
// As long as our size stays within our Vector's inline
// capacity, all our values are allocated on the stack, and
diff --git a/JavaScriptCore/kjs/list.h b/JavaScriptCore/kjs/list.h
index 7e83921..81f2614 100644
--- a/JavaScriptCore/kjs/list.h
+++ b/JavaScriptCore/kjs/list.h
@@ -30,13 +30,13 @@
namespace KJS {
class JSValue;
- class List;
+ class ArgList;
- class List : Noncopyable {
+ class ArgList : Noncopyable {
private:
static const unsigned inlineCapacity = 8;
typedef Vector<JSValue*, inlineCapacity> VectorType;
- typedef HashSet<List*> ListSet;
+ typedef HashSet<ArgList*> ListSet;
public:
typedef VectorType::iterator iterator;
@@ -44,7 +44,7 @@
// Constructor for a read-write list, to which you may append values.
// FIXME: Remove all clients of this API, then remove this API.
- List()
+ ArgList()
: m_markSet(0)
#ifndef NDEBUG
, m_isReadOnly(false)
@@ -56,7 +56,7 @@
}
// Constructor for a read-only list whose data has already been allocated elsewhere.
- List(JSValue*** bufferSlot, size_t offset, size_t size)
+ ArgList(JSValue*** bufferSlot, size_t offset, size_t size)
: m_bufferSlot(bufferSlot)
, m_offset(offset)
, m_size(size)
@@ -67,7 +67,7 @@
{
}
- ~List()
+ ~ArgList()
{
if (m_markSet)
m_markSet->remove(this);
@@ -106,7 +106,7 @@
}
}
- void getSlice(int startIndex, List& result) const;
+ void getSlice(int startIndex, ArgList& result) const;
iterator begin() { return buffer(); }
iterator end() { return buffer() + m_size; }
diff --git a/JavaScriptCore/kjs/object_object.cpp b/JavaScriptCore/kjs/object_object.cpp
index 0ce754e..c753949 100644
--- a/JavaScriptCore/kjs/object_object.cpp
+++ b/JavaScriptCore/kjs/object_object.cpp
@@ -30,15 +30,15 @@
// ------------------------------ ObjectPrototype --------------------------------
-static JSValue* objectProtoFuncValueOf(ExecState*, JSObject*, const List&);
-static JSValue* objectProtoFuncHasOwnProperty(ExecState*, JSObject*, const List&);
-static JSValue* objectProtoFuncIsPrototypeOf(ExecState*, JSObject*, const List&);
-static JSValue* objectProtoFuncDefineGetter(ExecState*, JSObject*, const List&);
-static JSValue* objectProtoFuncDefineSetter(ExecState*, JSObject*, const List&);
-static JSValue* objectProtoFuncLookupGetter(ExecState*, JSObject*, const List&);
-static JSValue* objectProtoFuncLookupSetter(ExecState*, JSObject*, const List&);
-static JSValue* objectProtoFuncPropertyIsEnumerable(ExecState*, JSObject*, const List&);
-static JSValue* objectProtoFuncToLocaleString(ExecState*, JSObject*, const List&);
+static JSValue* objectProtoFuncValueOf(ExecState*, JSObject*, const ArgList&);
+static JSValue* objectProtoFuncHasOwnProperty(ExecState*, JSObject*, const ArgList&);
+static JSValue* objectProtoFuncIsPrototypeOf(ExecState*, JSObject*, const ArgList&);
+static JSValue* objectProtoFuncDefineGetter(ExecState*, JSObject*, const ArgList&);
+static JSValue* objectProtoFuncDefineSetter(ExecState*, JSObject*, const ArgList&);
+static JSValue* objectProtoFuncLookupGetter(ExecState*, JSObject*, const ArgList&);
+static JSValue* objectProtoFuncLookupSetter(ExecState*, JSObject*, const ArgList&);
+static JSValue* objectProtoFuncPropertyIsEnumerable(ExecState*, JSObject*, const ArgList&);
+static JSValue* objectProtoFuncToLocaleString(ExecState*, JSObject*, const ArgList&);
ObjectPrototype::ObjectPrototype(ExecState* exec, FunctionPrototype* functionPrototype)
: JSObject() // [[Prototype]] is null
@@ -62,17 +62,17 @@
// ECMA 15.2.4.2, 15.2.4.4, 15.2.4.5, 15.2.4.7
-JSValue* objectProtoFuncValueOf(ExecState*, JSObject* thisObj, const List&)
+JSValue* objectProtoFuncValueOf(ExecState*, JSObject* thisObj, const ArgList&)
{
return thisObj;
}
-JSValue* objectProtoFuncHasOwnProperty(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* objectProtoFuncHasOwnProperty(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
return jsBoolean(thisObj->hasOwnProperty(exec, Identifier(args[0]->toString(exec))));
}
-JSValue* objectProtoFuncIsPrototypeOf(ExecState*, JSObject* thisObj, const List& args)
+JSValue* objectProtoFuncIsPrototypeOf(ExecState*, JSObject* thisObj, const ArgList& args)
{
if (!args[0]->isObject())
return jsBoolean(false);
@@ -88,7 +88,7 @@
}
}
-JSValue* objectProtoFuncDefineGetter(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* objectProtoFuncDefineGetter(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
if (!args[1]->isObject() || !static_cast<JSObject*>(args[1])->implementsCall())
return throwError(exec, SyntaxError, "invalid getter usage");
@@ -97,7 +97,7 @@
return jsUndefined();
}
-JSValue* objectProtoFuncDefineSetter(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* objectProtoFuncDefineSetter(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
if (!args[1]->isObject() || !static_cast<JSObject*>(args[1])->implementsCall())
return throwError(exec, SyntaxError, "invalid setter usage");
@@ -106,27 +106,27 @@
return jsUndefined();
}
-JSValue* objectProtoFuncLookupGetter(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* objectProtoFuncLookupGetter(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
return thisObj->lookupGetter(exec, Identifier(args[0]->toString(exec)));
}
-JSValue* objectProtoFuncLookupSetter(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* objectProtoFuncLookupSetter(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
return thisObj->lookupSetter(exec, Identifier(args[0]->toString(exec)));
}
-JSValue* objectProtoFuncPropertyIsEnumerable(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* objectProtoFuncPropertyIsEnumerable(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
return jsBoolean(thisObj->propertyIsEnumerable(exec, Identifier(args[0]->toString(exec))));
}
-JSValue* objectProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* objectProtoFuncToLocaleString(ExecState* exec, JSObject* thisObj, const ArgList&)
{
return jsString(thisObj->toString(exec));
}
-JSValue* objectProtoFuncToString(ExecState*, JSObject* thisObj, const List&)
+JSValue* objectProtoFuncToString(ExecState*, JSObject* thisObj, const ArgList&)
{
return jsString("[object " + thisObj->className() + "]");
}
@@ -149,7 +149,7 @@
}
// ECMA 15.2.2
-JSObject* ObjectConstructor::construct(ExecState* exec, const List& args)
+JSObject* ObjectConstructor::construct(ExecState* exec, const ArgList& args)
{
JSValue* arg = args[0];
switch (arg->type()) {
@@ -167,7 +167,7 @@
}
}
-JSValue* ObjectConstructor::callAsFunction(ExecState* exec, JSObject* /*thisObj*/, const List &args)
+JSValue* ObjectConstructor::callAsFunction(ExecState* exec, JSObject* /*thisObj*/, const ArgList &args)
{
return construct(exec, args);
}
diff --git a/JavaScriptCore/kjs/object_object.h b/JavaScriptCore/kjs/object_object.h
index bdd13bb..ebb4052 100644
--- a/JavaScriptCore/kjs/object_object.h
+++ b/JavaScriptCore/kjs/object_object.h
@@ -36,7 +36,7 @@
ObjectPrototype(ExecState*, FunctionPrototype*);
};
- JSValue* objectProtoFuncToString(ExecState*, JSObject*, const List&);
+ JSValue* objectProtoFuncToString(ExecState*, JSObject*, const ArgList&);
/**
* @internal
@@ -48,9 +48,9 @@
ObjectConstructor(ExecState*, ObjectPrototype*, FunctionPrototype*);
virtual ConstructType getConstructData(ConstructData&);
- virtual JSObject* construct(ExecState*, const List&);
+ virtual JSObject* construct(ExecState*, const ArgList&);
- virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);
+ virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&);
};
} // namespace KJS
diff --git a/JavaScriptCore/kjs/string_object.cpp b/JavaScriptCore/kjs/string_object.cpp
index 5407989..08406de 100644
--- a/JavaScriptCore/kjs/string_object.cpp
+++ b/JavaScriptCore/kjs/string_object.cpp
@@ -305,7 +305,7 @@
UString substitutedReplacement;
if (replacementFunction) {
int completeMatchStart = ovector[0];
- List args;
+ ArgList args;
for (unsigned i = 0; i < reg->numSubpatterns() + 1; i++) {
int matchStart = ovector[i * 2];
@@ -363,7 +363,7 @@
return sourceVal;
if (replacementFunction) {
- List args;
+ ArgList args;
args.append(jsString(source.substr(matchPos, matchLen)));
args.append(jsNumber(matchPos));
@@ -375,7 +375,7 @@
return jsString(source.substr(0, matchPos) + replacementString + source.substr(matchPos + matchLen));
}
-JSValue* stringProtoFuncToString(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* stringProtoFuncToString(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&StringObject::info))
return throwError(exec, TypeError);
@@ -383,7 +383,7 @@
return static_cast<StringObject*>(thisObj)->internalValue();
}
-JSValue* stringProtoFuncValueOf(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* stringProtoFuncValueOf(ExecState* exec, JSObject* thisObj, const ArgList&)
{
if (!thisObj->inherits(&StringObject::info))
return throwError(exec, TypeError);
@@ -391,7 +391,7 @@
return static_cast<StringObject*>(thisObj)->internalValue();
}
-JSValue* stringProtoFuncCharAt(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* stringProtoFuncCharAt(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
@@ -407,7 +407,7 @@
return jsString(u);
}
-JSValue* stringProtoFuncCharCodeAt(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* stringProtoFuncCharCodeAt(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
@@ -424,19 +424,19 @@
return result;
}
-JSValue* stringProtoFuncConcat(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* stringProtoFuncConcat(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
- List::const_iterator end = args.end();
- for (List::const_iterator it = args.begin(); it != end; ++it) {
+ ArgList::const_iterator end = args.end();
+ for (ArgList::const_iterator it = args.begin(); it != end; ++it) {
s += (*it)->toString(exec);
}
return jsString(s);
}
-JSValue* stringProtoFuncIndexOf(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* stringProtoFuncIndexOf(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
@@ -453,7 +453,7 @@
return jsNumber(s.find(u2, static_cast<int>(dpos)));
}
-JSValue* stringProtoFuncLastIndexOf(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* stringProtoFuncLastIndexOf(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
@@ -471,7 +471,7 @@
return jsNumber(s.rfind(u2, static_cast<int>(dpos)));
}
-JSValue* stringProtoFuncMatch(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* stringProtoFuncMatch(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
@@ -504,7 +504,7 @@
result = regExpObj->arrayOfMatches(exec);
} else {
// return array of matches
- List list;
+ ArgList list;
int lastIndex = 0;
while (pos >= 0) {
list.append(jsString(u.substr(pos, matchLength)));
@@ -526,7 +526,7 @@
return result;
}
-JSValue* stringProtoFuncSearch(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* stringProtoFuncSearch(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
@@ -552,7 +552,7 @@
return jsNumber(pos);
}
-JSValue* stringProtoFuncReplace(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* stringProtoFuncReplace(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
@@ -567,7 +567,7 @@
return replace(exec, sVal, a0, a1);
}
-JSValue* stringProtoFuncSlice(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* stringProtoFuncSlice(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
@@ -592,7 +592,7 @@
return jsString("");
}
-JSValue* stringProtoFuncSplit(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* stringProtoFuncSplit(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
@@ -662,7 +662,7 @@
return result;
}
-JSValue* stringProtoFuncSubstr(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* stringProtoFuncSubstr(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
@@ -687,7 +687,7 @@
return jsString(s.substr(static_cast<int>(start), static_cast<int>(length)));
}
-JSValue* stringProtoFuncSubstring(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* stringProtoFuncSubstring(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
@@ -720,7 +720,7 @@
return jsString(s.substr((int)start, (int)end-(int)start));
}
-JSValue* stringProtoFuncToLowerCase(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* stringProtoFuncToLowerCase(ExecState* exec, JSObject* thisObj, const ArgList&)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
@@ -745,7 +745,7 @@
return jsString(UString(buffer.releaseBuffer(), length, false));
}
-JSValue* stringProtoFuncToUpperCase(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* stringProtoFuncToUpperCase(ExecState* exec, JSObject* thisObj, const ArgList&)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
@@ -770,7 +770,7 @@
return jsString(UString(buffer.releaseBuffer(), length, false));
}
-JSValue* stringProtoFuncToLocaleLowerCase(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* stringProtoFuncToLocaleLowerCase(ExecState* exec, JSObject* thisObj, const ArgList&)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
@@ -796,7 +796,7 @@
return jsString(UString(buffer.releaseBuffer(), length, false));
}
-JSValue* stringProtoFuncToLocaleUpperCase(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* stringProtoFuncToLocaleUpperCase(ExecState* exec, JSObject* thisObj, const ArgList&)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
@@ -821,7 +821,7 @@
return jsString(UString(buffer.releaseBuffer(), length, false));
}
-JSValue* stringProtoFuncLocaleCompare(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* stringProtoFuncLocaleCompare(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
if (args.size() < 1)
return jsNumber(0);
@@ -832,70 +832,70 @@
return jsNumber(localeCompare(s, a0->toString(exec)));
}
-JSValue* stringProtoFuncBig(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* stringProtoFuncBig(ExecState* exec, JSObject* thisObj, const ArgList&)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
return jsString("<big>" + s + "</big>");
}
-JSValue* stringProtoFuncSmall(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* stringProtoFuncSmall(ExecState* exec, JSObject* thisObj, const ArgList&)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
return jsString("<small>" + s + "</small>");
}
-JSValue* stringProtoFuncBlink(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* stringProtoFuncBlink(ExecState* exec, JSObject* thisObj, const ArgList&)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
return jsString("<blink>" + s + "</blink>");
}
-JSValue* stringProtoFuncBold(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* stringProtoFuncBold(ExecState* exec, JSObject* thisObj, const ArgList&)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
return jsString("<b>" + s + "</b>");
}
-JSValue* stringProtoFuncFixed(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* stringProtoFuncFixed(ExecState* exec, JSObject* thisObj, const ArgList&)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
return jsString("<tt>" + s + "</tt>");
}
-JSValue* stringProtoFuncItalics(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* stringProtoFuncItalics(ExecState* exec, JSObject* thisObj, const ArgList&)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
return jsString("<i>" + s + "</i>");
}
-JSValue* stringProtoFuncStrike(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* stringProtoFuncStrike(ExecState* exec, JSObject* thisObj, const ArgList&)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
return jsString("<strike>" + s + "</strike>");
}
-JSValue* stringProtoFuncSub(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* stringProtoFuncSub(ExecState* exec, JSObject* thisObj, const ArgList&)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
return jsString("<sub>" + s + "</sub>");
}
-JSValue* stringProtoFuncSup(ExecState* exec, JSObject* thisObj, const List&)
+JSValue* stringProtoFuncSup(ExecState* exec, JSObject* thisObj, const ArgList&)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
return jsString("<sup>" + s + "</sup>");
}
-JSValue* stringProtoFuncFontcolor(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* stringProtoFuncFontcolor(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
@@ -903,7 +903,7 @@
return jsString("<font color=\"" + a0->toString(exec) + "\">" + s + "</font>");
}
-JSValue* stringProtoFuncFontsize(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* stringProtoFuncFontsize(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
@@ -911,7 +911,7 @@
return jsString("<font size=\"" + a0->toString(exec) + "\">" + s + "</font>");
}
-JSValue* stringProtoFuncAnchor(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* stringProtoFuncAnchor(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
@@ -919,7 +919,7 @@
return jsString("<a name=\"" + a0->toString(exec) + "\">" + s + "</a>");
}
-JSValue* stringProtoFuncLink(ExecState* exec, JSObject* thisObj, const List& args)
+JSValue* stringProtoFuncLink(ExecState* exec, JSObject* thisObj, const ArgList& args)
{
// This optimizes the common case that thisObj is a StringObject
UString s = thisObj->inherits(&StringObject::info) ? static_cast<StringObject*>(thisObj)->internalValue()->value() : thisObj->toString(exec);
@@ -948,7 +948,7 @@
}
// ECMA 15.5.2
-JSObject *StringConstructor::construct(ExecState *exec, const List &args)
+JSObject *StringConstructor::construct(ExecState *exec, const ArgList &args)
{
JSObject *proto = exec->lexicalGlobalObject()->stringPrototype();
if (args.size() == 0)
@@ -957,7 +957,7 @@
}
// ECMA 15.5.1
-JSValue *StringConstructor::callAsFunction(ExecState *exec, JSObject* /*thisObj*/, const List &args)
+JSValue *StringConstructor::callAsFunction(ExecState *exec, JSObject* /*thisObj*/, const ArgList &args)
{
if (args.isEmpty())
return jsString("");
@@ -976,14 +976,14 @@
putDirect(exec->propertyNames().length, jsNumber(1), DontDelete|ReadOnly|DontEnum);
}
-JSValue *StringConstructorFunction::callAsFunction(ExecState *exec, JSObject* /*thisObj*/, const List &args)
+JSValue *StringConstructorFunction::callAsFunction(ExecState *exec, JSObject* /*thisObj*/, const ArgList &args)
{
UString s;
if (args.size()) {
UChar *buf = static_cast<UChar *>(fastMalloc(args.size() * sizeof(UChar)));
UChar *p = buf;
- List::const_iterator end = args.end();
- for (List::const_iterator it = args.begin(); it != end; ++it) {
+ ArgList::const_iterator end = args.end();
+ for (ArgList::const_iterator it = args.begin(); it != end; ++it) {
unsigned short u = static_cast<unsigned short>((*it)->toUInt32(exec));
*p++ = UChar(u);
}
diff --git a/JavaScriptCore/kjs/string_object.h b/JavaScriptCore/kjs/string_object.h
index 802e7ee..29daca7 100644
--- a/JavaScriptCore/kjs/string_object.h
+++ b/JavaScriptCore/kjs/string_object.h
@@ -83,39 +83,39 @@
* String.prototype object
*/
- JSValue* stringProtoFuncToString(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncValueOf(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncCharAt(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncCharCodeAt(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncConcat(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncIndexOf(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncLastIndexOf(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncMatch(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncReplace(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncSearch(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncSlice(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncSplit(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncSubstr(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncSubstring(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncToLowerCase(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncToUpperCase(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncToLocaleLowerCase(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncToLocaleUpperCase(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncLocaleCompare(ExecState*, JSObject*, const List&);
+ JSValue* stringProtoFuncToString(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncValueOf(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncCharAt(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncCharCodeAt(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncConcat(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncIndexOf(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncLastIndexOf(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncMatch(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncReplace(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncSearch(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncSlice(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncSplit(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncSubstr(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncSubstring(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncToLowerCase(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncToUpperCase(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncToLocaleLowerCase(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncToLocaleUpperCase(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncLocaleCompare(ExecState*, JSObject*, const ArgList&);
- JSValue* stringProtoFuncBig(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncSmall(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncBlink(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncBold(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncFixed(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncItalics(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncStrike(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncSub(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncSup(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncFontcolor(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncFontsize(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncAnchor(ExecState*, JSObject*, const List&);
- JSValue* stringProtoFuncLink(ExecState*, JSObject*, const List&);
+ JSValue* stringProtoFuncBig(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncSmall(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncBlink(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncBold(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncFixed(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncItalics(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncStrike(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncSub(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncSup(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncFontcolor(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncFontsize(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncAnchor(ExecState*, JSObject*, const ArgList&);
+ JSValue* stringProtoFuncLink(ExecState*, JSObject*, const ArgList&);
/**
* @internal
@@ -127,9 +127,9 @@
StringConstructor(ExecState*, FunctionPrototype*, StringPrototype*);
virtual ConstructType getConstructData(ConstructData&);
- virtual JSObject* construct(ExecState*, const List&);
+ virtual JSObject* construct(ExecState*, const ArgList&);
- virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const List& args);
+ virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const ArgList& args);
};
/**
@@ -141,7 +141,7 @@
class StringConstructorFunction : public InternalFunction {
public:
StringConstructorFunction(ExecState*, FunctionPrototype*, const Identifier&);
- virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const List& args);
+ virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const ArgList& args);
};
} // namespace