Skip to content
  • barraclough@apple.com's avatar
    Bug 36611 - Cleanup JSC::CString · 5fc5928b
    barraclough@apple.com authored
    Rename CString::c_str() -> CString::data(), CString::size() -> CString::length(),
    remove UString::getCString() (all uses are wrong, should use UString::UTF8String()).
    
    Reviewed by Geoff Garen.
    
    JavaScriptCore: 
    
    * bytecode/CodeBlock.cpp:
    (JSC::CodeBlock::printUnaryOp):
    (JSC::CodeBlock::printBinaryOp):
    (JSC::CodeBlock::printConditionalJump):
    (JSC::CodeBlock::printGetByIdOp):
    (JSC::CodeBlock::printPutByIdOp):
    (JSC::printGlobalResolveInfo):
    (JSC::printStructureStubInfo):
    (JSC::CodeBlock::printStructure):
    (JSC::CodeBlock::printStructures):
    (JSC::CodeBlock::dump):
    * jsc.cpp:
    (functionPrint):
    (functionDebug):
    (runInteractive):
    (fillBufferWithContentsOfFile):
    * profiler/CallIdentifier.h:
    (JSC::CallIdentifier::c_str):
    * profiler/Profile.cpp:
    (JSC::Profile::debugPrintDataSampleStyle):
    * profiler/ProfileNode.cpp:
    (JSC::ProfileNode::debugPrintData):
    (JSC::ProfileNode::debugPrintDataSampleStyle):
    * runtime/DateConversion.cpp:
    (JSC::parseDate):
    * runtime/JSGlobalObjectFunctions.cpp:
    (JSC::encode):
    (JSC::globalFuncJSCPrint):
    * runtime/UString.cpp:
    (JSC::operator==):
    (JSC::UString::toDouble):
    * runtime/UString.h:
    (JSC::CString::length):
    (JSC::CString::data):
    
    WebCore: 
    
    * bridge/NP_jsobject.cpp:
    (_NPN_Enumerate):
    * bridge/c/c_utility.cpp:
    (JSC::Bindings::convertValueToNPVariant):
    * bridge/jni/jsc/JNIBridgeJSC.cpp:
    (JavaField::valueFromInstance):
    (JavaField::setValueToInstance):
    * bridge/jni/jsc/JavaInstanceJSC.cpp:
    (JavaInstance::invokeMethod):
    * bridge/jni/jsc/JavaStringJSC.h:
    (JSC::Bindings::JavaStringImpl::UTF8String):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@56560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    5fc5928b