1. 23 Dec, 2013 1 commit
  2. 23 Aug, 2013 1 commit
    • oliver@apple.com's avatar
      Support in memory compression of rarely used data · abcf78c4
      oliver@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=120143
      
      Reviewed by Gavin Barraclough.
      
      Source/JavaScriptCore:
      
      Include zlib in LD_FLAGS and make UnlinkedCodeBlock make use of CompressibleVector.  This saves ~200k on google maps.
      
      * Configurations/JavaScriptCore.xcconfig:
      * bytecode/UnlinkedCodeBlock.cpp:
      (JSC::UnlinkedCodeBlock::expressionRangeForBytecodeOffset):
      (JSC::UnlinkedCodeBlock::addExpressionInfo):
      * bytecode/UnlinkedCodeBlock.h:
      
      Source/WTF:
      
      Adds a set of utility functions to wrap the use of zlib over a generic
      type or a Vector<> as well as adding CompressibleVector that wraps
      either a Vector<> or compressed data.
      
      * GNUmakefile.list.am:
      * WTF.pro:
      * WTF.vcxproj/WTF.vcxproj:
      * WTF.xcodeproj/project.pbxproj:
      * wtf/CMakeLists.txt:
      * wtf/CheckedArithmetic.h:
      * wtf/Compression.cpp: Added.
      (WTF::zAlloc):
      (WTF::zFree):
      (WTF::GenericCompressedData::create):
      (WTF::GenericCompressedData::decompress):
      * wtf/Compression.h: Added.
      (WTF::GenericCompressedData::compressedSize):
      (WTF::GenericCompressedData::originalSize):
      (WTF::GenericCompressedData::GenericCompressedData):
      (WTF::CompressedVector::create):
      (WTF::CompressedVector::decompress):
      (WTF::CompressedVector::size):
      (WTF::CompressibleVector::CompressibleVector):
      (WTF::CompressibleVector::shrinkToFit):
      (WTF::CompressibleVector::size):
      (WTF::CompressibleVector::operator[]):
      (WTF::CompressibleVector::at):
      (WTF::CompressibleVector::begin):
      (WTF::CompressibleVector::end):
      (WTF::CompressibleVector::data):
      (WTF::CompressibleVector::decompressIfNecessary):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154498 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      abcf78c4
  3. 25 Jul, 2013 1 commit
  4. 06 Feb, 2013 1 commit
  5. 01 Feb, 2013 1 commit
    • zandobersek@gmail.com's avatar
      [GTK] Add WTFURL source files to the build · 050d2e2f
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=108215
      
      Reviewed by Benjamin Poulain.
      
      .: 
      
      * Source/autotools/symbols.filter: Force the export of the KURL::string() symbol.
      This is required when using the WTFURL backend but otherwise doesn't affect the build.
      
      Source/WebCore: 
      
      * platform/KURLWTFURL.cpp:
      (WebCore): Only use the stub implementation of the fileSystemPath method for the
      Apple ports, other ports should for now still rely on their platform-specific implementations.
      
      Source/WTF: 
      
      The WTFURL implementation sources are all still guarded by the USE(WTFURL) guard,
      meaning that the GTK port still uses the default KURL backend. To use the WTFURL
      backend instead, one would have to define WTF_USE_WTFURL in Platform.h.
      
      * GNUmakefile.am: List the directories from which source headers will be included.
      Plenty of WTFURL code currently just includes the required header by name rather
      than specifying the header path as relative to Source/WTF. In the future all the inclusions
      should probaby be changed to include the header through the path relative to Source/WTF.
      * GNUmakefile.list.am: Add build targets for the WTFURL source files.
      * wtf/url/api/ParsedURL.cpp: Specify the complete path to the required headers and
      reorder the inclusions.
      * wtf/url/src/URLCanon.h: Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@141622 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      050d2e2f
  6. 21 Jun, 2012 1 commit
    • commit-queue@webkit.org's avatar
      [GTK] Fix NPAPI plugins on Windows · 618672dd
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=54531
      
      Patch by Kalev Lember <kalevlember@gmail.com> on 2012-06-21
      Reviewed by Martin Robinson.
      
      .:
      
      Define XP_WIN on Windows for plugin support.
      
      * GNUmakefile.am:
      
      Source/WebCore:
      
      Switch to using PluginPackageWin.cpp and PluginViewWin.cpp on Windows
      platform, and leave plugins/gtk/ only for XP_UNIX platforms. With this
      we can share a lot of code with other ports and don't have to
      reimplement all the Windows-specific code in plugins/gtk/.
      
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * platform/FileSystem.h:
      (WebCore):
      * platform/graphics/GraphicsContext.h:
      (GraphicsContext):
      * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h:
      (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
      (GraphicsContextPlatformPrivate):
      * platform/graphics/transforms/TransformationMatrix.h:
      (TransformationMatrix):
      * platform/graphics/win/GraphicsContextCairoWin.cpp:
      (WebCore):
      * platform/graphics/win/GraphicsContextWin.cpp:
      (WebCore):
      * platform/gtk/FileSystemGtk.cpp:
      (WebCore::unloadModule):
      * plugins/PluginView.h:
      (PluginView):
      * plugins/win/PluginViewWin.cpp:
      (windowHandleForPageClient):
      (WebCore::registerPluginView):
      (WebCore::PluginView::paint):
      (WebCore::PluginView::handleMouseEvent):
      (WebCore::PluginView::platformStart):
      (WebCore::PluginView::snapshot):
      
      Source/WTF:
      
      Define ENABLE_PLUGIN_PACKAGE_SIMPLE_HASH for the GTK+ port, and
      include OwnPtrWin.cpp in the list of files built on Windows.
      
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * wtf/Platform.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@120956 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      618672dd
  7. 22 Mar, 2012 2 commits
  8. 06 Jan, 2012 1 commit