1. 08 Jan, 2010 9 commits
  2. 07 Jan, 2010 11 commits
    • eric@webkit.org's avatar
      2010-01-07 Laszlo Gombos <laszlo.1.gombos@nokia.com> · 6cdff3df
      eric@webkit.org authored
              Reviewed by Maciej Stachowiak.
      
              Allow call sites to determine if ASSERT_* and LOG_* macros are operational
              https://bugs.webkit.org/show_bug.cgi?id=33020
      
              * wtf/Assertions.h: Set ASSERT_MSG_DISABLED, FATAL_DISABLED,
              ERROR_DISABLED, LOG_DISABLED to 1 if the compiler does not support
              variadic macros. Refactor for better readibility.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52973 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6cdff3df
    • dbates@webkit.org's avatar
      2010-01-07 Daniel Bates <dbates@rim.com> · a8f3d6ad
      dbates@webkit.org authored
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=32987
      
              Added ENABLE_XHTMLMP flag. Disabled by default.
      
              * Configurations/FeatureDefines.xcconfig:
      2010-01-07  Daniel Bates  <dbates@rim.com>
      
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=32987
      
              Added ENABLE_XHTMLMP flag. Disabled by default.
      
              * features.gypi:
      2010-01-07  Daniel Bates  <dbates@rim.com>
      
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=32987
      
              Added ENABLE_XHTMLMP flag. Disabled by default.
      
              * Configurations/FeatureDefines.xcconfig:
      2010-01-07  Daniel Bates  <dbates@rim.com>
      
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=32987
      
              Added ENABLE_XHTMLMP flag. Disabled by default.
      
              * Configurations/FeatureDefines.xcconfig:
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * config.h:
      2010-01-07  Daniel Bates  <dbates@rim.com>
      
              Reviewed by Eric Seidel.
      
              https://bugs.webkit.org/show_bug.cgi?id=32987
      
              Added ENABLE_XHTMLMP flag. Disabled by default.
      
              * configure.ac:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52972 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a8f3d6ad
    • laszlo.1.gombos@nokia.com's avatar
      2010-01-07 Laszlo Gombos <laszlo.1.gombos@nokia.com> · 32fb4aef
      laszlo.1.gombos@nokia.com authored
              Reviewed by Gavin Barraclough.
      
              [Symbian] Port ARM traditional JIT Trampolines to RVCT
              https://bugs.webkit.org/show_bug.cgi?id=30552
      
              Take the GCC implementation and mechanically convert
              it to RVCT syntax.
      
              Use 'bx rX' instead of 'mov pc, rX' when it is available.
      
              Developed in cooperation with Iain Campbell and Gabor Loki.
      
              * JavaScriptCore.pri: Extra step to generate RVCT stubs. The
              script generation intentionally executed all the time not just
              for RVCT targets.
      
              * create_rvct_stubs: Added. Perl script to expand precompiler macros
              for RVCT assembler - the template is defined in JITStubs.cpp.
      
              * jit/JITStubs.cpp:
              (JSC::ctiTrampoline):
              (JSC::ctiVMThrowTrampoline):
              (JSC::ctiOpThrowNotCaught):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52970 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      32fb4aef
    • ggaren@apple.com's avatar
      Fix a crash seen on the buildbots. · 6337a982
      ggaren@apple.com authored
      Reviewed by Sam Weinig.
      
      JavaScriptCore: 
      
      * runtime/JSGlobalObject.cpp:
      (JSC::JSGlobalObject::init): Disable specific function tracking here,
      instead of in WebCore, to ensure that the disabling happens before a
      specific function can be registered.
      
      WebCore: 
      
      * bindings/js/JSDOMWindowBase.cpp:
      (WebCore::JSDOMWindowBase::JSDOMWindowBase): Don't disable specific
      function tracking here; it's too late, as some specific functions
      may already have been tracked in the base class constructor.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52962 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6337a982
    • ap@apple.com's avatar
      Mac build fix. · 4f78e574
      ap@apple.com authored
              * JavaScriptCore.exp: Export new JSGlobalData static data members.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52961 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4f78e574
    • ap@apple.com's avatar
      Reviewed by Geoffrey Garen. · 1348bdfa
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=33057
              REGRESSION(r49365): typeof(xhr.responseText) != "string" in Windows
      
              <rdar://problem/7296920> REGRESSION: WebKit fails to start PeaceKeeper benchmark
      
              Test: fast/js/webcore-string-comparison.html
      
              In r49365, some code was moved from JSString.cpp to JSString.h, and as a result, WebCore
              got a way to directly instantiate JSStrings over DLL borders. Since vftable for JSString was
              not exported, objects created from WebCore got a different vptr, and JavaScriptCore
              optimizations that relied on vptr of all JSString objects being equal failed.
      
              * config.h: Added a JS_EXPORTCLASS macro for exporting classes. It's currently the same as
              JS_EXPORTDATA, but it clearly needed a new name.
      
              * runtime/InitializeThreading.cpp:
              (JSC::initializeThreadingOnce):
              * runtime/JSGlobalData.cpp:
              (JSC::JSGlobalData::storeVPtrs):
              (JSC::JSGlobalData::JSGlobalData):
              (JSC::JSGlobalData::createNonDefault):
              (JSC::JSGlobalData::create):
              (JSC::JSGlobalData::sharedInstance):
              * runtime/JSGlobalData.h:
              Store vptrs just once, no need to repeatedly pick and copy them. This makes it possible to
              assert vptr correctness in object destructors (which don't have access to JSGlobalData,
              and even Heap::heap(this) will fail for fake objects created from storeVPtrs()).
      
              * runtime/JSArray.cpp: (JSC::JSArray::~JSArray): Assert that vptr is what we expect it to be.
              It's important to assert in destructor, because MSVC changes the vptr after constructor
              is invoked.
              * runtime/JSByteArray.cpp: (JSC::JSByteArray::~JSByteArray): Ditto.
              * runtime/JSByteArray.h: Ditto.
              * runtime/JSFunction.h: Ditto.
              * runtime/JSFunction.cpp: (JSC::JSFunction::~JSFunction): Ditto.
      
              * runtime/JSCell.h: (JSC::JSCell::setVPtr): Added a method to substitute vptr for another
              one.
      
              * runtime/JSString.h: Export JSString class together with its vftable, and tell other
              libraries tp import it. This is needed on platforms that have a separate JavaScriptCore
              dynamic library - and on Mac, we already did the export via JavaScriptCore.exp.
              (JSC::JSString::~JSString): Assert tha vptr is what we expect it to be.
              (JSC::fixupVPtr): Store a previously saved primary vftable pointer (do nothing if building
              JavaScriptCore itself).
              (JSC::jsSingleCharacterString): Call fixupVPtr in case this is call across DLL boundary.
              (JSC::jsSingleCharacterSubstring): Ditto.
              (JSC::jsNontrivialString): Ditto.
              (JSC::jsString): Ditto.
              (JSC::jsSubstring): Ditto.
              (JSC::jsOwnedString): Ditto.
      
              * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def: Export the new static
              JSGlobalData members that are used in WebCore via inline functions.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52956 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1348bdfa
    • ggaren@apple.com's avatar
      2010-01-07 Geoffrey Garen <ggaren@apple.com> · d0d58f4b
      ggaren@apple.com authored
              Reviewed by Sam Weinig.
      
              Safari memory usage skyrockets using new Google AdWords interface
              https://bugs.webkit.org/show_bug.cgi?id=33343
      
              The memory use was caused by the global object creating too many structures
              as it thrashed between different specific functions.
      
              * runtime/Structure.cpp:
              (JSC::Structure::Structure):
              (JSC::Structure::addPropertyTransition):
              (JSC::Structure::changePrototypeTransition):
              (JSC::Structure::despecifyFunctionTransition):
              (JSC::Structure::addAnonymousSlotsTransition):
              (JSC::Structure::getterSetterTransition):
              (JSC::Structure::toDictionaryTransition):
              (JSC::Structure::addPropertyWithoutTransition):
              (JSC::Structure::despecifyAllFunctions):
              * runtime/Structure.h:
              (JSC::Structure::disableSpecificFunctionTracking): Track a thrash count
              for specific functions. Disable specific function tracking once the
              thrash count has been hit.
      2010-01-07  Geoffrey Garen  <ggaren@apple.com>
      
              Reviewed by Sam Weinig.
      
              Safari memory usage skyrockets using new Google AdWords interface
              https://bugs.webkit.org/show_bug.cgi?id=33343
      
              * bindings/js/JSDOMWindowBase.cpp:
              (WebCore::JSDOMWindowBase::JSDOMWindowBase): Disabled specific function
              tracking for the window object, since there's no way to do direct
              method calls on the window object; they all go through the window shell.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52948 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d0d58f4b
    • ossy@webkit.org's avatar
      [Qt] Enable JIT in debug mode on win32 after r51141 fixed the crashes. · 57782ffe
      ossy@webkit.org authored
      Reviewed by Simon Hausmann.
      
      * JavaScriptCore.pri:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52924 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      57782ffe
    • vestbo@webkit.org's avatar
      Unreviewed build fix for Qt on Mac OS X · 77e07b4d
      vestbo@webkit.org authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52920 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      77e07b4d
    • zoltan@webkit.org's avatar
      2010-01-07 Zoltan Horvath <zoltan@webkit.org> · 164689cd
      zoltan@webkit.org authored
              Reviewed by Holger Freyther.
      
              [Mac] Build fix when FAST_MALLOC_MATCH_VALIDATION=1
              https://bugs.webkit.org/show_bug.cgi?id=33312
      
              Using of operator += cause compile error on Mac, so it is changed to
              "= static_cast<AllocAlignmentInteger*>(old_ptr) + 1".
      
              * wtf/FastMalloc.cpp:
              (WTF::TCMallocStats::realloc):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52918 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      164689cd
    • zoltan@webkit.org's avatar
      2010-01-07 Zoltan Horvath <zoltan@webkit.org> · fadf502d
      zoltan@webkit.org authored
              Reviewed by Holger Freyther.
      
              [Qt] Build fix when FAST_MALLOC_MATCH_VALIDATION=1
              https://bugs.webkit.org/show_bug.cgi?id=33312
      
              Remove pByte (committed in r42344 from #20422), because pByte doesn't
              exist and it is unnecessary.
      
              * wtf/FastMalloc.cpp:
              (WTF::TCMallocStats::realloc):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52911 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fadf502d
  3. 06 Jan, 2010 5 commits
    • bweinstein@apple.com's avatar
      Should be last part of Windows Build fix. · 8651d0fa
      bweinstein@apple.com authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52861 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8651d0fa
    • barraclough@apple.com's avatar
      QT build fix. · 8d8f8cd6
      barraclough@apple.com authored
      * runtime/Identifier.cpp:
      (JSC::createIdentifierTableSpecific):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52859 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8d8f8cd6
    • barraclough@apple.com's avatar
      Windows build fix part I. · a1a2d93c
      barraclough@apple.com authored
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52858 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a1a2d93c
    • mitz@apple.com's avatar
      Build fix · e9eb3811
      mitz@apple.com authored
      * runtime/Identifier.cpp:
      (JSC::createIdentifierTableSpecificCallback):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52857 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9eb3811
    • barraclough@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=33236 · ee9b4368
      barraclough@apple.com authored
      Remove m_identifierTable pointer from UString
      
      Reviewed by Sam Weinig.
      
      JavaScriptCore: 
      
      Currently every string holds a pointer so that during destruction,
      if a string has been used as an identifier, it can remove itself
      from the table.  By instead accessing the identifierTable via a
      thread specific tracking the table associated with the current
      globaldata, we can save the memory cost of this pointer.
      
      * API/APIShims.h:
      (JSC::APIEntryShimWithoutLock::APIEntryShimWithoutLock):
      (JSC::APIEntryShimWithoutLock::~APIEntryShimWithoutLock):
      (JSC::APICallbackShim::APICallbackShim):
      (JSC::APICallbackShim::~APICallbackShim):
      
          - change the API shims to track the identifierTable of the current JSGlobalData.
      
      * API/JSContextRef.cpp:
      (JSContextGroupCreate):
      
          - update creation of JSGlobalData for API usage to use new create method.
          - fix shim instanciation bug in JSGlobalContextCreateInGroup.
      
      * JavaScriptCore.exp:
      * runtime/Completion.cpp:
      (JSC::checkSyntax):
      (JSC::evaluate):
      
          - add asserts to check the identifierTable is being tracked correctly.
      
      * runtime/Identifier.cpp:
      (JSC::IdentifierTable::~IdentifierTable):
      (JSC::IdentifierTable::add):
      (JSC::Identifier::remove):
      (JSC::Identifier::checkSameIdentifierTable):
      (JSC::createIdentifierTableSpecificCallback):
      (JSC::createIdentifierTableSpecific):
      (JSC::createDefaultDataSpecific):
      
          - Use currentIdentifierTable() instead of UStringImpl::m_identifierTable.
          - Define methods to access the thread specific identifier tables.
      
      * runtime/Identifier.h:
      (JSC::ThreadIdentifierTableData::ThreadIdentifierTableData):
      (JSC::defaultIdentifierTable):
      (JSC::setDefaultIdentifierTable):
      (JSC::currentIdentifierTable):
      (JSC::setCurrentIdentifierTable):
      (JSC::resetCurrentIdentifierTable):
      
          - Declare methods to access the thread specific identifier tables.
      
      * runtime/JSGlobalData.cpp:
      (JSC::JSGlobalData::createNonDefault):
      (JSC::JSGlobalData::create):
      (JSC::JSGlobalData::sharedInstance):
      
          - creation of JSGlobalData objects, other than for API usage, associate themselves with the current thread.
      
      * runtime/JSGlobalData.h:
      * runtime/UStringImpl.cpp:
      (JSC::UStringImpl::destroy):
      
          - destroy() method should be using isIdentifier().
      
      * runtime/UStringImpl.h:
      (JSC::UStringImpl::isIdentifier):
      (JSC::UStringImpl::setIsIdentifier):
      (JSC::UStringImpl::checkConsistency):
      (JSC::UStringImpl::UStringImpl):
      
          - replace m_identifierTable with a single m_isIdentifier bit.
      
      * wtf/StringHashFunctions.h:
      (WTF::stringHash):
      
          - change string hash result from 32-bit to 31-bit, to free a bit in UStringImpl for m_isIdentifier.
      
      JavaScriptGlue: 
      
      Add API shims similar to those used in the JSC API to track the current identifierTable.
      
      * JSBase.cpp:
      (JSBase::Release):
      * JSUtils.cpp:
      (JSObjectKJSValue):
      (KJSValueToCFTypeInternal):
      (unprotectGlobalObject):
      (JSGlueAPIEntry::JSGlueAPIEntry):
      (JSGlueAPIEntry::~JSGlueAPIEntry):
      (JSGlueAPICallback::JSGlueAPICallback):
      (JSGlueAPICallback::~JSGlueAPICallback):
      * JSUtils.h:
      * JSValueWrapper.cpp:
      (JSValueWrapper::JSObjectCopyPropertyNames):
      (JSValueWrapper::JSObjectCopyProperty):
      (JSValueWrapper::JSObjectSetProperty):
      (JSValueWrapper::JSObjectCallFunction):
      (JSValueWrapper::JSObjectCopyCFValue):
      * JavaScriptGlue.cpp:
      (JSRunCreate):
      (JSRunEvaluate):
      (JSRunCheckSyntax):
      (JSCollect):
      * JavaScriptGlue.xcodeproj/project.pbxproj:
      * UserObjectImp.cpp:
      (UserObjectImp::callAsFunction):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52856 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ee9b4368
  4. 05 Jan, 2010 6 commits
    • eric@webkit.org's avatar
      2009-12-25 Patrick Gansterer <paroga@paroga.com> · 3ced8d78
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              Buildfix for WinCE + style fixes.
              https://bugs.webkit.org/show_bug.cgi?id=32939
      
              * jsc.cpp:
              (functionPrint):
              (functionQuit):
              (parseArguments):
              (fillBufferWithContentsOfFile):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52824 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3ced8d78
    • eric@webkit.org's avatar
      2010-01-05 Patrick Gansterer <paroga@paroga.com> · c9a5ff15
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              WinCE buildfix after r52791 (renamed PLATFORM(WINCE) to OS(WINCE)).
              https://bugs.webkit.org/show_bug.cgi?id=33205
      
              * jit/ExecutableAllocator.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52822 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c9a5ff15
    • eric@webkit.org's avatar
      2010-01-05 Patrick Gansterer <paroga@paroga.com> · 31f1972e
      eric@webkit.org authored
              Reviewed by Darin Adler.
      
              Added compiler error for unsupported platforms.
              https://bugs.webkit.org/show_bug.cgi?id=33112
      
              * jit/JITStubs.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52806 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      31f1972e
    • loki@webkit.org's avatar
      Follow r52729 in ARMAssembler. · 2b8542d8
      loki@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=33208
      
      Reviewed by Maciej Stachowiak.
      
      Use WTF_ARM_ARCH_AT_LEAST instead of ARM_ARCH_VERSION
      
      * assembler/ARMAssembler.cpp:
      (JSC::ARMAssembler::encodeComplexImm): Move tmp declaration to ARMv7
      * assembler/ARMAssembler.h:
      (JSC::ARMAssembler::):
      (JSC::ARMAssembler::bkpt):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52797 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2b8542d8
    • mjs@apple.com's avatar
      Unreviewed build fix for Gtk+ · c2c6570d
      mjs@apple.com authored
      Don't use // comments in Platform.h, at least some of them seem to make the version of GCC
      used on the Gtk buildbot unhappy.
      
      * wtf/Platform.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52794 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c2c6570d
    • mjs@apple.com's avatar
      2010-01-04 Maciej Stachowiak <mjs@apple.com> · acbcc283
      mjs@apple.com authored
              Reviewed by Darin Fisher.
      
              Reorganize, document and rename OS() platform macros.
              https://bugs.webkit.org/show_bug.cgi?id=33198
      
              * wtf/Platform.h: Rename, reorganize and document OS() macros.
      
              Adapt to name changes. Also fixed a few incorrect OS checks.
      
              * API/JSContextRef.cpp:
              * assembler/MacroAssemblerARM.cpp:
              (JSC::isVFPPresent):
              * assembler/MacroAssemblerX86Common.h:
              * bytecode/SamplingTool.cpp:
              * config.h:
              * interpreter/RegisterFile.cpp:
              (JSC::RegisterFile::~RegisterFile):
              * interpreter/RegisterFile.h:
              (JSC::RegisterFile::RegisterFile):
              (JSC::RegisterFile::grow):
              * jit/ExecutableAllocator.h:
              * jit/ExecutableAllocatorFixedVMPool.cpp:
              * jit/ExecutableAllocatorPosix.cpp:
              * jit/ExecutableAllocatorSymbian.cpp:
              * jit/ExecutableAllocatorWin.cpp:
              * jit/JITOpcodes.cpp:
              (JSC::JIT::privateCompileCTIMachineTrampolines):
              * jit/JITStubs.cpp:
              * jsc.cpp:
              (main):
              * parser/Grammar.y:
              * profiler/ProfileNode.cpp:
              (JSC::getCount):
              * runtime/Collector.cpp:
              (JSC::Heap::Heap):
              (JSC::Heap::allocateBlock):
              (JSC::Heap::freeBlockPtr):
              (JSC::currentThreadStackBase):
              (JSC::getCurrentPlatformThread):
              (JSC::suspendThread):
              (JSC::resumeThread):
              (JSC::getPlatformThreadRegisters):
              (JSC::otherThreadStackPointer):
              * runtime/Collector.h:
              * runtime/DateConstructor.cpp:
              * runtime/DatePrototype.cpp:
              (JSC::formatLocaleDate):
              * runtime/InitializeThreading.cpp:
              (JSC::initializeThreading):
              * runtime/MarkStack.h:
              (JSC::MarkStack::MarkStackArray::shrinkAllocation):
              * runtime/MarkStackPosix.cpp:
              * runtime/MarkStackSymbian.cpp:
              * runtime/MarkStackWin.cpp:
              * runtime/StringPrototype.cpp:
              (JSC::stringProtoFuncLastIndexOf):
              * runtime/TimeoutChecker.cpp:
              (JSC::getCPUTime):
              * runtime/UString.cpp:
              (JSC::UString::from):
              * wtf/Assertions.cpp:
              * wtf/Assertions.h:
              * wtf/CurrentTime.cpp:
              (WTF::lowResUTCTime):
              * wtf/CurrentTime.h:
              (WTF::getLocalTime):
              * wtf/DateMath.cpp:
              * wtf/FastMalloc.cpp:
              (WTF::TCMalloc_ThreadCache::InitModule):
              (WTF::TCMallocStats::):
              * wtf/FastMalloc.h:
              * wtf/MathExtras.h:
              * wtf/RandomNumber.cpp:
              (WTF::randomNumber):
              * wtf/RandomNumberSeed.h:
              (WTF::initializeRandomNumberGenerator):
              * wtf/StringExtras.h:
              * wtf/TCSpinLock.h:
              (TCMalloc_SpinLock::Unlock):
              (TCMalloc_SlowLock):
              * wtf/TCSystemAlloc.cpp:
              * wtf/ThreadSpecific.h:
              (WTF::::destroy):
              * wtf/Threading.h:
              * wtf/ThreadingPthreads.cpp:
              (WTF::initializeThreading):
              (WTF::isMainThread):
              * wtf/ThreadingWin.cpp:
              (WTF::wtfThreadEntryPoint):
              (WTF::createThreadInternal):
              * wtf/VMTags.h:
              * wtf/unicode/icu/CollatorICU.cpp:
              (WTF::Collator::userDefault):
              * wtf/win/MainThreadWin.cpp:
              (WTF::initializeMainThreadPlatform):
      2010-01-04  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Darin Fisher.
      
              Reorganize, document and rename OS() platform macros.
              https://bugs.webkit.org/show_bug.cgi?id=33198
      
              Adapt to name changes.
      
              * src/ChromiumBridge.cpp:
              * src/EditorClientImpl.cpp:
              (WebKit::EditorClientImpl::isSelectTrailingWhitespaceEnabled):
              (WebKit::):
              (WebKit::EditorClientImpl::handleEditingKeyboardEvent):
              * src/FrameLoaderClientImpl.cpp:
              (WebKit::FrameLoaderClientImpl::createPlugin):
              * src/GraphicsContext3D.cpp:
              (WebCore::GraphicsContext3DInternal::GraphicsContext3DInternal):
              (WebCore::GraphicsContext3DInternal::~GraphicsContext3DInternal):
              (WebCore::GraphicsContext3DInternal::makeContextCurrent):
              * src/WebFrameImpl.cpp:
              (WebKit::WebFrameImpl::selectionAsText):
              (WebKit::WebFrameImpl::printPage):
              * src/WebPluginContainerImpl.cpp:
              (WebKit::WebPluginContainerImpl::handleMouseEvent):
              (WebKit::WebPluginContainerImpl::handleKeyboardEvent):
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::mouseDown):
              (WebKit::WebViewImpl::mouseContextMenu):
              (WebKit::WebViewImpl::mouseUp):
              (WebKit::WebViewImpl::keyEvent):
              (WebKit::WebViewImpl::sendContextMenuEvent):
              (WebKit::WebViewImpl::setScrollbarColors):
              (WebKit::WebViewImpl::navigationPolicyFromMouseEvent):
      2010-01-04  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Darin Fisher.
      
              Reorganize, document and rename OS() platform macros.
              https://bugs.webkit.org/show_bug.cgi?id=33198
      
              Adapt to name changes.
      
              * webkit/webkitwebsettings.cpp:
              (webkit_get_user_agent):
      2010-01-04  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Darin Fisher.
      
              Reorganize, document and rename OS() platform macros.
              https://bugs.webkit.org/show_bug.cgi?id=33198
      
              Adapt to name changes. Also fixed a few incorrect OS checks.
      
              * accessibility/AccessibilityObject.h:
              * config.h:
              * dom/SelectElement.cpp:
              (WebCore::SelectElement::listBoxDefaultEventHandler):
              * inspector/InspectorFrontendHost.cpp:
              (WebCore::InspectorFrontendHost::platform):
              * loader/CachedFont.cpp:
              * loader/FTPDirectoryDocument.cpp:
              * loader/FTPDirectoryParser.cpp:
              * page/EventHandler.cpp:
              * page/Frame.cpp:
              (WebCore::Frame::setUseSecureKeyboardEntry):
              * page/NavigatorBase.cpp:
              (WebCore::NavigatorBase::platform):
              * page/Page.h:
              * page/Settings.cpp:
              (WebCore::Settings::Settings):
              * page/Settings.h:
              * page/chromium/DragControllerChromium.cpp:
              (WebCore::DragController::isCopyKeyDown):
              * page/chromium/EventHandlerChromium.cpp:
              (WebCore::EventHandler::accessKeyModifiers):
              * page/win/EventHandlerWin.cpp:
              (WebCore::EventHandler::createDraggingClipboard):
              * platform/FileSystem.h:
              * platform/KeyboardCodes.h:
              * platform/PurgeableBuffer.h:
              * platform/chromium/ChromiumBridge.h:
              * platform/chromium/ClipboardChromium.cpp:
              (WebCore::ClipboardChromium::writeRange):
              * platform/chromium/ClipboardUtilitiesChromium.cpp:
              * platform/chromium/ClipboardUtilitiesChromium.h:
              * platform/chromium/PasteboardChromium.cpp:
              (WebCore::Pasteboard::writeSelection):
              (WebCore::Pasteboard::writePlainText):
              (WebCore::Pasteboard::documentFragment):
              * platform/chromium/PlatformKeyboardEventChromium.cpp:
              (WebCore::PlatformKeyboardEvent::disambiguateKeyDownEvent):
              (WebCore::PlatformKeyboardEvent::currentCapsLockState):
              * platform/chromium/PopupMenuChromium.cpp:
              (WebCore::PopupListBox::layout):
              (WebCore::PopupMenu::show):
              * platform/graphics/BitmapImage.h:
              (WebCore::BitmapImage::mayFillWithSolidColor):
              * platform/graphics/FloatPoint.h:
              * platform/graphics/FloatRect.h:
              * platform/graphics/FloatSize.h:
              * platform/graphics/FontCache.cpp:
              (WebCore::alternateFamilyName):
              * platform/graphics/FontCache.h:
              * platform/graphics/FontFastPath.cpp:
              (WebCore::Font::glyphDataForCharacter):
              * platform/graphics/GlyphBuffer.h:
              (WebCore::GlyphBuffer::advanceAt):
              (WebCore::GlyphBuffer::add):
              * platform/graphics/Gradient.h:
              * platform/graphics/GraphicsContext.cpp:
              * platform/graphics/GraphicsContext.h:
              * platform/graphics/GraphicsContext3D.h:
              * platform/graphics/ImageSource.h:
              * platform/graphics/IntRect.h:
              * platform/graphics/MediaPlayer.cpp:
              * platform/graphics/Path.h:
              * platform/graphics/Pattern.h:
              * platform/graphics/SimpleFontData.h:
              * platform/graphics/cg/ColorCG.cpp:
              * platform/graphics/cg/GraphicsContextCG.cpp:
              * platform/graphics/chromium/FontCustomPlatformData.cpp:
              (WebCore::FontCustomPlatformData::~FontCustomPlatformData):
              (WebCore::FontCustomPlatformData::fontPlatformData):
              (WebCore::createFontCustomPlatformData):
              * platform/graphics/chromium/FontCustomPlatformData.h:
              * platform/graphics/chromium/FontPlatformData.h:
              * platform/graphics/opentype/OpenTypeUtilities.cpp:
              * platform/graphics/opentype/OpenTypeUtilities.h:
              * platform/graphics/qt/GraphicsContextQt.cpp:
              (WebCore::GraphicsContext::getWindowsContext):
              * platform/graphics/qt/ImageQt.cpp:
              * platform/graphics/skia/GraphicsContextSkia.cpp:
              (WebCore::GraphicsContext::clipToImageBuffer):
              * platform/graphics/skia/ImageBufferSkia.cpp:
              (WebCore::ImageBuffer::ImageBuffer):
              * platform/graphics/skia/PlatformContextSkia.cpp:
              (PlatformContextSkia::State::State):
              (PlatformContextSkia::PlatformContextSkia):
              (PlatformContextSkia::save):
              (PlatformContextSkia::restore):
              * platform/graphics/skia/PlatformContextSkia.h:
              * platform/graphics/win/IconWin.cpp:
              (WebCore::Icon::createIconForFiles):
              (WebCore::Icon::paint):
              * platform/graphics/wx/GraphicsContextWx.cpp:
              * platform/gtk/FileSystemGtk.cpp:
              (WebCore::filenameToString):
              (WebCore::filenameFromString):
              (WebCore::filenameForDisplay):
              * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
              * platform/network/curl/ResourceHandleManager.cpp:
              * platform/network/soup/ResourceHandleSoup.cpp:
              (WebCore::):
              * platform/text/String.cpp:
              (WebCore::String::format):
              (WebCore::String::number):
              * platform/text/TextEncoding.cpp:
              (WebCore::TextEncoding::encode):
              * platform/text/TextEncodingRegistry.cpp:
              (WebCore::buildBaseTextCodecMaps):
              (WebCore::extendTextCodecMaps):
              * platform/text/TextStream.cpp:
              * platform/text/TextStream.h:
              * platform/text/qt/TextCodecQt.cpp:
              (WebCore::TextCodecQt::decode):
              * platform/win/PlatformMouseEventWin.cpp:
              (WebCore::messageToEventType):
              (WebCore::PlatformMouseEvent::PlatformMouseEvent):
              * platform/win/PlatformScreenWin.cpp:
              (WebCore::deviceInfoForWidget):
              (WebCore::screenIsMonochrome):
              * platform/win/PopupMenuWin.cpp:
              (WebCore::PopupMenu::show):
              (WebCore::PopupMenu::paint):
              (WebCore::PopupMenu::registerClass):
              (WebCore::PopupMenu::PopupMenuWndProc):
              (WebCore::PopupMenu::wndProc):
              * platform/win/SystemTimeWin.cpp:
              (WebCore::userIdleTime):
              * platform/wx/FileSystemWx.cpp:
              (WebCore::unloadModule):
              * plugins/PluginDatabase.cpp:
              * plugins/PluginPackage.cpp:
              (WebCore::PluginPackage::compareFileVersion):
              * plugins/PluginPackage.h:
              * plugins/PluginView.cpp:
              (WebCore::PluginView::setFrameRect):
              (WebCore::PluginView::stop):
              (WebCore::PluginView::PluginView):
              * plugins/PluginView.h:
              * plugins/win/PluginDatabaseWin.cpp:
              (WebCore::addWindowsMediaPlayerPluginDirectory):
              (WebCore::addMacromediaPluginDirectories):
              * plugins/win/PluginPackageWin.cpp:
              (WebCore::PluginPackage::load):
              * plugins/win/PluginViewWin.cpp:
              (WebCore::registerPluginView):
              (WebCore::PluginView::wndProc):
              (WebCore::PluginView::updatePluginWidget):
              (WebCore::PluginView::paintIntoTransformedContext):
              (WebCore::PluginView::paintWindowedPluginIntoContext):
              (WebCore::PluginView::paint):
              (WebCore::PluginView::handleMouseEvent):
              (WebCore::PluginView::setParent):
              (WebCore::PluginView::setNPWindowRect):
              (WebCore::PluginView::platformStart):
      2010-01-04  Maciej Stachowiak  <mjs@apple.com>
      
              Reviewed by Darin Fisher.
      
              Reorganize, document and rename OS() platform macros.
              https://bugs.webkit.org/show_bug.cgi?id=33198
      
              Adapt to name changes.
              
              * DumpRenderTree/DumpRenderTree.h:
              * DumpRenderTree/config.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52791 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      acbcc283
  5. 04 Jan, 2010 9 commits