1. 25 Sep, 2012 3 commits
  2. 24 Sep, 2012 2 commits
    • mark.lam@apple.com's avatar
      Deleting the classic interpreter and cleaning up some build options. · 74a9e837
      mark.lam@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=96969.
      
      Reviewed by Geoffrey Garen.
      
      Source/JavaScriptCore: 
      
      * bytecode/CodeBlock.cpp:
      (JSC::CodeBlock::dump):
      (JSC::CodeBlock::finalizeUnconditionally):
      (JSC::CodeBlock::stronglyVisitStrongReferences):
      (JSC):
      * bytecode/Instruction.h:
      (JSC::Instruction::Instruction):
      * interpreter/AbstractPC.cpp:
      (JSC::AbstractPC::AbstractPC):
      * interpreter/AbstractPC.h:
      (AbstractPC):
      * interpreter/CallFrame.h:
      (ExecState):
      * interpreter/Interpreter.cpp:
      (JSC):
      (JSC::Interpreter::Interpreter):
      (JSC::Interpreter::~Interpreter):
      (JSC::Interpreter::initialize):
      (JSC::Interpreter::isOpcode):
      (JSC::Interpreter::unwindCallFrame):
      (JSC::getLineNumberForCallFrame):
      (JSC::getCallerInfo):
      (JSC::getSourceURLFromCallFrame):
      (JSC::Interpreter::execute):
      (JSC::Interpreter::executeCall):
      (JSC::Interpreter::executeConstruct):
      (JSC::Interpreter::retrieveArgumentsFromVMCode):
      (JSC::Interpreter::retrieveCallerFromVMCode):
      (JSC::Interpreter::retrieveLastCaller):
      * interpreter/Interpreter.h:
      (JSC::Interpreter::getOpcodeID):
      (Interpreter):
      * jit/ExecutableAllocatorFixedVMPool.cpp:
      (JSC::FixedVMPoolExecutableAllocator::FixedVMPoolExecutableAllocator):
      * offlineasm/asm.rb:
      * offlineasm/offsets.rb:
      * runtime/Executable.cpp:
      (JSC::EvalExecutable::compileInternal):
      (JSC::ProgramExecutable::compileInternal):
      (JSC::FunctionExecutable::compileForCallInternal):
      (JSC::FunctionExecutable::compileForConstructInternal):
      * runtime/Executable.h:
      (JSC::NativeExecutable::create):
      (NativeExecutable):
      (JSC::NativeExecutable::finishCreation):
      * runtime/JSGlobalData.cpp:
      (JSC):
      (JSC::JSGlobalData::JSGlobalData):
      (JSC::JSGlobalData::getHostFunction):
      * runtime/JSGlobalData.h:
      (JSGlobalData):
      (JSC::JSGlobalData::canUseJIT):
      (JSC::JSGlobalData::canUseRegExpJIT):
      * runtime/Options.cpp:
      (JSC::Options::initialize):
      
      Source/WebKit/blackberry: 
      
      * WebCoreSupport/AboutDataEnableFeatures.in:
      
      Source/WTF: 
      
      * wtf/OSAllocatorPosix.cpp:
      (WTF::OSAllocator::reserveAndCommit):
      * wtf/Platform.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129453 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      74a9e837
    • paroga@webkit.org's avatar
      Remove String::operator+=() · e65252dc
      paroga@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=96172
      
      Reviewed by Benjamin Poulain.
      
      Source/WebCore:
      
      Replace the last usage with String::append() in Gtk.
      
      * platform/gtk/GtkInputMethodFilter.cpp:
      (WebCore::GtkInputMethodFilter::handleCommit):
      
      Source/WTF:
      
      * wtf/Platform.h:
      * wtf/text/WTFString.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129433 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e65252dc
  3. 13 Sep, 2012 1 commit
    • commit-queue@webkit.org's avatar
      Make compile with both OS(WINCE) and PLATFORM(QT) support · 5d3f6453
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=95536
      
      Patch by Kevin Funk <kevin.funk@kdab.com> on 2012-09-13
      Reviewed by Simon Hausmann.
      
      Source/JavaScriptCore:
      
      Do not link against advapi32 on wince
      
      * jsc.pro:
      
      Source/WebCore:
      
      * WebCore.pri:
      Set defines for the WinCE platform build
      * platform/graphics/BitmapImage.cpp:
      Use default implementation in BitmapImage::reportMemoryUsage() when Qt support available
      * platform/graphics/GraphicsContext.cpp:
      Same as above: use default implementation
       * platform/win/ClipboardUtilitiesWin.cpp:
      Remove unnecessary include
      
      Source/WTF:
      
      Fixes for Windows CE.
      
      * WTF.pri:
      Also include path for mt19937ar.c
      * wtf/unicode/icu/CollatorICU.cpp:
      Fix undeclared strdup() on CE7
      * wtf/Platform.h:
      
      Tools:
      
      Fix wince support in qmake files
      
      * Tools.pro:
      * qmake/mkspecs/features/configure.prf:
      * qmake/mkspecs/features/default_post.prf:
      * qmake/mkspecs/features/features.prf:
      * qmake/mkspecs/features/functions.prf:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128558 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5d3f6453
  4. 11 Sep, 2012 1 commit
    • vestbo@webkit.org's avatar
      [Qt] Add a configure step to the Qt build system · a5de2269
      vestbo@webkit.org authored
      This allows building the Qt port using just 'qmake WebKit.pro'. Using
      the build-webkit script is still supported, and will add slightly more
      logic to the build, such as detecting the need for clean or incremental
      builds.
      
      Internally, the build system now uses a new variable, WEBKIT_CONFIG, for
      all things related to configuring the build, such as use/have/enable flags,
      and these are translated to defines in default_post. Project files should
      no longer check contains(DEFINES,...) to detect features, but use the new
      enable?(), use?(), and have?() functions. The no_webkit1 and no_webkit2
      options have been translated into WEBKIT_CONFIG options as well, and can
      be checked using build?().
      
      Reviewed by Simon Hausmann.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128174 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a5de2269
  5. 07 Sep, 2012 1 commit
  6. 06 Sep, 2012 3 commits
    • commit-queue@webkit.org's avatar
      [Qt] Deprecate String += operator · cb705455
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=95895
      
      Patch by Lauro Neto <lauro.neto@openbossa.org> on 2012-09-06
      Reviewed by Benjamin Poulain.
      
      Source/WebCore:
      
      Replaced String +=() with append.
      
      * platform/qt/RenderThemeQt.cpp:
      (WebCore::RenderThemeQt::extraMediaControlsStyleSheet):
      
      Source/WTF:
      
      Remove Qt from WTF_DEPRECATED_STRING_OPERATORS guard.
      
      * wtf/Platform.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127802 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cb705455
    • hausmann@webkit.org's avatar
      [Qt] Various small Windows / MSVC build fixes · cd603beb
      hausmann@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=95934
      
      Reviewed by Kenneth Rohde Christiansen.
      
      Source/WebKit2:
      
      * Shared/LayerTreeContext.h: Include stdint.h due to the use of uint32_t as layer id.
      * UIProcess/API/qt/qquickwebview_p.h:
      (WebKit): Fix struct vs. class forward declaration mismatch, causing linking errors.
      * UIProcess/API/qt/tests/bytearraytestdata.h: Remove export macro from internal test class
      that is not used anymore. Using the export macro from a DLL when the code in question is not
      part of the DLL results in the export macro expanding to dllimport, giving incorrect linkage
      for the unit test.
      * WebProcess/qt/WebProcessMainQt.cpp:
      (WebKit::WebProcessMainQt): Removed explicit call to srandom(), which is not available on Windows.
      The call appears to be unnecessary in the light of the WTF::initializeThreading() call below, which
      in turn calls WTF::initializeRandomNumberGenerator(), which does the same thing already (and isn't
      needed on Windows, as per comment in wtf/RandomNumberSeed.h)
      
      Source/WTF:
      
      For the Qt build on Windows, do not enable WTF_USE_UNIX_DOMAIN_SOCKETS for
      WebKit2 IPC.
      
      * wtf/Platform.h:
      
      Tools:
      
      setFocus takes a boolean as argument: Don't try to implicitly convert
      an enum to a boolean, MSVC doesn't like that. The intent here is to
      enable focus, so just pass true.
      
      * WebKitTestRunner/qt/PlatformWebViewQt.cpp:
      (WTR::PlatformWebView::focus):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127726 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd603beb
    • abarth@webkit.org's avatar
      Remove WTF::String::operator+= · 68cba3cc
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=95797
      
      Patch by Adam Barth <abarth@chromium.org> on 2012-09-06
      Reviewed by Sam Weinig.
      
      This patch encloses WTF::String::operator+= in an ifdef so that we can
      gradually remove it from the various port-specific files. The ifdef
      lets us whitelist use of operator+= in individual files during the
      transition.
      
      * wtf/Platform.h
      * wtf/text/WTFString.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127702 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      68cba3cc
  7. 05 Sep, 2012 1 commit
  8. 01 Sep, 2012 1 commit
    • commit-queue@webkit.org's avatar
      LLInt C loop backend. · e13567fb
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=91052.
      
      Patch by Mark Lam <mark.lam@apple.com> on 2012-09-01
      Reviewed by Filip Pizlo.
      
      Source/JavaScriptCore:
      
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * bytecode/CodeBlock.cpp:
      (JSC::CodeBlock::dump):
      (JSC::CodeBlock::bytecodeOffset):
      * interpreter/Interpreter.cpp:
      (JSC::Interpreter::execute):
      (JSC::Interpreter::executeCall):
      (JSC::Interpreter::executeConstruct):
      (JSC):
      * interpreter/Interpreter.h:
      * jit/JITStubs.h:
      (JITStackFrame):
      (JSC):
      * llint/LLIntCLoop.cpp: Added.
      (JSC):
      (LLInt):
      (JSC::LLInt::CLoop::initialize):
      (JSC::LLInt::CLoop::catchRoutineFor):
      (JSC::LLInt::CLoop::hostCodeEntryFor):
      (JSC::LLInt::CLoop::jsCodeEntryWithArityCheckFor):
      (JSC::LLInt::CLoop::jsCodeEntryFor):
      * llint/LLIntCLoop.h: Added.
      (JSC):
      (LLInt):
      (CLoop):
      * llint/LLIntData.cpp:
      (JSC::LLInt::initialize):
      * llint/LLIntData.h:
      (JSC):
      * llint/LLIntOfflineAsmConfig.h:
      * llint/LLIntOpcode.h:
      * llint/LLIntThunks.cpp:
      (LLInt):
      * llint/LowLevelInterpreter.asm:
      * llint/LowLevelInterpreter.cpp:
      (LLInt):
      (JSC::LLInt::Ints2Double):
      (JSC):
      (JSC::CLoop::execute):
      * llint/LowLevelInterpreter.h:
      (JSC):
      * llint/LowLevelInterpreter32_64.asm:
      * llint/LowLevelInterpreter64.asm:
      * offlineasm/asm.rb:
      * offlineasm/backends.rb:
      * offlineasm/cloop.rb: Added.
      * offlineasm/instructions.rb:
      * runtime/Executable.h:
      (ExecutableBase):
      (JSC::ExecutableBase::hostCodeEntryFor):
      (JSC::ExecutableBase::jsCodeEntryFor):
      (JSC::ExecutableBase::jsCodeWithArityCheckEntryFor):
      (JSC::ExecutableBase::catchRoutineFor):
      (NativeExecutable):
      * runtime/JSValue.h:
      (JSC):
      (LLInt):
      (JSValue):
      * runtime/JSValueInlineMethods.h:
      (JSC):
      (JSC::JSValue::JSValue):
      * runtime/Options.cpp:
      (JSC::Options::initialize):
      
      Source/WTF:
      
      Added configs for the llint C loop backend.
      
      * wtf/Platform.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127374 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e13567fb
  9. 30 Aug, 2012 2 commits
    • commit-queue@webkit.org's avatar
      Render unto #ifdef's that which belong to them. · b8419483
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=95482.
      
      Patch by Mark Lam <mark.lam@apple.com> on 2012-08-30
      Reviewed by Filip Pizlo.
      
      Source/JavaScriptCore:
      
      Refining / disambiguating between #ifdefs and adding some. For
      example, ENABLE(JIT) is conflated with ENABLE(LLINT) in some places.
      Also, we need to add ENABLE(COMPUTED_GOTO_OPCODES) to indicate that we
      want interpreted opcodes to use COMPUTED GOTOs apart from ENABLE(LLINT)
      and ENABLE(COMPUTED_GOTO_CLASSIC_INTERPRETER). Also cleaned up #ifdefs
      in certain places which were previously incorrect.
      
      * bytecode/CodeBlock.cpp:
      (JSC):
      (JSC::CodeBlock::bytecodeOffset):
      * bytecode/CodeBlock.h:
      (CodeBlock):
      * bytecode/Opcode.h:
      (JSC::padOpcodeName):
      * config.h:
      * dfg/DFGOperations.cpp:
      * interpreter/AbstractPC.cpp:
      (JSC::AbstractPC::AbstractPC):
      * interpreter/CallFrame.h:
      (ExecState):
      * interpreter/Interpreter.cpp:
      (JSC::Interpreter::~Interpreter):
      (JSC::Interpreter::initialize):
      (JSC::Interpreter::isOpcode):
      (JSC::Interpreter::unwindCallFrame):
      (JSC::getLineNumberForCallFrame):
      (JSC::getCallerInfo):
      (JSC::Interpreter::execute):
      (JSC::Interpreter::executeCall):
      (JSC::Interpreter::executeConstruct):
      (JSC::Interpreter::privateExecute):
      * interpreter/Interpreter.h:
      (JSC::Interpreter::getOpcode):
      (JSC::Interpreter::getOpcodeID):
      (Interpreter):
      * jit/HostCallReturnValue.h:
      * jit/JITCode.h:
      (JITCode):
      * jit/JITExceptions.cpp:
      * jit/JITExceptions.h:
      * jit/JSInterfaceJIT.h:
      * llint/LLIntData.h:
      (JSC::LLInt::getOpcode):
      * llint/LLIntEntrypoints.cpp:
      (JSC::LLInt::getFunctionEntrypoint):
      (JSC::LLInt::getEvalEntrypoint):
      (JSC::LLInt::getProgramEntrypoint):
      * llint/LLIntOffsetsExtractor.cpp:
      (JSC::LLIntOffsetsExtractor::dummy):
      * llint/LLIntSlowPaths.cpp:
      (LLInt):
      * runtime/JSGlobalData.cpp:
      (JSC):
      
      Source/WTF:
      
      * wtf/Platform.h: Added ENABLE(COMPUTED_GOTO_OPCODES).
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127199 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b8419483
    • benjamin@webkit.org's avatar
      Replace JSC::UString by WTF::String · cff06e46
      benjamin@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=95271
      
      Patch by Benjamin Poulain <bpoulain@apple.com> on 2012-08-30
      Reviewed by Geoffrey Garen.
      
      Source/JavaScriptCore: 
      
      Having JSC::UString and WTF::String increase the complexity of working on WebKit, and
      add useless conversions in the bindings. It also cause some code bloat.
      
      The performance advantages of UString have been ported over in previous patches. This patch
      is the last step: getting rid of UString.
      
      In addition to the simplified code, this also reduce the binary size by 15kb on x86_64.
      
      * API/OpaqueJSString.cpp:
      (OpaqueJSString::ustring):
      * runtime/Identifier.h:
      (JSC::Identifier::ustring):
      To avoid changing everything at once, the function named ustring() were kept as is. They
      will be renamed in a follow up patch.
      
      * runtime/JSString.h:
      (JSC::JSString::string):
      (JSC::JSValue::toWTFString):
      (JSC::inlineJSValueNotStringtoString):
      (JSC::JSValue::toWTFStringInline):
      Since JSValue::toString() already exist (and return the J...
      cff06e46
  10. 24 Aug, 2012 1 commit
  11. 23 Aug, 2012 1 commit
    • eae@chromium.org's avatar
      Add saturation arithmetic support to FractionalLayoutUnit · 5fcc0d68
      eae@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=94364
      
      Reviewed by Benjamin Poulain.
      
      Source/WebCore:
      
      Add experimental saturation arithmetic support to FractionalLayoutUnit,
      guarded by a flag.
      The idea here is to saturate (or clamp) rather than overflow when
      computing positions and sizes.
      
      No new tests for WebCore, not enabled by default.
      
      * platform/FractionalLayoutUnit.h:
      (WebCore::FractionalLayoutUnit::intMinForLayoutUnit):
      Use INT_MIN instead of -INT_MAX to compute minimum value as the two are
      not the same.
      
      (WebCore::FractionalLayoutUnit::FractionalLayoutUnit):
      (WebCore::FractionalLayoutUnit::fromFloatCeil):
      (WebCore::FractionalLayoutUnit::fromFloatFloor):
      (WebCore::FractionalLayoutUnit::fromFloatRound):
      (WebCore::FractionalLayoutUnit::setValue):
      Add range checks.
      
      (WebCore::operator*):
      (WebCore::operator+):
      (WebCore::operator-):
      (WebCore::operator+=):
      (WebCore::operator-=):
      Use the saturatedAddition and saturatedSubtraction functions, which have
      been optimized to reduce branching, instead of range checks for the most
      common operators.
      
      Source/WTF:
      
      Add support functions for saturated addition and subtraction.
      
      Test: TestWebKitAPI/Tests/WTF/SaturatedArithmeticOperations.cpp
      
      * GNUmakefile.list.am:
      * WTF.gypi:
      * WTF.pro:
      * WTF.vcproj/WTF.vcproj:
      * WTF.xcodeproj/project.pbxproj:
      * WTF/wtf/CMakeLists.txt:
      Add SaturatedArithmetic.h to build files.
      
      * wtf/SaturatedArithmetic.h: Added.
      (saturatedAddition):
      (saturatedSubtraction):
      Support functions for saturated addition/subtraction. Compares the signed
      bit of the values instead of using range checks to reduce branching.
      
      * wtf/Platform.h:
      Add ENABLE_SATURATED_LAYOUT_ARITHMETIC flag.
      
      Tools:
      
      Add test for new saturatedArithmetic functions.
      
      * TestWebKitAPI/CMakeLists.txt:
      * TestWebKitAPI/GNUmakefile.am:
      * TestWebKitAPI/TestWebKitAPI.gypi:
      * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
      * TestWebKitAPI/Tests/WTF/SaturatedArithmeticOperations.cpp: Added.
      (TestWebKitAPI):
      (TestWebKitAPI::TEST):
      * TestWebKitAPI/win/TestWebKitAPI.vcproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126509 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5fcc0d68
  12. 22 Aug, 2012 1 commit
    • allan.jensen@nokia.com's avatar
      [Qt] Optionally support smooth-scrolling on all platforms · abefb4bd
      allan.jensen@nokia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=74926
      
      Reviewed by Simon Hausmann.
      
      Source/WebCore:
      
      Make GestureAnimations depend on the GESTURE_ANIMATION feature flag,
      since GestureAnimations are unused on some platforms.
      
      * Target.pri:
      * platform/ScrollAnimatorNone.cpp:
      (WebCore::ScrollAnimatorNone::fireUpAnAnimation):
      (WebCore::ScrollAnimatorNone::cancelAnimations):
      (WebCore::ScrollAnimatorNone::animationTimerFired):
      * platform/ScrollAnimatorNone.h:
      (ScrollAnimatorNone):
      
      Source/WebKit/qt:
      
      Expose the enable scroll animator setting.
      
      * Api/qwebsettings.cpp:
      (QWebSettingsPrivate::apply):
      (QWebSettings::QWebSettings):
      * Api/qwebsettings.h:
      
      Source/WebKit2:
      
      Expose scroll-animator preference, but ensure animated smooth scrolling
      on the web process side is disabled when scrolling has been delegated
      to the UI process.
      
      * Shared/WebPreferencesStore.h:
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::setResizesToContentsUsingLayoutSize):
      (WebKit::WebPage::updatePreferences):
      
      Source/WTF:
      
      Initialize GESTURE_ANIMATION feature flag.
      
      * wtf/Platform.h:
      
      Tools:
      
      Enabled SMOOTH_SCROLLING on Qt, and expose the enable scroll animator
      setting in QtTestBrowser so it can be tested.
      
      * QtTestBrowser/launcherwindow.cpp:
      (LauncherWindow::createChrome):
      (LauncherWindow::toggleScrollAnimator):
      * QtTestBrowser/launcherwindow.h:
      (WindowOptions::WindowOptions):
      (WindowOptions):
      (LauncherWindow):
      * qmake/mkspecs/features/features.pri:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126291 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      abefb4bd
  13. 17 Aug, 2012 1 commit
  14. 14 Aug, 2012 1 commit
  15. 11 Aug, 2012 1 commit
    • weinig@apple.com's avatar
      Enable XPC Service based WebProcess with runtime flag · 342392b9
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=93773
      
      Reviewed by Dan Bernstein.
      
      Source/WebKit2: 
      
      Use the XPC Service for WebProcess code path if WEBKIT_USE_XPC_SERVICE_FOR_WEB_PROCESS
      is set in the environment.
      
      * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
      (WebKit::launchXPCService):
      Fix issue that was causing this code not to compile. This was not caught before since
      the code was not being built.
              
      * UIProcess/WebProcessProxy.cpp:
      (WebKit::WebProcessProxy::connect):
      Switch from hard coding always using the XPC Service code path if
      HAVE(XPC) was true, to doing it conditionally on an environment variable.
      
      Source/WTF: 
      
      * wtf/Platform.h:
      Define HAVE_XPC on 10.7 and later.
      
      Tools: 
      
      Convert --use-web-process-xpc-service passed to run-safari (and similar scripts)
      to setting WEBKIT_USE_XPC_SERVICE_FOR_WEB_PROCESS=YES in the environment and setting
      up __XPC_DYLD_FRAMEWORK_PATH and __XPC_DYLD_INSERT_LIBRARIES variables. NOTE: using
      the XPC service is not the default code path.
      
      * Scripts/webkitdirs.pm:
      (shouldUseXPCServiceForWebProcess):
      (determineShouldUseXPCServiceForWebProcess):
      Add functions to extract --use-web-process-xpc-service from ARGV and set a
      global variable.
      
      (printHelpAndExitForRunAndDebugWebKitAppIfNeeded):
      Add help text for --use-web-process-xpc-service.
      
      (runMacWebKitApp):
      Set the WEBKIT_USE_XPC_SERVICE_FOR_WEB_PROCESS environment variable and DYLD
      if --use-web-process-xpc-service was passed on the command line.
      
      (execMacWebKitAppForDebugging):
      Set the WEBKIT_USE_XPC_SERVICE_FOR_WEB_PROCESS environment variable and DYLD
      if --use-web-process-xpc-service was passed on the command line. Also, bail
      if both --use-web-process-xpc-service and --target-web-process are passed on
      the command line, as we don't currently support using both.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125361 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      342392b9
  16. 04 Aug, 2012 1 commit
    • noam.rosenthal@nokia.com's avatar
      [Qt] UI_SIDE_COMPOSITING code has confusing names · 8c7ea6f4
      noam.rosenthal@nokia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=93164
      
      Reviewed by Kenneth Rohde Christiansen.
      
      Source/WebKit2:
      
      Renamed and consolidated code guarded under UI_SIDE_COMPOSITING, now under
      USE(COORDINATED_GRAPHICS) guard and CoordinatedGraphics folders.
      
      * CMakeLists.txt:
      * DerivedSources.pri:
      * Shared/WebCoreArgumentCoders.cpp:
      (CoreIPC):
      * Shared/WebCoreArgumentCoders.h:
      * Shared/WebLayerTreeInfo.cpp:
      * Shared/WebLayerTreeInfo.h:
      * Target.pri:
      * UIProcess/API/qt/qquickwebpage.cpp:
      (QQuickWebPage::updatePaintNode):
      * UIProcess/API/qt/raw/qrawwebview.cpp:
      (QRawWebView::paint):
      * UIProcess/CoordinatedGraphics/CoordinatedBackingStore.cpp: Renamed from Source/WebKit2/UIProcess/texmap/LayerBackingStore.cpp.
      * UIProcess/CoordinatedGraphics/CoordinatedBackingStore.h: Renamed from Source/WebKit2/UIProcess/texmap/LayerBackingStore.h.
      * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.cpp: Renamed from Source/WebKit2/UIProcess/LayerTreeCoordinatorProxy.cpp.
      * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.h: Renamed from Source/WebKit2/UIProcess/LayerTreeCoordinatorProxy.h.
      * UIProcess/CoordinatedGraphics/LayerTreeCoordinatorProxy.messages.in: Renamed from Source/WebKit2/UIProcess/LayerTreeCoordinatorProxy.messages.in.
      * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp: Renamed from Source/WebKit2/UIProcess/WebLayerTreeRenderer.cpp.
      * UIProcess/CoordinatedGraphics/LayerTreeRenderer.h: Renamed from Source/WebKit2/UIProcess/WebLayerTreeRenderer.h.
      * UIProcess/DrawingAreaProxy.cpp:
      (WebKit):
      * UIProcess/DrawingAreaProxy.h:
      (DrawingAreaProxy):
      * UIProcess/DrawingAreaProxyImpl.cpp:
      (WebKit::DrawingAreaProxyImpl::DrawingAreaProxyImpl):
      (WebKit::DrawingAreaProxyImpl::enterAcceleratedCompositingMode):
      (WebKit):
      * UIProcess/DrawingAreaProxyImpl.h:
      (DrawingAreaProxyImpl):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::didReceiveMessage):
      * UIProcess/qt/QtWebPageSGNode.cpp:
      (WebKit::ContentsSGNode::ContentsSGNode):
      (WebKit::ContentsSGNode::layerTreeRenderer):
      (ContentsSGNode):
      (WebKit::QtWebPageSGNode::setRenderer):
      * UIProcess/qt/QtWebPageSGNode.h:
      (WebKit):
      (QtWebPageSGNode):
      * WebKit2.pri:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::scheduleAnimation):
      * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp: Renamed from Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.cpp.
      * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h: Renamed from Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/WebGraphicsLayer.h.
      * WebProcess/WebPage/CoordinatedGraphics/CoordinatedTile.cpp: Renamed from Source/WebKit2/WebProcess/WebPage/TiledBackingStoreRemoteTile.cpp.
      * WebProcess/WebPage/CoordinatedGraphics/CoordinatedTile.h: Renamed from Source/WebKit2/WebProcess/WebPage/TiledBackingStoreRemoteTile.h.
      * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp: Renamed from Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.cpp.
      * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.h: Renamed from Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.h.
      * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.messages.in: Renamed from Source/WebKit2/WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.messages.in.
      * WebProcess/WebPage/DrawingArea.h:
      (DrawingArea):
      * WebProcess/WebPage/DrawingAreaImpl.cpp:
      (WebKit):
      * WebProcess/WebPage/DrawingAreaImpl.h:
      (DrawingAreaImpl):
      * WebProcess/WebPage/LayerTreeHost.h:
      (LayerTreeHost):
      * WebProcess/WebPage/UpdateAtlas.cpp:
      * WebProcess/WebPage/UpdateAtlas.h:
      * WebProcess/qt/WebProcessMainQt.cpp:
      (WebKit::WebProcessMainQt):
      
      Source/WTF:
      
      Renamed UI_SIDE_COMPOSITING to COORDINATED_GRAPHICS.
      
      * wtf/Platform.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124701 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8c7ea6f4
  17. 30 Jul, 2012 1 commit
    • paroga@webkit.org's avatar
      Replace UnicodeWinCE with UnicodeWchar https://bugs.webkit.org/show_bug.cgi?id=92539 · 74b5be15
      paroga@webkit.org authored
      Reviewed by Ryosuke Niwa.
      
      UnicodeWinCE never contained WinCE specific code. UnicodeWchar
      is a replacement for it, which is mainly based on the functions
      from <wchar.h>. It is ment as a minimal Unicode backend, which
      can be used very easy and has no external dependencies.
      
      .:
      
      * Source/cmake/OptionsWinCE.cmake:
      
      Source/WebCore:
      
      * platform/text/TextEncoding.cpp:
      (WebCore::TextEncoding::encode):
      * platform/text/TextEncodingRegistry.cpp:
      (WebCore::extendTextCodecMaps):
      
      Source/WebKit/blackberry:
      
      * WebCoreSupport/AboutDataUseFeatures.in:
      
      Source/WTF:
      
      * WTF.gyp/WTF.gyp:
      * WTF.gypi:
      * wtf/Platform.h:
      * wtf/PlatformWinCE.cmake:
      * wtf/unicode/Unicode.h:
      * wtf/unicode/wchar/UnicodeWchar.cpp: Added.
      (Unicode):
      (WTF::Unicode::category):
      (WTF::Unicode::combiningClass):
      (WTF::Unicode::direction):
      (WTF::Unicode::decompositionType):
      (WTF::Unicode::hasLineBreakingPropertyComplexContext):
      (WTF::Unicode::mirroredChar):
      (WTF::Unicode::convertWithFunction):
      (WTF::Unicode::foldCase):
      (WTF::Unicode::toLower):
      (WTF::Unicode::toUpper):
      * wtf/unicode/wchar/UnicodeWchar.h: Added.
      (Unicode):
      (WTF::Unicode::isAlphanumeric):
      (WTF::Unicode::isDigit):
      (WTF::Unicode::isLetter):
      (WTF::Unicode::isLower):
      (WTF::Unicode::isPrintableChar):
      (WTF::Unicode::isPunct):
      (WTF::Unicode::isSpace):
      (WTF::Unicode::isUpper):
      (WTF::Unicode::isArabicChar):
      (WTF::Unicode::isSeparatorSpace):
      (WTF::Unicode::foldCase):
      (WTF::Unicode::toLower):
      (WTF::Unicode::toUpper):
      (WTF::Unicode::toTitleCase):
      (WTF::Unicode::umemcasecmp):
      * wtf/unicode/wince/UnicodeWinCE.cpp: Removed.
      * wtf/unicode/wince/UnicodeWinCE.h: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@124010 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      74b5be15
  18. 26 Jul, 2012 1 commit
    • zeno.albisser@nokia.com's avatar
      [Qt] requestAnimationFrame should only trigger when a new frame can be displayed. · 4eb2c58e
      zeno.albisser@nokia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=88638
      
      Source/WebKit/qt:
      
      Disable REQUEST_ANIMATION_FRAME_TIMER for the Qt port and tie
      the servicing of scripted animations to the renderNextFrame call for WK2.
      For WK1 we rely on the RefreshAnimation that is based on QAbstractAnimation.
      
      Reviewed by Jocelyn Turcotte.
      
      * WebCoreSupport/ChromeClientQt.cpp:
      (RefreshAnimation):
          Add a RefreshAnimation that is based on QAbstractAnimation
          and drives the servicing of the scripted animations for WK1.
      (WebCore::RefreshAnimation::RefreshAnimation):
      (WebCore::RefreshAnimation::duration):
      (WebCore::RefreshAnimation::scheduleAnimation):
          Set m_animationScheduled to true and start the animation
          timer in case it is not running yet.
      (WebCore::RefreshAnimation::updateCurrentTime):
          Call serviceScriptedAnimations if m_animationScheduled is true.
          If this is not the case, the animation timer can be stopped,
          because no animation needs to be scheduled anymore.
      (WebCore):
      (WebCore::ChromeClientQt::scheduleAnimation):
          Create and start the RefreshAnimation instance with the
          first call to scheduleAnimation.
      * WebCoreSupport/ChromeClientQt.h:
      (WebCore):
      (ChromeClientQt):
      
      Source/WebKit2:
      
      Disable REQUEST_ANIMATION_FRAME_TIMER for the Qt port and tie
      the servicing of scripted animations to layer syncing for WK2.
      For WK1 we rely on the RefreshAnimation that is based on QAbstractAnimation.
      
      Reviewed by Jocelyn Turcotte.
      
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit):
      (WebKit::WebChromeClient::scheduleAnimation):
      * WebProcess/WebCoreSupport/WebChromeClient.h:
      (WebChromeClient):
      * WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.cpp:
      (WebKit::LayerTreeCoordinator::performScheduledLayerFlush):
      (WebKit::LayerTreeCoordinator::scheduleAnimation):
      (WebKit):
      * WebProcess/WebPage/LayerTreeCoordinator/LayerTreeCoordinator.h:
      (LayerTreeCoordinator):
      * WebProcess/WebPage/LayerTreeHost.h:
      (LayerTreeHost):
      
      Source/WTF:
      
      Disable REQUEST_ANIMATION_FRAME_TIMER for the Qt port and tie
      the servicing of scripted animations to layer syncing for WK2.
      For WK1 we rely on the RefreshAnimation that is based on QAbstractAnimation.
      
      Reviewed by Jocelyn Turcotte.
      
      * wtf/Platform.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123786 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4eb2c58e
  19. 25 Jul, 2012 1 commit
  20. 23 Jul, 2012 1 commit
  21. 20 Jul, 2012 1 commit
    • mitz@apple.com's avatar
      The ATSUI-based complex text code is unused · 07049b19
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=91816
      
      Reviewed by Sam Weinig.
      
      ../WebCore: 
      
      * WebCore.gypi: Removed references to the files deleted in this change.
      * WebCore.xcodeproj/project.pbxproj: Ditto.
      * platform/graphics/FontCache.h:
      (FontCache): Replaced USE(CORE_TEXT) with PLATFORM(MAC) || PLATFORM(CHROMIUM) && OS(DARWIN).
      * platform/graphics/SimpleFontData.h:
      (SimpleFontData): Removed USE(ATSUI)-only code, replaced USE(CORE_TEXT) with
      (PLATFORM(CHROMIUM) && OS(DARWIN)).
      * platform/graphics/mac/ComplexTextController.cpp: Removed USE(ATSUI)-only code. Moved
      collectComplexTextRunsForCharacters() and the ComplexTextRun constructor out of this file.
      * platform/graphics/mac/ComplexTextController.h: Removed USE(ATSUI)-only code and removed
      #if USE(CORE_TEXT) because anyone including this header is using Core Text.
      * platform/graphics/mac/ComplexTextControllerATSUI.cpp: Removed.
      * platform/graphics/mac/ComplexTextControllerCoreText.mm:
      (WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun): Moved from
      ComplexTextController.cpp into this file and merged with createTextRunFromFontDataCoreText().
      (WebCore::ComplexTextController::collectComplexTextRunsForCharacters): Moved from
      ComplexTextController.cpp into this file and merged with
      collectComplexTextRunsForCharactersCoreText().
      * platform/graphics/mac/SimpleFontDataATSUI.mm: Removed.
      * platform/graphics/mac/SimpleFontDataMac.mm:
      (WebCore::SimpleFontData::platformInit): Remove USE(ATSUI)-only code.
      (WebCore::SimpleFontData::platformDestroy): Ditto.
      * platform/text/mac/ShapeArabic.c: Removed.
      * platform/text/mac/ShapeArabic.h: Removed.
      
      ../WTF: 
      
      Removed definitions of WTF_USE_ATSUI and WTF_USE_CORE_TEXT.
      
      * wtf/Platform.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123181 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      07049b19
  22. 19 Jul, 2012 1 commit
  23. 16 Jul, 2012 1 commit
    • commit-queue@webkit.org's avatar
      WebCore needs WEBCORE_TESTING macro to mark methods being exported for testing. · 241bd21d
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=90764
      
      Patch by Hajime Morrita <morrita@chromium.org> on 2012-07-16
      Reviewed by Adam Barth.
      
      .:
      
      Removed symbols which are now covered by WEBCORE_TESTING.
      
      * Source/autotools/symbols.filter:
      
      Source/WebCore:
      
      Defined WEBCORE_TESTING based on USE(EXPORT_MACROS_FOR_TESTING) and
      applied it to FrameDestructionObserver.
      
      * bindings/js/JSDOMGlobalObject.h: Removed conflicting symbols
      * page/FrameDestructionObserver.h: Added WEBKIT_TESTING
      (FrameDestructionObserver):
      * platform/PlatformExportMacros.h:
      
      Source/WebKit2:
      
      Removed symbols which are now covered by WEBCORE_TESTING.
      
      * win/WebKit2.def:
      * win/WebKit2CFLite.def:
      
      Source/WTF:
      
      Added USE(EXPORT_MACROS_FOR_TESTING) and enabled it on GTK and Windows.
      
      * wtf/ExportMacros.h:
      * wtf/Platform.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122805 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      241bd21d
  24. 14 Jul, 2012 1 commit
  25. 11 Jul, 2012 2 commits
    • mrowe@apple.com's avatar
      Replace definitions of BUILDING_ON / TARGETING macros with macros that will error when used. · 98158361
      mrowe@apple.com authored
      Part of <http://webkit.org/b/91015> Remove BUILDING_ON / TARGETING macros in favor of system availability macros.
      
      Reviewed by Anders Carlsson.
      
      Source/WTF:
      
      * wtf/Platform.h:
      
      Tools:
      
      * DumpRenderTree/TestNetscapePlugIn/PluginObject.h: Remove the macros completely from here since
      they're completely unused in TestNetscapePlugIn.
      * DumpRenderTree/config.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122402 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      98158361
    • mrowe@apple.com's avatar
      <http://webkit.org/b/91015> Remove BUILDING_ON / TARGETING macros in favor of... · d67332ee
      mrowe@apple.com authored
      <http://webkit.org/b/91015> Remove BUILDING_ON / TARGETING macros in favor of system availability macros
      
      This removal was handled by a script that translates the relevant macros in to the equivalent checks
      using the system availability macros.
      
      Reviewed by Filip Pizlo.
      
      Source/WebCore:
      
      * WebCore.exp.in:
      * accessibility/AccessibilityList.h:
      * accessibility/AccessibilityTable.h:
      * accessibility/mac/AXObjectCacheMac.mm:
      * editing/mac/EditorMac.mm:
      * loader/MainResourceLoader.cpp:
      * loader/MainResourceLoader.h:
      * page/AlternativeTextClient.h:
      * page/ContextMenuController.cpp:
      * page/mac/SettingsMac.mm:
      * platform/LocalizedStrings.cpp:
      * platform/MemoryPressureHandler.cpp:
      * platform/audio/mac/AudioBusMac.mm:
      * platform/graphics/Gradient.h:
      * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
      * platform/graphics/ca/GraphicsLayerCA.cpp:
      * platform/graphics/ca/PlatformCALayer.h:
      * platform/graphics/ca/mac/PlatformCALayerMac.mm:
      * platform/graphics/ca/mac/TileCache.mm:
      * platform/graphics/cg/GraphicsContextCG.cpp:
      * platform/graphics/cg/ImageBufferCG.cpp:
      * platform/graphics/cg/ImageBufferDataCG.cpp:
      * platform/graphics/cg/ImageBufferDataCG.h:
      * platform/graphics/cg/ImageCG.cpp:
      * platform/graphics/cg/ImageSourceCG.cpp:
      * platform/graphics/cg/PathCG.cpp:
      * platform/graphics/cocoa/FontPlatformDataCocoa.mm:
      * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
      * platform/graphics/mac/ComplexTextController.cpp:
      * platform/graphics/mac/ComplexTextControllerCoreText.mm:
      * platform/graphics/mac/FontCacheMac.mm:
      * platform/graphics/mac/FontCustomPlatformData.cpp:
      * platform/graphics/mac/FontMac.mm:
      * platform/graphics/mac/GraphicsContextMac.mm:
      * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
      * platform/graphics/mac/SimpleFontDataMac.mm:
      * platform/graphics/mac/WebLayer.h:
      * platform/graphics/mac/WebLayer.mm:
      * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
      * platform/mac/CursorMac.mm:
      * platform/mac/DisplaySleepDisabler.cpp:
      * platform/mac/DisplaySleepDisabler.h:
      * platform/mac/EmptyProtocolDefinitions.h:
      * platform/mac/HTMLConverter.h:
      * platform/mac/HTMLConverter.mm:
      * platform/mac/MemoryPressureHandlerMac.mm:
      * platform/mac/NSScrollerImpDetails.h:
      * platform/mac/PlatformEventFactoryMac.mm:
      * platform/mac/PopupMenuMac.mm:
      * platform/mac/ScrollAnimatorMac.mm:
      * platform/mac/ScrollElasticityController.mm:
      * platform/mac/SharedTimerMac.mm:
      * platform/mac/SuddenTermination.mm:
      * platform/mac/WebCoreFullScreenWindow.mm:
      * platform/mac/WebCoreNSCellExtras.h:
      * platform/mac/WebCoreSystemInterface.h:
      * platform/mac/WebCoreSystemInterface.mm:
      * platform/mac/WebFontCache.mm:
      * platform/mac/WebVideoFullscreenController.mm:
      * platform/mac/WebVideoFullscreenHUDWindowController.mm:
      * platform/network/Credential.h:
      * platform/network/ResourceHandle.h:
      * platform/network/cf/DNSCFNet.cpp:
      * platform/network/cf/ProxyServerCFNet.cpp:
      * platform/network/cf/ResourceRequest.h:
      * platform/network/cf/ResourceRequestCFNet.cpp:
      * platform/network/cf/SocketStreamHandleCFNet.cpp:
      * platform/network/mac/AuthenticationMac.mm:
      * platform/network/mac/CookieStorageMac.mm:
      * platform/network/mac/ResourceHandleMac.mm:
      * platform/network/mac/ResourceRequestMac.mm:
      * platform/network/mac/WebCoreURLResponse.mm:
      * platform/text/TextChecking.h:
      * platform/text/cf/HyphenationCF.cpp:
      * platform/text/mac/HyphenationMac.mm:
      * rendering/RenderLayerBacking.cpp:
      * rendering/RenderLayerCompositor.cpp:
      * rendering/RenderThemeMac.mm:
      
      Source/WebKit/chromium:
      
      * src/mac/WebInputEventFactory.mm:
      
      Source/WebKit/mac:
      
      * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
      * Misc/WebKitErrors.m:
      * Misc/WebNSControlExtras.m:
      * Misc/WebNSFileManagerExtras.mm:
      * Plugins/Hosted/WebHostedNetscapePluginView.mm:
      * Plugins/WebBaseNetscapePluginView.mm:
      * Plugins/WebNetscapePluginView.mm:
      * WebCoreSupport/WebChromeClient.mm:
      * WebCoreSupport/WebEditorClient.mm:
      * WebCoreSupport/WebFrameLoaderClient.mm:
      * WebCoreSupport/WebSystemInterface.mm:
      * WebView/WebClipView.mm:
      * WebView/WebDynamicScrollBarsView.mm:
      * WebView/WebFrameView.mm:
      * WebView/WebFullScreenController.mm:
      * WebView/WebHTMLView.mm:
      * WebView/WebHTMLViewInternal.h:
      * WebView/WebPDFDocumentExtras.mm:
      * WebView/WebPreferences.mm:
      * WebView/WebResourceInternal.h:
      * WebView/WebScriptDebugDelegate.h:
      * WebView/WebView.mm:
      * WebView/WebViewPrivate.h:
      
      Source/WebKit2:
      
      * Shared/DictionaryPopupInfo.cpp:
      * Shared/DictionaryPopupInfo.h:
      * Shared/mac/PasteboardTypes.mm:
      * Shared/mac/WebEventFactory.mm:
      * UIProcess/API/mac/PDFViewController.mm:
      * UIProcess/API/mac/PageClientImpl.mm:
      * UIProcess/API/mac/WKView.mm:
      * UIProcess/Launcher/mac/DynamicLinkerEnvironmentExtractor.h:
      * UIProcess/Launcher/mac/DynamicLinkerEnvironmentExtractor.mm:
      * UIProcess/Launcher/mac/EnvironmentVariables.cpp:
      * UIProcess/Launcher/mac/EnvironmentVariables.h:
      * UIProcess/Launcher/mac/ProcessLauncherMac.mm:
      * UIProcess/Plugins/mac/PluginProcessProxyMac.mm:
      * UIProcess/WebPageProxy.cpp:
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/mac/TextCheckerMac.mm:
      * UIProcess/mac/WKFullScreenWindowController.mm:
      * UIProcess/mac/WebContextMac.mm:
      * UIProcess/mac/WebPageProxyMac.mm:
      * WebKit2Prefix.h:
      * WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:
      * WebProcess/Plugins/Netscape/mac/NetscapeSandboxFunctions.mm:
      * WebProcess/WebCoreSupport/WebEditorClient.cpp:
      * WebProcess/WebCoreSupport/WebEditorClient.h:
      * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
      * WebProcess/WebPage/WebPage.cpp:
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/WebPage.messages.in:
      * WebProcess/WebPage/mac/WebPageMac.mm:
      * WebProcess/com.apple.WebProcess.sb.in:
      * WebProcess/mac/KeychainItemShimMethods.mm:
      * WebProcess/mac/SecItemShimMethods.mm:
      * WebProcess/mac/WebProcessMac.mm:
      * WebProcess/mac/WebProcessMainMac.mm:
      * WebProcess/mac/WebProcessShim.mm:
      
      Source/WTF:
      
      * wtf/Assertions.cpp:
      * wtf/FastMalloc.cpp:
      * wtf/Platform.h:
      * wtf/ThreadingPthreads.cpp:
      * wtf/unicode/icu/CollatorICU.cpp:
      
      Tools:
      
      * DumpRenderTree/cf/WebArchiveDumpSupport.cpp:
      * DumpRenderTree/mac/CheckedMalloc.cpp:
      * DumpRenderTree/mac/DumpRenderTree.mm:
      * DumpRenderTree/mac/DumpRenderTreeDraggingInfo.mm:
      * DumpRenderTree/mac/LayoutTestControllerMac.mm:
      * DumpRenderTree/mac/TextInputController.m:
      * TestWebKitAPI/mac/InjectedBundleControllerMac.mm:
      * WebKitTestRunner/InjectedBundle/mac/ActivateFonts.mm:
      * WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122400 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d67332ee
  26. 09 Jul, 2012 2 commits
  27. 05 Jul, 2012 1 commit
    • zherczeg@webkit.org's avatar
      Port DFG JIT to traditional ARM · d6e661f4
      zherczeg@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=90198
      
      Reviewed by Filip Pizlo.
      
      Source/JavaScriptCore: 
      
      This patch contains the macro assembler part of the
      DFG JIT support on ARM systems with fixed 32 bit instruction
      width. A large amount of old code was refactored, and the ARMv4
      or lower support is removed from the macro assembler.
      
      Sunspider is improved by 8%, and V8 is 92%.
      
      * assembler/ARMAssembler.cpp:
      (JSC::ARMAssembler::dataTransfer32):
      (JSC::ARMAssembler::baseIndexTransfer32):
      (JSC):
      (JSC::ARMAssembler::dataTransfer16):
      (JSC::ARMAssembler::baseIndexTransfer16):
      (JSC::ARMAssembler::dataTransferFloat):
      (JSC::ARMAssembler::baseIndexTransferFloat):
      (JSC::ARMAssembler::executableCopy):
      * assembler/ARMAssembler.h:
      (JSC::ARMAssembler::ARMAssembler):
      (JSC::ARMAssembler::emitInst):
      (JSC::ARMAssembler::vmov_f64_r):
      (ARMAssembler):
      (JSC::ARMAssembler::vabs_f64_r):
      (JSC::ARMAssembler::vneg_f64_r):
      (JSC::ARMAssembler::ldr_imm):
      (JSC::ARMAssembler::ldr_un_imm):
      (JSC::ARMAssembler::dtr_u):
      (JSC::ARMAssembler::dtr_ur):
      (JSC::ARMAssembler::dtr_d):
      (JSC::ARMAssembler::dtr_dr):
      (JSC::ARMAssembler::dtrh_u):
      (JSC::ARMAssembler::dtrh_ur):
      (JSC::ARMAssembler::dtrh_d):
      (JSC::ARMAssembler::dtrh_dr):
      (JSC::ARMAssembler::fdtr_u):
      (JSC::ARMAssembler::fdtr_d):
      (JSC::ARMAssembler::push_r):
      (JSC::ARMAssembler::pop_r):
      (JSC::ARMAssembler::poke_r):
      (JSC::ARMAssembler::peek_r):
      (JSC::ARMAssembler::vmov_vfp64_r):
      (JSC::ARMAssembler::vmov_arm64_r):
      (JSC::ARMAssembler::vmov_vfp32_r):
      (JSC::ARMAssembler::vmov_arm32_r):
      (JSC::ARMAssembler::vcvt_u32_f64_r):
      (JSC::ARMAssembler::vcvt_f64_f32_r):
      (JSC::ARMAssembler::vcvt_f32_f64_r):
      (JSC::ARMAssembler::clz_r):
      (JSC::ARMAssembler::bkpt):
      (JSC::ARMAssembler::bx):
      (JSC::ARMAssembler::blx):
      (JSC::ARMAssembler::labelIgnoringWatchpoints):
      (JSC::ARMAssembler::labelForWatchpoint):
      (JSC::ARMAssembler::label):
      (JSC::ARMAssembler::getLdrImmAddress):
      (JSC::ARMAssembler::replaceWithJump):
      (JSC::ARMAssembler::maxJumpReplacementSize):
      (JSC::ARMAssembler::getOp2Byte):
      (JSC::ARMAssembler::getOp2Half):
      (JSC::ARMAssembler::RM):
      (JSC::ARMAssembler::RS):
      (JSC::ARMAssembler::RD):
      (JSC::ARMAssembler::RN):
      * assembler/AssemblerBufferWithConstantPool.h:
      (JSC::AssemblerBufferWithConstantPool::ensureSpaceForAnyInstruction):
      * assembler/MacroAssemblerARM.cpp:
      (JSC::MacroAssemblerARM::load32WithUnalignedHalfWords):
      * assembler/MacroAssemblerARM.h:
      (JSC::MacroAssemblerARM::add32):
      (MacroAssemblerARM):
      (JSC::MacroAssemblerARM::and32):
      (JSC::MacroAssemblerARM::lshift32):
      (JSC::MacroAssemblerARM::mul32):
      (JSC::MacroAssemblerARM::neg32):
      (JSC::MacroAssemblerARM::rshift32):
      (JSC::MacroAssemblerARM::urshift32):
      (JSC::MacroAssemblerARM::xor32):
      (JSC::MacroAssemblerARM::load8):
      (JSC::MacroAssemblerARM::load8Signed):
      (JSC::MacroAssemblerARM::load16):
      (JSC::MacroAssemblerARM::load16Signed):
      (JSC::MacroAssemblerARM::load32):
      (JSC::MacroAssemblerARM::load32WithAddressOffsetPatch):
      (JSC::MacroAssemblerARM::store32WithAddressOffsetPatch):
      (JSC::MacroAssemblerARM::store8):
      (JSC::MacroAssemblerARM::store16):
      (JSC::MacroAssemblerARM::store32):
      (JSC::MacroAssemblerARM::move):
      (JSC::MacroAssemblerARM::jump):
      (JSC::MacroAssemblerARM::branchAdd32):
      (JSC::MacroAssemblerARM::mull32):
      (JSC::MacroAssemblerARM::branchMul32):
      (JSC::MacroAssemblerARM::nearCall):
      (JSC::MacroAssemblerARM::compare32):
      (JSC::MacroAssemblerARM::test32):
      (JSC::MacroAssemblerARM::sub32):
      (JSC::MacroAssemblerARM::call):
      (JSC::MacroAssemblerARM::loadFloat):
      (JSC::MacroAssemblerARM::loadDouble):
      (JSC::MacroAssemblerARM::storeFloat):
      (JSC::MacroAssemblerARM::storeDouble):
      (JSC::MacroAssemblerARM::moveDouble):
      (JSC::MacroAssemblerARM::addDouble):
      (JSC::MacroAssemblerARM::divDouble):
      (JSC::MacroAssemblerARM::subDouble):
      (JSC::MacroAssemblerARM::mulDouble):
      (JSC::MacroAssemblerARM::absDouble):
      (JSC::MacroAssemblerARM::negateDouble):
      (JSC::MacroAssemblerARM::convertInt32ToDouble):
      (JSC::MacroAssemblerARM::convertFloatToDouble):
      (JSC::MacroAssemblerARM::convertDoubleToFloat):
      (JSC::MacroAssemblerARM::branchTruncateDoubleToInt32):
      (JSC::MacroAssemblerARM::branchTruncateDoubleToUint32):
      (JSC::MacroAssemblerARM::truncateDoubleToInt32):
      (JSC::MacroAssemblerARM::truncateDoubleToUint32):
      (JSC::MacroAssemblerARM::branchConvertDoubleToInt32):
      (JSC::MacroAssemblerARM::branchDoubleNonZero):
      (JSC::MacroAssemblerARM::branchDoubleZeroOrNaN):
      (JSC::MacroAssemblerARM::invert):
      (JSC::MacroAssemblerARM::replaceWithJump):
      (JSC::MacroAssemblerARM::maxJumpReplacementSize):
      (JSC::MacroAssemblerARM::call32):
      * assembler/SH4Assembler.h:
      (JSC::SH4Assembler::label):
      * dfg/DFGAssemblyHelpers.h:
      (JSC::DFG::AssemblyHelpers::debugCall):
      (JSC::DFG::AssemblyHelpers::boxDouble):
      (JSC::DFG::AssemblyHelpers::unboxDouble):
      * dfg/DFGCCallHelpers.h:
      (CCallHelpers):
      (JSC::DFG::CCallHelpers::setupArguments):
      * dfg/DFGFPRInfo.h:
      (DFG):
      * dfg/DFGGPRInfo.h:
      (DFG):
      (GPRInfo):
      * dfg/DFGOperations.cpp:
      (JSC):
      * dfg/DFGSpeculativeJIT.h:
      (SpeculativeJIT):
      (JSC::DFG::SpeculativeJIT::appendCallWithExceptionCheckSetResult):
      (JSC::DFG::SpeculativeJIT::appendCallSetResult):
      * jit/JITStubs.cpp:
      (JSC):
      * jit/JITStubs.h:
      (JITStackFrame):
      * jit/JSInterfaceJIT.h:
      (JSInterfaceJIT):
      
      Source/WTF: 
      
      Enabling DFG JIT on ARM systems with 32 bit instruction set.
      
      * wtf/InlineASM.h:
      * wtf/Platform.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121885 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d6e661f4
  28. 04 Jul, 2012 1 commit
  29. 03 Jul, 2012 1 commit
  30. 29 Jun, 2012 1 commit
    • eric@webkit.org's avatar
      Remove more BUILDING_ON_LEOPARD usage in PLATFORM(MAC) code · 7c632161
      eric@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=85846
      
      Reviewed by Adam Barth.
      
      PLATFORM(MAC) has not supported Leopard for several months now.
      This change removes about 1/3 of the remaining BUILDING_ON_LEOPARD
      uses in the PLATFORM(MAC) codepaths.  PLATFORM(CHROMIUM) still
      supports BUILDING_ON_LEOPARD for now.
      
      Source/WebCore:
      
      * WebCore.exp.in:
      * dom/Document.cpp:
      (WebCore::Document::updateRangesAfterChildrenChanged):
      (WebCore::Document::nodeChildrenWillBeRemoved):
      (WebCore::Document::nodeWillBeRemoved):
      (WebCore::Document::textInserted):
      (WebCore::Document::textRemoved):
      (WebCore::Document::textNodesMerged):
      (WebCore::Document::textNodeSplit):
      * editing/Editor.cpp:
      (WebCore::Editor::respondToChangedSelection):
      * editing/TypingCommand.cpp:
      (WebCore::TypingCommand::markMisspellingsAfterTyping):
      (WebCore::TypingCommand::typingAddedToOpenCommand):
      * editing/mac/EditorMac.mm:
      (WebCore::Editor::pasteWithPasteboard):
      * loader/EmptyClients.h:
      (EmptyEditorClient):
      * page/ContextMenuController.cpp:
      (WebCore::ContextMenuController::contextMenuItemSelected):
      (WebCore::ContextMenuController::createAndAppendSpellingAndGrammarSubMenu):
      (WebCore):
      (WebCore::ContextMenuController::populate):
      (WebCore::ContextMenuController::checkOrEnableIfNeeded):
      * page/EditorClient.h:
      (EditorClient):
      * platform/LocalizedStrings.cpp:
      (WebCore::contextMenuItemTagSearchWeb):
      * platform/MemoryPressureHandler.cpp:
      (WebCore):
      * platform/SuddenTermination.h:
      (WebCore):
      * platform/graphics/ca/GraphicsLayerCA.cpp:
      (WebCore::GraphicsLayerCA::updateContentsImage):
      (WebCore::GraphicsLayerCA::constrainedSize):
      * platform/graphics/ca/PlatformCALayer.h:
      (PlatformCALayer):
      * platform/graphics/ca/mac/PlatformCAAnimationMac.mm:
      (fromCAValueFunctionType):
      (PlatformCAAnimation::valueFunction):
      (PlatformCAAnimation::setValueFunction):
      * platform/graphics/ca/mac/PlatformCALayerMac.mm:
      (toCAFilterType):
      (PlatformCALayer::anchorPoint):
      (PlatformCALayer::setAnchorPoint):
      (PlatformCALayer::contentsTransform):
      (PlatformCALayer::setContentsTransform):
      (PlatformCALayer::isGeometryFlipped):
      (PlatformCALayer::setGeometryFlipped):
      (PlatformCALayer::acceleratesDrawing):
      (PlatformCALayer::setAcceleratesDrawing):
      (PlatformCALayer::setMinificationFilter):
      (PlatformCALayer::setMagnificationFilter):
      (PlatformCALayer::contentsScale):
      (PlatformCALayer::setContentsScale):
      * platform/graphics/ca/mac/TileCache.mm:
      (WebCore::TileCache::setScale):
      (WebCore::TileCache::setAcceleratesDrawing):
      (WebCore::TileCache::createTileLayer):
      
      Source/WTF:
      
      * wtf/Platform.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121524 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7c632161
  31. 25 Jun, 2012 2 commits