Commit 11fb976b authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

Revert "Unbreak build with clang."

This reverts commit r22878 and fixes the actual bug instead.

R=hpayer@chromium.org

Review URL: https://codereview.chromium.org/446573002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22880 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent e47c6e0b
...@@ -216,7 +216,8 @@ ...@@ -216,7 +216,8 @@
or OS=="netbsd"', { or OS=="netbsd"', {
'target_defaults': { 'target_defaults': {
'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
'-Wno-long-long', '-pthread', '-fno-exceptions' ], '-Wno-long-long', '-pthread', '-fno-exceptions',
'-pedantic' ],
'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ], 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti', '-std=gnu++0x' ],
'ldflags': [ '-pthread', ], 'ldflags': [ '-pthread', ],
'conditions': [ 'conditions': [
......
...@@ -174,7 +174,7 @@ class Differencer { ...@@ -174,7 +174,7 @@ class Differencer {
static const int kDirectionSizeBits = 2; static const int kDirectionSizeBits = 2;
static const int kDirectionMask = (1 << kDirectionSizeBits) - 1; static const int kDirectionMask = (1 << kDirectionSizeBits) - 1;
static const int kEmptyCellValue = -1 << kDirectionSizeBits; static const int kEmptyCellValue = ~0u << kDirectionSizeBits;
// This method only holds static assert statement (unfortunately you cannot // This method only holds static assert statement (unfortunately you cannot
// place one in class scope). // place one in class scope).
......
...@@ -9005,7 +9005,8 @@ class Name: public HeapObject { ...@@ -9005,7 +9005,8 @@ class Name: public HeapObject {
STATIC_ASSERT(IS_POWER_OF_TWO(kMaxCachedArrayIndexLength + 1)); STATIC_ASSERT(IS_POWER_OF_TWO(kMaxCachedArrayIndexLength + 1));
static const unsigned int kContainsCachedArrayIndexMask = static const unsigned int kContainsCachedArrayIndexMask =
(~kMaxCachedArrayIndexLength << ArrayIndexLengthBits::kShift) | (~static_cast<unsigned>(kMaxCachedArrayIndexLength)
<< ArrayIndexLengthBits::kShift) |
kIsNotArrayIndexMask; kIsNotArrayIndexMask;
// Value of empty hash field indicating that the hash is not computed. // Value of empty hash field indicating that the hash is not computed.
...@@ -9089,7 +9090,8 @@ class String: public Name { ...@@ -9089,7 +9090,8 @@ class String: public Name {
STATIC_ASSERT(IS_POWER_OF_TWO(kMaxCachedArrayIndexLength + 1)); STATIC_ASSERT(IS_POWER_OF_TWO(kMaxCachedArrayIndexLength + 1));
static const unsigned int kContainsCachedArrayIndexMask = static const unsigned int kContainsCachedArrayIndexMask =
(~kMaxCachedArrayIndexLength << ArrayIndexLengthBits::kShift) | (~static_cast<unsigned>(kMaxCachedArrayIndexLength)
<< ArrayIndexLengthBits::kShift) |
kIsNotArrayIndexMask; kIsNotArrayIndexMask;
// Representation of the flat content of a String. // Representation of the flat content of a String.
......
...@@ -155,7 +155,8 @@ namespace internal { ...@@ -155,7 +155,8 @@ namespace internal {
V(UntaggedFloat64, 1 << 27 | kSemantic) \ V(UntaggedFloat64, 1 << 27 | kSemantic) \
V(UntaggedPtr, 1 << 28 | kSemantic) \ V(UntaggedPtr, 1 << 28 | kSemantic) \
V(TaggedInt, 1 << 29 | kSemantic) \ V(TaggedInt, 1 << 29 | kSemantic) \
V(TaggedPtr, -1 << 30 | kSemantic) /* MSB has to be sign-extended */ \ /* MSB has to be sign-extended */ \
V(TaggedPtr, static_cast<int>(~0u << 30) | kSemantic) \
\ \
V(UntaggedInt, kUntaggedInt1 | kUntaggedInt8 | \ V(UntaggedInt, kUntaggedInt1 | kUntaggedInt8 | \
kUntaggedInt16 | kUntaggedInt32) \ kUntaggedInt16 | kUntaggedInt32) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment