Commit 80d38f97 authored by darin@apple.com's avatar darin@apple.com

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
parent cbaaa8d7
......@@ -61,7 +61,7 @@ ConstructType JSCallbackConstructor::getConstructData(ConstructData&)
return ConstructTypeNative;
}
JSObject* JSCallbackConstructor::construct(ExecState* exec, const List &args)
JSObject* JSCallbackConstructor::construct(ExecState* exec, const ArgList &args)
{
JSContextRef ctx = toRef(exec);
JSObjectRef thisRef = toRef(this);
......
......@@ -40,7 +40,7 @@ public:
virtual bool implementsHasInstance() const;
virtual ConstructType getConstructData(ConstructData&);
virtual JSObject* construct(ExecState*, const List& args);
virtual JSObject* construct(ExecState*, const ArgList& args);
virtual const ClassInfo *classInfo() const { return &info; }
static const ClassInfo info;
......
......@@ -50,7 +50,7 @@ bool JSCallbackFunction::implementsHasInstance() const {
return false;
}
JSValue* JSCallbackFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const List &args)
JSValue* JSCallbackFunction::callAsFunction(ExecState* exec, JSObject* thisObj, const ArgList &args)
{
JSContextRef execRef = toRef(exec);
JSObjectRef thisRef = toRef(this);
......
......@@ -39,7 +39,7 @@ public:
JSCallbackFunction(ExecState* exec, JSObjectCallAsFunctionCallback callback, const Identifier& name);
virtual bool implementsHasInstance() const;
virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const List &args);
virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const ArgList &args);
virtual const ClassInfo *classInfo() const { return &info; }
static const ClassInfo info;
......
......@@ -54,13 +54,13 @@ public:
virtual bool deleteProperty(ExecState*, unsigned);
virtual ConstructType getConstructData(ConstructData&);
virtual JSObject* construct(ExecState*, const List& args);
virtual JSObject* construct(ExecState*, const ArgList& args);
virtual bool implementsHasInstance() const;
virtual bool hasInstance(ExecState *exec, JSValue *value);
virtual CallType getCallData(CallData&);
virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const List &args);
virtual JSValue* callAsFunction(ExecState*, JSObject* thisObj, const ArgList &args);
virtual void getPropertyNames(ExecState*, PropertyNameArray&);
......
......@@ -247,7 +247,7 @@ ConstructType JSCallbackObject<Base>::getConstructData(ConstructData&)
}
template <class Base>
JSObject* JSCallbackObject<Base>::construct(ExecState* exec, const List& args)
JSObject* JSCallbackObject<Base>::construct(ExecState* exec, const ArgList& args)
{
JSContextRef execRef = toRef(exec);
JSObjectRef thisRef = toRef(this);
......@@ -304,7 +304,7 @@ CallType JSCallbackObject<Base>::getCallData(CallData&)
}
template <class Base>
JSValue* JSCallbackObject<Base>::callAsFunction(ExecState* exec, JSObject* thisObj, const List &args)
JSValue* JSCallbackObject<Base>::callAsFunction(ExecState* exec, JSObject* thisObj, const ArgList &args)
{
JSContextRef execRef = toRef(exec);
JSObjectRef thisRef = toRef(this);
......
......@@ -116,7 +116,7 @@ JSObjectRef JSObjectMakeFunction(JSContextRef ctx, JSStringRef name, unsigned pa
Identifier nameID = name ? Identifier(toJS(name)) : Identifier("anonymous");
List args;
ArgList args;
for (unsigned i = 0; i < parameterCount; i++)
args.append(jsString(UString(toJS(parameterNames[i]))));
args.append(jsString(UString(bodyRep)));
......@@ -281,7 +281,7 @@ JSValueRef JSObjectCallAsFunction(JSContextRef ctx, JSObjectRef object, JSObject
if (!jsThisObject)
jsThisObject = exec->globalThisValue();
List argList;
ArgList argList;
for (size_t i = 0; i < argumentCount; i++)
argList.append(toJS(arguments[i]));
......@@ -308,7 +308,7 @@ JSObjectRef JSObjectCallAsConstructor(JSContextRef ctx, JSObjectRef object, size
ExecState* exec = toJS(ctx);
JSObject* jsObject = toJS(object);
List argList;
ArgList argList;
for (size_t i = 0; i < argumentCount; i++)
argList.append(toJS(arguments[i]));
......
This diff is collapsed.
......@@ -129,12 +129,11 @@ __ZN3KJS16JSVariableObject16getPropertyNamesEPNS_9ExecStateERNS_17PropertyNameAr
__ZN3KJS16ParserRefCounted3refEv
__ZN3KJS16ParserRefCounted5derefEv
__ZN3KJS17PropertyNameArray3addEPNS_7UString3RepE
__ZN3KJS17PrototypeFunctionC1EPNS_9ExecStateEPNS_17FunctionPrototypeEiRKNS_10IdentifierEPFPNS_7JSValueES2_PNS_8JSObjectERKNS_4ListEE
__ZN3KJS17PrototypeFunctionC1EPNS_9ExecStateEiRKNS_10IdentifierEPFPNS_7JSValueES2_PNS_8JSObjectERKNS_4ListEE
__ZN3KJS17PrototypeFunctionC1EPNS_9ExecStateEPNS_17FunctionPrototypeEiRKNS_10IdentifierEPFPNS_7JSValueES2_PNS_8JSObjectERKNS_7ArgListEE
__ZN3KJS17PrototypeFunctionC1EPNS_9ExecStateEiRKNS_10IdentifierEPFPNS_7JSValueES2_PNS_8JSObjectERKNS_7ArgListEE
__ZN3KJS17RegisterFileStack20allocateRegisterFileEmPS0_
__ZN3KJS19initializeThreadingEv
__ZN3KJS23objectProtoFuncToStringEPNS_9ExecStateEPNS_8JSObjectERKNS_4ListE
__ZN3KJS4List10slowAppendEPNS_7JSValueE
__ZN3KJS23objectProtoFuncToStringEPNS_9ExecStateEPNS_8JSObjectERKNS_7ArgListE
__ZN3KJS5equalEPKNS_7UString3RepES3_
__ZN3KJS6JSCell11getCallDataERNS_8CallDataE
__ZN3KJS6JSCell16getConstructDataERNS_13ConstructDataE
......@@ -152,6 +151,7 @@ __ZN3KJS6JSLock6unlockEv
__ZN3KJS6JSLock9lockCountEv
__ZN3KJS6Parser5parseEPNS_9ExecStateERKNS_7UStringEiN3WTF10PassRefPtrINS_14SourceProviderEEEPiSA_PS3_
__ZN3KJS6strtodEPKcPPc
__ZN3KJS7ArgList10slowAppendEPNS_7JSValueE
__ZN3KJS7CStringD1Ev
__ZN3KJS7CStringaSERKS0_
__ZN3KJS7JSArray4infoE
......@@ -176,7 +176,7 @@ __ZN3KJS8JSObject12defineGetterEPNS_9ExecStateERKNS_10IdentifierEPS0_
__ZN3KJS8JSObject12defineSetterEPNS_9ExecStateERKNS_10IdentifierEPS0_
__ZN3KJS8JSObject12lookupGetterEPNS_9ExecStateERKNS_10IdentifierE
__ZN3KJS8JSObject12lookupSetterEPNS_9ExecStateERKNS_10IdentifierE
__ZN3KJS8JSObject14callAsFunctionEPNS_9ExecStateEPS0_RKNS_4ListE
__ZN3KJS8JSObject14callAsFunctionEPNS_9ExecStateEPS0_RKNS_7ArgListE
__ZN3KJS8JSObject14deletePropertyEPNS_9ExecStateERKNS_10IdentifierE
__ZN3KJS8JSObject14deletePropertyEPNS_9ExecStateEj
__ZN3KJS8JSObject14implementsCallEv
......@@ -190,8 +190,8 @@ __ZN3KJS8JSObject22fillGetterPropertySlotERNS_12PropertySlotEPPNS_7JSValueE
__ZN3KJS8JSObject3putEPNS_9ExecStateERKNS_10IdentifierEPNS_7JSValueE
__ZN3KJS8JSObject3putEPNS_9ExecStateEjPNS_7JSValueE
__ZN3KJS8JSObject4markEv
__ZN3KJS8JSObject9constructEPNS_9ExecStateERKNS_4ListE
__ZN3KJS8JSObject9constructEPNS_9ExecStateERKNS_4ListERKNS_10IdentifierERKNS_7UStringEi
__ZN3KJS8JSObject9constructEPNS_9ExecStateERKNS_7ArgListE
__ZN3KJS8JSObject9constructEPNS_9ExecStateERKNS_7ArgListERKNS_10IdentifierERKNS_7UStringEi
__ZN3KJS8Profiler13stopProfilingEPNS_9ExecStateERKNS_7UStringE
__ZN3KJS8Profiler14startProfilingEPNS_9ExecStateERKNS_7UStringE
__ZN3KJS8Profiler8profilerEv
......@@ -248,7 +248,6 @@ __ZNK3KJS16JSVariableObject21getPropertyAttributesEPNS_9ExecStateERKNS_10Identif
__ZNK3KJS17DebuggerCallFrame10thisObjectEv
__ZNK3KJS17DebuggerCallFrame12functionNameEv
__ZNK3KJS17DebuggerCallFrame8evaluateERKNS_7UStringERPNS_7JSValueE
__ZNK3KJS4List8getSliceEiRS0_
__ZNK3KJS4Node8toStringEv
__ZNK3KJS6JSCell12toThisObjectEPNS_9ExecStateE
__ZNK3KJS6JSCell17getTruncatedInt32ERi
......@@ -257,6 +256,7 @@ __ZNK3KJS6JSCell9getNumberEv
__ZNK3KJS6JSCell9getStringERNS_7UStringE
__ZNK3KJS6JSCell9getStringEv
__ZNK3KJS6JSCell9getUInt32ERj
__ZNK3KJS7ArgList8getSliceEiRS0_
__ZNK3KJS7JSArray7getItemEj
__ZNK3KJS7JSValue15toInt32SlowCaseEPNS_9ExecStateERb
__ZNK3KJS7JSValue16toUInt32SlowCaseEPNS_9ExecStateERb
......
......@@ -684,7 +684,7 @@ JSValue* Machine::execute(ProgramNode* programNode, ExecState* exec, ScopeChainN
return result;
}
JSValue* Machine::execute(FunctionBodyNode* functionBodyNode, ExecState* exec, JSFunction* function, JSObject* thisObj, const List& args, RegisterFileStack* registerFileStack, ScopeChainNode* scopeChain, JSValue** exception)
JSValue* Machine::execute(FunctionBodyNode* functionBodyNode, ExecState* exec, JSFunction* function, JSObject* thisObj, const ArgList& args, RegisterFileStack* registerFileStack, ScopeChainNode* scopeChain, JSValue** exception)
{
if (m_reentryDepth >= MaxReentryDepth) {
*exception = createStackOverflowError(exec);
......@@ -711,8 +711,8 @@ JSValue* Machine::execute(FunctionBodyNode* functionBodyNode, ExecState* exec, J
Register* dst = callFrame + CallFrameHeaderSize;
(*dst).u.jsValue = thisObj;
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)
(*++dst).u.jsValue = *it;
// put call frame in place, using a 0 codeBlock to indicate a built-in caller
......@@ -2114,7 +2114,7 @@ JSValue* Machine::privateExecute(ExecutionFlag flag, ExecState* exec, RegisterFi
r[firstArg].u.jsValue = thisVal == missingThisObjectMarker() ? exec->globalThisValue() : (r[thisVal].u.jsValue)->toObject(exec);
JSObject* thisObj = static_cast<JSObject*>(r[firstArg].u.jsValue);
List args(reinterpret_cast<JSValue***>(registerBase), registerOffset + firstArg + 1, argCount - 1);
ArgList args(reinterpret_cast<JSValue***>(registerBase), registerOffset + firstArg + 1, argCount - 1);
registerFile->setSafeForReentry(true);
JSValue* returnValue = static_cast<JSObject*>(v)->callAsFunction(exec, thisObj, args);
......@@ -2251,7 +2251,7 @@ JSValue* Machine::privateExecute(ExecutionFlag flag, ExecState* exec, RegisterFi
int registerOffset = r - (*registerBase);
List args(reinterpret_cast<JSValue***>(registerBase), registerOffset + firstArg + 1, argCount - 1);
ArgList args(reinterpret_cast<JSValue***>(registerBase), registerOffset + firstArg + 1, argCount - 1);
registerFile->setSafeForReentry(true);
JSValue* returnValue = constructor->construct(exec, args);
......
......@@ -99,7 +99,7 @@ namespace KJS {
bool isOpcode(Opcode opcode);
JSValue* execute(ProgramNode*, ExecState*, ScopeChainNode*, JSObject* thisObj, RegisterFileStack*, JSValue** exception);
JSValue* execute(FunctionBodyNode*, ExecState*, JSFunction*, JSObject* thisObj, const List& args, RegisterFileStack*, ScopeChainNode*, JSValue** exception);
JSValue* execute(FunctionBodyNode*, ExecState*, JSFunction*, JSObject* thisObj, const ArgList& args, RegisterFileStack*, ScopeChainNode*, JSValue** exception);
JSValue* execute(EvalNode*, ExecState*, JSObject* thisObj, RegisterFile*, int registerOffset, ScopeChainNode*, JSValue** exception);
JSValue* execute(EvalNode*, ExecState*, JSObject* thisObj, RegisterFileStack*, ScopeChainNode*, JSValue** exception);
......
This diff is collapsed.
......@@ -41,31 +41,31 @@ namespace KJS {
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
......
......@@ -40,8 +40,8 @@ BooleanObject::BooleanObject(JSObject* proto)
// ------------------------------ 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 @@ BooleanPrototype::BooleanPrototype(ExecState* exec, ObjectPrototype* objectProto
// 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 @@ JSValue* booleanProtoFuncToString(ExecState* exec, JSObject* thisObj, const List
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 @@ ConstructType BooleanConstructor::getConstructData(ConstructData&)
}
// 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 @@ JSObject* BooleanConstructor::construct(ExecState* exec, const List& args)
}
// 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));
......
......@@ -55,9 +55,9 @@ namespace KJS {
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
......
......@@ -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__) \
......
......@@ -81,7 +81,7 @@ namespace KJS {
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; }
......
......@@ -38,9 +38,9 @@ namespace KJS {
// ------------------------------ 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 @@ FunctionPrototype::FunctionPrototype(ExecState* exec)
}
// 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 @@ JSValue* functionProtoFuncToString(ExecState* exec, JSObject* thisObj, const Lis
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 @@ JSValue* functionProtoFuncApply(ExecState* exec, JSObject* thisObj, const List&
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 @@ JSValue* functionProtoFuncApply(ExecState* exec, JSObject* thisObj, const List&
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 @@ JSValue* functionProtoFuncCall(ExecState* exec, JSObject* thisObj, const List& a
else
callThis = thisArg->toObject(exec);
List argsTail;
ArgList argsTail;
args.getSlice(1, argsTail);
return thisObj->callAsFunction(exec, callThis, argsTail);
}
......@@ -142,7 +142,7 @@ ConstructType FunctionConstructor::getConstructData(ConstructData&)
}
// 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 @@ JSObject* FunctionConstructor::construct(ExecState* exec, const List& args, cons
}
// 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);
}
......
......@@ -38,7 +38,7 @@ namespace KJS {
public:
FunctionPrototype(ExecState*);
virtual JSValue* callAsFunction(ExecState*, JSObject*, const List&);
virtual JSValue* callAsFunction(ExecState*, JSObject*, const ArgList&);
};
/**
......@@ -51,10 +51,10 @@ namespace KJS {
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
......
......@@ -185,7 +185,7 @@ JSObject* JSActivation::createArgumentsObject(ExecState* exec)
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);
}
......
......@@ -93,7 +93,7 @@ JSArray::JSArray(JSObject* prototype, unsigned initialLength)
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 @@ JSArray::JSArray(JSObject* prototype, const List& list)
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 @@ struct AVLTreeAbstractorForArrayCompare {
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);
......
......@@ -31,7 +31,7 @@ namespace KJS {
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&);
......
......@@ -80,7 +80,7 @@ CallType JSFunction::getCallData(CallData& callData)
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 @@ ConstructType JSFunction::getConstructData(ConstructData& constructData)
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 @@ JSObject* JSFunction::construct(ExecState* exec, const List& args)
// 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 @@ Identifier& IndexToNameMap::operator[](const Identifier& index)
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)