Skip to content
  • barraclough@apple.com's avatar
    Unify UString::UTF8String() & String::utf8() methods, · 3158a387
    barraclough@apple.com authored
    remove UString::cost() & make atArrayIndex a free function.
    
    Reviewed by Sam Weinig
    
    JavaScriptCore: 
    
    * JavaScriptCore.exp:
    * bytecode/CodeBlock.cpp:
    (JSC::constantName):
    (JSC::idName):
    (JSC::CodeBlock::registerName):
    (JSC::regexpName):
    (JSC::printGlobalResolveInfo):
    (JSC::printStructureStubInfo):
    (JSC::CodeBlock::printStructure):
    (JSC::CodeBlock::printStructures):
    * jsc.cpp:
    (functionPrint):
    (functionDebug):
    (runInteractive):
    (fillBufferWithContentsOfFile):
    * pcre/pcre_exec.cpp:
    (Histogram::~Histogram):
    * profiler/CallIdentifier.h:
    (JSC::CallIdentifier::c_str):
    * profiler/Profile.cpp:
    (JSC::Profile::debugPrintDataSampleStyle):
    * profiler/ProfileGenerator.cpp:
    (JSC::ProfileGenerator::willExecute):
    (JSC::ProfileGenerator::didExecute):
    * profiler/ProfileNode.cpp:
    (JSC::ProfileNode::debugPrintData):
    (JSC::ProfileNode::debugPrintDataSampleStyle):
    * runtime/Arguments.cpp:
    (JSC::Arguments::getOwnPropertySlot):
    (JSC::Arguments::getOwnPropertyDescriptor):
    (JSC::Arguments::put):
    (JSC::Arguments::deleteProperty):
    * runtime/DateConversion.cpp:
    (JSC::parseDate):
    * runtime/Identifier.h:
    (JSC::Identifier::toStrictUInt32):
    * runtime/JSArray.cpp:
    (JSC::JSArray::getOwnPropertySlot):
    (JSC::JSArray::getOwnPropertyDescriptor):
    (JSC::JSArray::put):
    (JSC::JSArray::deleteProperty):
    * runtime/JSArray.h:
    (JSC::toArrayIndex):
    * runtime/JSGlobalObjectFunctions.cpp:
    (JSC::encode):
    (JSC::parseInt):
    (JSC::globalFuncJSCPrint):
    * runtime/JSString.h:
    (JSC::RopeBuilder::JSString):
    * runtime/UString.cpp:
    (JSC::UString::toDouble):
    (JSC::putUTF8Triple):
    (JSC::UString::utf8):
    * runtime/UString.h:
    (JSC::UString::~UString):
    (JSC::UString::isNull):
    (JSC::UString::isEmpty):
    (JSC::UString::impl):
    * wtf/text/WTFString.cpp:
    (WTF::String::utf8):
    * wtf/text/WTFString.h:
    (WTF::String::~String):
    (WTF::String::swap):
    (WTF::String::isNull):
    (WTF::String::isEmpty):
    (WTF::String::impl):
    (WTF::String::length):
    (WTF::String::String):
    (WTF::String::isHashTableDeletedValue):
    
    WebCore: 
    
    * WebCore.xcodeproj/project.pbxproj:
    * bindings/js/JSDOMWindowCustom.cpp:
    (WebCore::JSDOMWindow::getOwnPropertySlot):
    (WebCore::JSDOMWindow::getOwnPropertyDescriptor):
    * bridge/NP_jsobject.cpp:
    (_NPN_Enumerate):
    * bridge/c/c_utility.cpp:
    (JSC::Bindings::convertValueToNPVariant):
    * bridge/jni/JNIBridge.cpp:
    (JavaParameter::JavaParameter):
    (JavaMethod::JavaMethod):
    (JavaMethod::signature):
    (JavaMethod::methodID):
    * bridge/jni/JNIBridge.h:
    (JSC::Bindings::JavaString::utf8):
    (JSC::Bindings::JavaParameter::type):
    (JSC::Bindings::JavaMethod::returnType):
    * bridge/jni/jni_jsobject.mm:
    (JavaJSObject::call):
    (JavaJSObject::eval):
    (JavaJSObject::getMember):
    (JavaJSObject::setMember):
    (JavaJSObject::removeMember):
    (JavaJSObject::convertJObjectToValue):
    * bridge/jni/jsc/JNIBridgeJSC.cpp:
    (JavaField::JavaField):
    (JavaField::valueFromInstance):
    (JavaField::setValueToInstance):
    * bridge/jni/jsc/JNIBridgeJSC.h:
    (JSC::Bindings::JavaField::type):
    * bridge/jni/jsc/JavaInstanceJSC.cpp:
    (JavaInstance::invokeMethod):
    * bridge/jni/jsc/JavaStringJSC.h:
    (JSC::Bindings::JavaStringImpl::utf8):
    * bridge/runtime_array.cpp:
    (JSC::RuntimeArray::getOwnPropertySlot):
    (JSC::RuntimeArray::getOwnPropertyDescriptor):
    (JSC::RuntimeArray::put):
    
    WebKit/mac: 
    
    * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
    (WebKit::NetscapePluginInstanceProxy::enumerate):
    
    WebKit/wx: 
    
    * WebFrame.cpp:
    (wxWebFrame::RunScript):
    
    WebKit2: 
    
    * WebProcess/Plugins/JSNPObject.cpp:
    (WebKit::npIdentifierFromIdentifier):
    * WebProcess/Plugins/NPJSObject.cpp:
    (WebKit::NPJSObject::enumerate):
    * WebProcess/Plugins/NPRuntimeObjectMap.cpp:
    (WebKit::NPRuntimeObjectMap::convertJSValueToNPVariant):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65305 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    3158a387