diff options
Diffstat (limited to 'WebKitTools/Scripts/do-webcore-rename')
-rwxr-xr-x | WebKitTools/Scripts/do-webcore-rename | 290 |
1 files changed, 79 insertions, 211 deletions
diff --git a/WebKitTools/Scripts/do-webcore-rename b/WebKitTools/Scripts/do-webcore-rename index 24b14a3..edfe2dc 100755 --- a/WebKitTools/Scripts/do-webcore-rename +++ b/WebKitTools/Scripts/do-webcore-rename @@ -1,6 +1,6 @@ #!/usr/bin/perl -w -# Copyright (C) 2006, 2007 Apple Inc. All rights reserved. +# Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -43,6 +43,7 @@ my %words; my @paths; find(\&wanted, "JavaScriptCore"); +find(\&wanted, "JavaScriptGlue"); find(\&wanted, "WebCore"); find(\&wanted, "WebKit"); @@ -67,224 +68,91 @@ sub wanted } my %renames = ( - "ArrayInstance" => "JSArray", - "ActivationImp" => "Activation", - "ActivationImpData" => "ActivationData", - "ArrayObjectImp" => "ArrayConstructor", - "ArrayProtoFuncConcat" => "ArrayFunctionConcat", - "ArrayProtoFuncEvery" => "ArrayFunctionEvery", - "ArrayProtoFuncFilter" => "ArrayFunctionFilter", - "ArrayProtoFuncForEach" => "ArrayFunctionForEach", - "ArrayProtoFuncIndexOf" => "ArrayFunctionIndexOf", - "ArrayProtoFuncJoin" => "ArrayFunctionJoin", - "ArrayProtoFuncLastIndexOf" => "ArrayFunctionLastIndexOf", - "ArrayProtoFuncMap" => "ArrayFunctionMap", - "ArrayProtoFuncPop" => "ArrayFunctionPop", - "ArrayProtoFuncPush" => "ArrayFunctionPush", - "ArrayProtoFuncReverse" => "ArrayFunctionReverse", - "ArrayProtoFuncShift" => "ArrayFunctionShift", - "ArrayProtoFuncSlice" => "ArrayFunctionSlice", - "ArrayProtoFuncSome" => "ArrayFunctionSome", - "ArrayProtoFuncSort" => "ArrayFunctionSort", - "ArrayProtoFuncSplice" => "ArrayFunctionSplice", - "ArrayProtoFuncToLocaleString" => "ArrayFunctionToLocaleString", - "ArrayProtoFuncToString" => "ArrayFunctionToString", - "ArrayProtoFuncUnShift" => "ArrayFunctionUnshift", - "BooleanInstance" => "BooleanObject", - "BooleanObjectImp" => "BooleanConstructor", - "BooleanProtoFunc" => "BooleanFunction", - "DateObjectFuncImp" => "DateFunction", - "DateObjectImp" => "DateConstructor", - "DateProtoFuncGetDate" => "DateFunctionGetDate", - "DateProtoFuncGetDay" => "DateFunctionGetDay", - "DateProtoFuncGetFullYear" => "DateFunctionGetFullYear", - "DateProtoFuncGetHours" => "DateFunctionGetHours", - "DateProtoFuncGetMilliSeconds" => "DateFunctionGetMilliSeconds", - "DateProtoFuncGetMinutes" => "DateFunctionGetMinutes", - "DateProtoFuncGetMonth" => "DateFunctionGetMonth", - "DateProtoFuncGetSeconds" => "DateFunctionGetSeconds", - "DateProtoFuncGetTime" => "DateFunctionGetTime", - "DateProtoFuncGetTimezoneOffset" => "DateFunctionGetTimezoneOffset", - "DateProtoFuncGetUTCDate" => "DateFunctionGetUTCDate", - "DateProtoFuncGetUTCDay" => "DateFunctionGetUTCDay", - "DateProtoFuncGetUTCFullYear" => "DateFunctionGetUTCFullYear", - "DateProtoFuncGetUTCHours" => "DateFunctionGetUTCHours", - "DateProtoFuncGetUTCMilliseconds" => "DateFunctionGetUTCMilliseconds", - "DateProtoFuncGetUTCMinutes" => "DateFunctionGetUTCMinutes", - "DateProtoFuncGetUTCMonth" => "DateFunctionGetUTCMonth", - "DateProtoFuncGetUTCSeconds" => "DateFunctionGetUTCSeconds", - "DateProtoFuncGetYear" => "DateFunctionGetYear", - "DateProtoFuncSetDate" => "DateFunctionSetDate", - "DateProtoFuncSetFullYear" => "DateFunctionSetFullYear", - "DateProtoFuncSetHours" => "DateFunctionSetHours", - "DateProtoFuncSetMilliSeconds" => "DateFunctionSetMilliSeconds", - "DateProtoFuncSetMinutes" => "DateFunctionSetMinutes", - "DateProtoFuncSetMonth" => "DateFunctionSetMonth", - "DateProtoFuncSetSeconds" => "DateFunctionSetSeconds", - "DateProtoFuncSetTime" => "DateFunctionSetTime", - "DateProtoFuncSetUTCDate" => "DateFunctionSetUTCDate", - "DateProtoFuncSetUTCFullYear" => "DateFunctionSetUTCFullYear", - "DateProtoFuncSetUTCHours" => "DateFunctionSetUTCHours", - "DateProtoFuncSetUTCMilliseconds" => "DateFunctionSetUTCMilliseconds", - "DateProtoFuncSetUTCMinutes" => "DateFunctionSetUTCMinutes", - "DateProtoFuncSetUTCMonth" => "DateFunctionSetUTCMonth", - "DateProtoFuncSetUTCSeconds" => "DateFunctionSetUTCSeconds", - "DateProtoFuncSetYear" => "DateFunctionSetYear", - "DateProtoFuncToDateString" => "DateFunctionToDateString", - "DateProtoFuncToGMTString" => "DateFunctionToGMTString", - "DateProtoFuncToLocaleDateString" => "DateFunctionToLocaleDateString", - "DateProtoFuncToLocaleString" => "DateFunctionToLocaleString", - "DateProtoFuncToLocaleTimeString" => "DateFunctionToLocaleTimeString", - "DateProtoFuncToString" => "DateFunctionToString", - "DateProtoFuncToTimeString" => "DateFunctionToTimeString", - "DateProtoFuncToUTCString" => "DateFunctionToUTCString", - "DateProtoFuncValueOf" => "DateFunctionValueOf", - "DebuggerImp" => "DebuggerData", - "ErrorObjectImp" => "ErrorConstructor", - "ErrorProtoFuncToString" => "ErrorFunction", - "FRAMES_ON_STACK" => "numFramesOnStack", - "FunctionImp" => "Function", - "FunctionObjectImp" => "FunctionConstructor", - "FunctionProtoFunc" => "FunctionFunction", - "GetterSetterImp" => "GetterSetter", - "GlobalFuncImp" => "GlobalFunction", - "GlobalImp" => "TestGlobalObject", - "HTMLGenericFormElement" => "HTMLFormControlElement", - "HTMLGenericFormElement_h" => "HTMLFormControlElement_h", +); + +my %renamesContemplatedForTheFuture = ( + "StructureID" => "Structure", + "StructureIDChain" => "StructureChain", + "StructureIDs" => "Structures", + "StructureID_h" => "Structure_h", + "StructureIDChain_h" => "StructureChain_h", + "activationStructureID" => "activationStructure", + "createStructureID" => "createStructure", + "currStructureID" => "currStructure", + "derefStructureIDs" => "derefStructures", + "liveStructureIDSet" => "liveStructureSet", + "m_structureID" => "mm_structure", + "newStructureID" => "newStructureID", + "numberStructureID" => "numberStructure", + "oldStructureID" => "oldStructure", + "printStructureIDs" => "printStructures", + "refStructureIDs" => "refStructures", + "repatchGetByIdDefaultStructureID" => "repatchGetByIdDefaultStructure", + "repatchOffsetGetByIdStructureID" => "repatchOffsetGetByIdStructure", + "repatchOffsetPutByIdStructureID" => "repatchOffsetPutByIdStructure", + "sIDC" => "chain", + "setCachedStructureID" => "setCachedStructureID", + "staticScopeStructureID" => "staticScopeStructure", + "stringStructureID" => "stringStructure", + "structureID" => "structure", + "structureIDAddr" => "structureAddress", + "structureIDChain" => "structureChain", + "structureIDCounter" => "structureCounter", + "structureIDInstructionIndex" => "structureInstructionIndex", + "structureIDInstructions" => "structureInstructions", + + "DOMObject" => "JSDOMObject", + + "runtimeObjectGetter" => "pluginElementGetter", + "runtimeObjectPropertyGetter" => "pluginElementPropertyGetter", + "runtimeObjectCustomGetOwnPropertySlot" => "pluginElementCustomGetOwnPropertySlot", + "runtimeObjectCustomPut" => "pluginElementCustomPut", + "runtimeObjectImplementsCall" => "pluginElementImplementsCall", + "runtimeObjectCallAsFunction" => "pluginElementCallAsFunction", + + "CLONE_CONTENTS" => "Clone", + "DELETE_CONTENTS" => "Delete", + "EXTRACT_CONTENTS" => "Extract", + + "DateInstance" => "JSDate", + "ErrorInstance" => "JSError", + "ImageConstructorImp" => "JSImageConstructor", - "InternalFunctionImp" => "InternalFunction", - "JSXMLHttpRequestConstructorImp" => "JSXMLHttpRequestConstructor", + "Navigator" => "JSNavigator", + + "JSHTMLOptionElementConstructor" => "JSOptionConstructor", + "XSLTProcessorPrototypeTable" => "JSXSLTProcessorPrototypeTable", + "KURL" => "URL", "KURLCFNet" => "URLCF", + "KURLHash" => "URLHash", "KURLMac" => "URLMac", "KURL_H_" => "URL_h", - "List" => "ArgumentList", - "MathObjectImp" => "MathObject", - "MathProtoFuncACos" => "MathFunctionACos", - "MathProtoFuncASin" => "MathFunctionASin", - "MathProtoFuncATan" => "MathFunctionATan", - "MathProtoFuncATan2" => "MathFunctionATan2", - "MathProtoFuncAbs" => "MathFunctionAbs", - "MathProtoFuncCeil" => "MathFunctionCeil", - "MathProtoFuncCos" => "MathFunctionCos", - "MathProtoFuncExp" => "MathFunctionExp", - "MathProtoFuncFloor" => "MathFunctionFloor", - "MathProtoFuncLog" => "MathFunctionLog", - "MathProtoFuncMax" => "MathFunctionMax", - "MathProtoFuncMin" => "MathFunctionMin", - "MathProtoFuncPow" => "MathFunctionPow", - "MathProtoFuncRandom" => "MathFunctionRandom", - "MathProtoFuncRound" => "MathFunctionRound", - "MathProtoFuncSin" => "MathFunctionSin", - "MathProtoFuncSqrt" => "MathFunctionSqrt", - "MathProtoFuncTan" => "MathFunctionTan", - "NativeErrorImp" => "NativeErrorConstructor", - "Navigator" => "JSNavigator", - "NumberImp" => "JSNumberCell", - "NumberInstance" => "NumberObject", - "NumberObjectImp" => "NumberConstructor", - "NumberProtoFunc" => "NumberFunction", + + "ThreadSafeShared" => "ThreadSafeRefCounted", + "TreeShared" => "TreeRefCounted", + + "StringImpl" => "SharedString", + + "RenderView" => "RenderViewport", + "ObjcFallbackObjectImp" => "ObjCFallbackObject", - "ObjectObjectImp" => "ObjectConstructor", - "ObjectProtoFunc" => "ObjectFunction", - "RECURSIVE_MATCH_STARTNG_NEW_GROUP" => "RECURSIVE_MATCH_NEW_GROUP", - "RegExpImp" => "RegExpObject", - "RegExpObjectImp" => "RegExpConstructor", - "RegExpObjectImpPrivate" => "RegExpConstructorPrivate", - "RegExpProtoFunc" => "RegExpFunction", "RuntimeObjectImp" => "ForeignObject", - "StringImp" => "JSString", - "StringImpl" => "SharedString", - "StringInstance" => "StringObject", - "StringInstanceThatMasqueradesAsUndefined" => "StringObjectThatMasqueradesAsUndefined", - "StringObjectFuncImp" => "StringConstructorFunction", - "StringObjectImp" => "StringConstructor", - "StringProtoFuncAnchor" => "StringFunctionAnchor", - "StringProtoFuncBig" => "StringFunctionBig", - "StringProtoFuncBlink" => "StringFunctionBlink", - "StringProtoFuncBold" => "StringFunctionBold", - "StringProtoFuncCharAt" => "StringFunctionCharAt", - "StringProtoFuncCharCodeAt" => "StringFunctionCharCodeAt", - "StringProtoFuncConcat" => "StringFunctionConcat", - "StringProtoFuncFixed" => "StringFunctionFixed", - "StringProtoFuncFontcolor" => "StringFunctionFontcolor", - "StringProtoFuncFontsize" => "StringFunctionFontsize", - "StringProtoFuncIndexOf" => "StringFunctionIndexOf", - "StringProtoFuncItalics" => "StringFunctionItalics", - "StringProtoFuncLastIndexOf" => "StringFunctionLastIndexOf", - "StringProtoFuncLink" => "StringFunctionLink", - "StringProtoFuncLocaleCompare" => "StringFunctionLocaleCompare", - "StringProtoFuncMatch" => "StringFunctionMatch", - "StringProtoFuncReplace" => "StringFunctionReplace", - "StringProtoFuncSearch" => "StringFunctionSearch", - "StringProtoFuncSlice" => "StringFunctionSlice", - "StringProtoFuncSmall" => "StringFunctionSmall", - "StringProtoFuncSplit" => "StringFunctionSplit", - "StringProtoFuncStrike" => "StringFunctionStrike", - "StringProtoFuncSub" => "StringFunctionSub", - "StringProtoFuncSubstr" => "StringFunctionSubstr", - "StringProtoFuncSubstring" => "StringFunctionSubstring", - "StringProtoFuncSup" => "StringFunctionSup", - "StringProtoFuncToLocaleLowerCase" => "StringFunctionToLocaleLowerCase", - "StringProtoFuncToLocaleUpperCase" => "StringFunctionToLocaleUpperCase", - "StringProtoFuncToLowerCase" => "StringFunctionToLowerCase", - "StringProtoFuncToString" => "StringFunctionToString", - "StringProtoFuncToUpperCase" => "StringFunctionToUpperCase", - "StringProtoFuncValueOf" => "StringFunctionValueOf", - "TestFunctionImp" => "TestFunction", - "ThreadSafeShared" => "ThreadSafeRefCounted", - "XSLTProcessorConstructorImp" => "JSXSLTProcessorConstructor", - "XSLTProcessorPrototype" => "JSXSLTProcessorPrototype", - "animationController" => "animation", - "branchfirstbyte" => "branchFirstByte", - "branchreqbyte" => "branchReqByte", - "class_charcount" => "classCharCount", - "class_lastchar" => "classLastChar", - "codeptr" => "codePtr", - "domString" => "string", + "equalIgnoringCase" => "equalFoldingCase", - "errorcodeptr" => "errorCodePtr", - "errorptr" => "errorPtr", - "first_byte" => "firstByte", - "first_byte_caseless" => "firstByteIsCaseless", - "first_char" => "firstChar", - "firstbyte" => "firstByte", - "groupsetfirstbyte" => "didGroupSetFirstByte", - "is_quantifier" => "isQuantifier", - "isclass" => "isClass", - "kjs_binding" => "JSDOMBinding", - "kjs_binding_h" => "JSDOMBinding_h", - "kjs_css" => "JSRGBColor", - "kjs_css_h" => "JSRGBColor_h", - "kjs_proxy" => "ScriptController", - "kjs_proxy_h" => "ScriptController_h", - "last_branch" => "lastBranch", - "mclength" => "mcLength", - "negate_class" => "negateClass", - "offsetcount" => "offsetCount", - "op_type" => "opType", - "prev_length" => "prevLength", - "ptrptr" => "ptrPtr", - "repeat_min" => "repeatMin", - "repeat_type" => "repeatType", - "req_byte" => "reqByte", - "req_byte2" => "reqByte2", - "req_byte_caseless" => "reqByteIsCaseless", - "req_caseopt" => "reqCaseOpt", - "req_varyopt" => "reqVaryOpt", - "reqbyte" => "reqByte", - "resetcount" => "resetCount", - "scriptProxy" => "script", - "selectionController" => "selection", - "should_flip_negation" => "shouldFlipNegation", - "skipbytes" => "skipBytes", - "subfirstbyte" => "subFirstByte", - "subreqbyte" => "subReqByte", - "top_backref" => "topBackref", - "top_bracket" => "topBracket", - "using_temporary_offsets" => "usingTemporaryOffsets", - "zerofirstbyte" => "zeroFirstByte", - "zeroreqbyte" => "zeroReqByte", + + "FTPDirectoryTokenizer" => "FTPDirectoryDocumentBuilder", + "HTMLTokenizer" => "HTMLDocumentBuilder", + "ImageTokenizer" => "ImageDocumentBuilder", + "PluginTokenizer" => "PluginDocumentBuilder", + "TextTokenizer" => "TextDocumentBuilder", + "Tokenizer" => "DocumentBuilder", + "Tokenizer_h" => "DocumentBuilder_h", + "XMLTokenizer" => "XMLDocumentBuilder", + "isHTMLTokenizer" => "isHTMLDocumentBuilder", + "m_tokenizer" => "m_builder", + "createTokenizer" => "createBuilder", + "tokenizerProcessedData" => "documentBuilderProcessedData", ); # rename files |