Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
2011-05-31 Yong Li <yoli@rim.com>
Reviewed by Eric Seidel. https://bugs.webkit.org/show_bug.cgi?id=54807 We have been assuming plain bitfields (like "int a : 31") are always signed integers. However some compilers can treat them as unsigned. For example, RVCT 4.0 states plain bitfields (declared without either signed or unsigned qualifiers) are treats as unsigned. http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0348c/Babjddhe.html Although we can use "--signed-bitfields" flag to make RVCT 4.0 behave as most other compilers, always using "signed"/"unsigned" qualifier to declare integral type bitfields is still a good rule we should have in order to make our code independent from compilers and compiler flags. No new test added because this change is not known to fix any issue. * bytecode/StructureStubInfo.h: 2011-05-31 Yong Li <yoli@rim.com> Reviewed by Eric Seidel. https://bugs.webkit.org/show_bug.cgi?id=54807 We have been assuming plain bitfields (like "int a : 31") are always signed integers. However some compilers can treat them as unsigned. For example, RVCT 4.0 states plain bitfields (declared without either signed or unsigned qualifiers) are treats as unsigned. http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0348c/Babjddhe.html Although we can use "--signed-bitfields" flag to make RVCT 4.0 behave as most other compilers, always using "signed"/"unsigned" qualifier to declare integral type bitfields is still a good rule we should have in order to make our code independent from compilers and compiler flags. No new test added because this change is not known to fix any issue. * css/CSSPrimitiveValue.h: * css/CSSProperty.h: * rendering/InlineBox.h: * rendering/RenderBlock.h: 2011-05-31 Yong Li <yoli@rim.com> Reviewed by Eric Seidel. https://bugs.webkit.org/show_bug.cgi?id=54807 We have been assuming plain bitfields (like "int a : 31") are always signed integers. However some compilers can treat them as unsigned. For example, RVCT 4.0 states plain bitfields (declared without either signed or unsigned qualifiers) are treats as unsigned. http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0348c/Babjddhe.html Although we can use "--signed-bitfields" flag to make RVCT 4.0 behave as most other compilers, always using "signed"/"unsigned" qualifier to declare integral type bitfields is still a good rule we should have in order to make our code independent from compilers and compiler flags. * Scripts/webkitpy/style/checkers/cpp.py: Canonical link: https://commits.webkit.org/77249@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@87771 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
76 additions
and 7 deletions.
- +17 −0 Source/JavaScriptCore/ChangeLog
- +2 −2 Source/JavaScriptCore/bytecode/StructureStubInfo.h
- +20 −0 Source/WebCore/ChangeLog
- +1 −1 Source/WebCore/css/CSSPrimitiveValue.h
- +2 −2 Source/WebCore/css/CSSProperty.h
- +1 −1 Source/WebCore/rendering/InlineBox.h
- +1 −1 Source/WebCore/rendering/RenderBlock.h
- +15 −0 Tools/ChangeLog
- +9 −0 Tools/Scripts/webkitpy/style/checkers/cpp.py
- +8 −0 Tools/Scripts/webkitpy/style/checkers/cpp_unittest.py
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -127,8 +127,8 @@ namespace JSC { | ||
seen = true; | ||
} | ||
|
||
signed accessType : 31; | ||
unsigned seen : 1; | ||
|
||
union { | ||
struct { | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -225,7 +225,7 @@ class CSSPrimitiveValue : public CSSValue { | ||
|
||
virtual unsigned short cssValueType() const; | ||
|
||
signed m_type : 31; | ||
mutable unsigned m_hasCachedCSSText : 1; | ||
union { | ||
int ident; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters