Changeset 155491 in webkit


Ignore:
Timestamp:
Sep 10, 2013 4:37:21 PM (11 years ago)
Author:
andersca@apple.com
Message:

Remove wtf/Alignment.h
https://bugs.webkit.org/show_bug.cgi?id=121077

Reviewed by Andreas Kling.

Source/WebCore:

  • platform/PODArena.h:

(WebCore::PODArena::minAlignment):

  • platform/graphics/cpu/arm/filters/FELightingNEON.h:

(WebCore::FELighting::platformApplyNeon):

Source/WTF:

  • GNUmakefile.list.am:
  • WTF.pro:
  • WTF.vcxproj/WTF.vcxproj:
  • WTF.vcxproj/WTF.vcxproj.filters:
  • WTF.xcodeproj/project.pbxproj:
  • wtf/Alignment.h: Removed.
  • wtf/CMakeLists.txt:
  • wtf/text/ASCIIFastPath.h:
Location:
trunk/Source
Files:
1 deleted
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r155484 r155491  
     12013-09-10  Anders Carlsson  <andersca@apple.com>
     2
     3        Remove wtf/Alignment.h
     4        https://bugs.webkit.org/show_bug.cgi?id=121077
     5
     6        Reviewed by Andreas Kling.
     7
     8        * GNUmakefile.list.am:
     9        * WTF.pro:
     10        * WTF.vcxproj/WTF.vcxproj:
     11        * WTF.vcxproj/WTF.vcxproj.filters:
     12        * WTF.xcodeproj/project.pbxproj:
     13        * wtf/Alignment.h: Removed.
     14        * wtf/CMakeLists.txt:
     15        * wtf/text/ASCIIFastPath.h:
     16
    1172013-09-10  Anders Carlsson  <andersca@apple.com>
    218
  • trunk/Source/WTF/GNUmakefile.list.am

    r155483 r155491  
    44    Source/WTF/wtf/ASCIICType.h \
    55    Source/WTF/wtf/AVLTree.h \
    6     Source/WTF/wtf/Alignment.h \
    76    Source/WTF/wtf/Assertions.cpp \
    87    Source/WTF/wtf/Assertions.h \
  • trunk/Source/WTF/WTF.pro

    r155483 r155491  
    2121
    2222HEADERS += \
    23     Alignment.h \
    2423    ASCIICType.h \
    2524    Assertions.h \
  • trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj

    r155476 r155491  
    119119    <ClInclude Include="..\wtf\CompilationThread.h" />
    120120    <ClInclude Include="..\WTF\config.h" />
    121     <ClInclude Include="..\wtf\Alignment.h" />
    122121    <ClInclude Include="..\wtf\ASCIICType.h" />
    123122    <ClInclude Include="..\wtf\Assertions.h" />
  • trunk/Source/WTF/WTF.vcxproj/WTF.vcxproj.filters

    r155476 r155491  
    323323    <ClInclude Include="..\wtf\unicode\UTF8.h">
    324324      <Filter>wtf\unicode</Filter>
    325     </ClInclude>
    326     <ClInclude Include="..\wtf\Alignment.h">
    327       <Filter>wtf</Filter>
    328325    </ClInclude>
    329326    <ClInclude Include="..\wtf\WTFThreadData.h">
  • trunk/Source/WTF/WTF.xcodeproj/project.pbxproj

    r155402 r155491  
    7575                A7E643C717C5423B003BB16B /* Compression.h in Headers */ = {isa = PBXBuildFile; fileRef = A7E643C517C5423B003BB16B /* Compression.h */; };
    7676                A876DBD8151816E500DADB95 /* Platform.h in Headers */ = {isa = PBXBuildFile; fileRef = A876DBD7151816E500DADB95 /* Platform.h */; };
    77                 A8A4737F151A825B004123FF /* Alignment.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A47254151A825A004123FF /* Alignment.h */; };
    7877                A8A47385151A825B004123FF /* ASCIICType.h in Headers */ = {isa = PBXBuildFile; fileRef = A8A4725A151A825A004123FF /* ASCIICType.h */; };
    7978                A8A47386151A825B004123FF /* Assertions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8A4725B151A825A004123FF /* Assertions.cpp */; };
     
    343342                A7E643C517C5423B003BB16B /* Compression.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Compression.h; sourceTree = "<group>"; };
    344343                A876DBD7151816E500DADB95 /* Platform.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Platform.h; sourceTree = "<group>"; };
    345                 A8A47254151A825A004123FF /* Alignment.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Alignment.h; sourceTree = "<group>"; };
    346344                A8A4725A151A825A004123FF /* ASCIICType.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASCIICType.h; sourceTree = "<group>"; };
    347345                A8A4725B151A825A004123FF /* Assertions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = Assertions.cpp; sourceTree = "<group>"; };
     
    608606                                A8A47339151A825B004123FF /* threads */,
    609607                                A8A47348151A825B004123FF /* unicode */,
    610                                 A8A47254151A825A004123FF /* Alignment.h */,
    611608                                A8A4725A151A825A004123FF /* ASCIICType.h */,
    612609                                A8A4725B151A825A004123FF /* Assertions.cpp */,
     
    911908                        buildActionMask = 2147483647;
    912909                        files = (
    913                                 A8A4737F151A825B004123FF /* Alignment.h in Headers */,
    914910                                A8A47385151A825B004123FF /* ASCIICType.h in Headers */,
    915911                                A8A47434151A825B004123FF /* ASCIIFastPath.h in Headers */,
  • trunk/Source/WTF/wtf/CMakeLists.txt

    r155483 r155491  
    22    ASCIICType.h
    33    AVLTree.h
    4     Alignment.h
    54    Assertions.h
    65    Atomics.h
  • trunk/Source/WTF/wtf/text/ASCIIFastPath.h

    r155484 r155491  
    2727#endif
    2828#include <stdint.h>
    29 #include <wtf/Alignment.h>
    3029#include <wtf/StdLibExtras.h>
    3130#include <wtf/unicode/Unicode.h>
  • trunk/Source/WebCore/ChangeLog

    r155490 r155491  
     12013-09-10  Anders Carlsson  <andersca@apple.com>
     2
     3        Remove wtf/Alignment.h
     4        https://bugs.webkit.org/show_bug.cgi?id=121077
     5
     6        Reviewed by Andreas Kling.
     7
     8        * platform/PODArena.h:
     9        (WebCore::PODArena::minAlignment):
     10        * platform/graphics/cpu/arm/filters/FELightingNEON.h:
     11        (WebCore::FELighting::platformApplyNeon):
     12
    1132013-09-10  Zoltan Horvath  <zoltan@webkit.org>
    214
  • trunk/Source/WebCore/platform/PODArena.h

    r155484 r155491  
    2828
    2929#include <stdint.h>
    30 #include <wtf/Alignment.h>
    3130#include <wtf/Assertions.h>
    3231#include <wtf/FastMalloc.h>
     
    5352    template <class T> static size_t minAlignment()
    5453    {
    55         return WTF_ALIGN_OF(T);
     54        return std::alignment_of<T>::value;
    5655    }
    5756
  • trunk/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp

    r134767 r155491  
    3030#if CPU(ARM_NEON) && CPU(ARM_TRADITIONAL) && COMPILER(GCC)
    3131
    32 #include <wtf/Alignment.h>
    33 
    3432namespace WebCore {
    3533
  • trunk/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.h

    r134767 r155491  
    3131
    3232#include "FELighting.h"
    33 #include <wtf/Alignment.h>
    3433#include <wtf/ParallelJobs.h>
    3534
     
    9594inline void FELighting::platformApplyNeon(LightingData& data, LightSource::PaintingData& paintingData)
    9695{
    97     WTF_ALIGNED(FELightingFloatArgumentsForNeon, floatArguments, 16);
     96    union {
     97        FELightingFloatArgumentsForNeon floatArguments;
     98        std::aligned_storage<sizeof(FELightingFloatArgumentsForNeon), 16>::type forAlignment;
     99    } alignedArguments;
     100
     101    auto& floatArguments = alignedArguments.floatArguments;
    98102
    99103    FELightingPaintingDataForNeon neonData = {
Note: See TracChangeset for help on using the changeset viewer.