| Index: Source/wtf/SizeLimits.cpp
|
| diff --git a/Source/wtf/SizeLimits.cpp b/Source/wtf/SizeLimits.cpp
|
| index 2f22f1edb68a64274368cc62ba49b4c7285e498f..5405b4876821df4e269343644d818837a57f3652 100644
|
| --- a/Source/wtf/SizeLimits.cpp
|
| +++ b/Source/wtf/SizeLimits.cpp
|
| @@ -76,14 +76,14 @@ struct SameSizeAsVectorWithInlineCapacity {
|
| AlignedBuffer<inlineCapacity * sizeof(T), WTF_ALIGN_OF(T)> inlineBuffer;
|
| };
|
|
|
| -COMPILE_ASSERT(sizeof(OwnPtr<int>) == sizeof(int*), OwnPtr_should_stay_small);
|
| -COMPILE_ASSERT(sizeof(PassRefPtr<RefCounted<int> >) == sizeof(int*), PassRefPtr_should_stay_small);
|
| -COMPILE_ASSERT(sizeof(RefCounted<int>) == sizeof(SameSizeAsRefCounted), RefCounted_should_stay_small);
|
| -COMPILE_ASSERT(sizeof(RefPtr<RefCounted<int> >) == sizeof(int*), RefPtr_should_stay_small);
|
| -COMPILE_ASSERT(sizeof(String) == sizeof(int*), String_should_stay_small);
|
| -COMPILE_ASSERT(sizeof(AtomicString) == sizeof(String), AtomicString_should_stay_small);
|
| -COMPILE_ASSERT(sizeof(Vector<int>) == sizeof(SameSizeAsVectorWithInlineCapacity<int>), Vector_should_stay_small);
|
| -COMPILE_ASSERT(sizeof(Vector<int, 1>) == sizeof(SameSizeAsVectorWithInlineCapacity<int, 1>), Vector_should_stay_small);
|
| -COMPILE_ASSERT(sizeof(Vector<int, 2>) == sizeof(SameSizeAsVectorWithInlineCapacity<int, 2>), Vector_should_stay_small);
|
| -COMPILE_ASSERT(sizeof(Vector<int, 3>) == sizeof(SameSizeAsVectorWithInlineCapacity<int, 3>), Vector_should_stay_small);
|
| +static_assert(sizeof(OwnPtr<int>) == sizeof(int*), "OwnPtr_should_stay_small");
|
| +static_assert(sizeof(PassRefPtr<RefCounted<int> >) == sizeof(int*), "PassRefPtr_should_stay_small");
|
| +static_assert(sizeof(RefCounted<int>) == sizeof(SameSizeAsRefCounted), "RefCounted_should_stay_small");
|
| +static_assert(sizeof(RefPtr<RefCounted<int> >) == sizeof(int*), "RefPtr_should_stay_small");
|
| +static_assert(sizeof(String) == sizeof(int*), "String_should_stay_small");
|
| +static_assert(sizeof(AtomicString) == sizeof(String), "AtomicString_should_stay_small");
|
| +static_assert(sizeof(Vector<int>) == sizeof(SameSizeAsVectorWithInlineCapacity<int>), "Vector_should_stay_small");
|
| +static_assert(sizeof(Vector<int, 1>) == sizeof(SameSizeAsVectorWithInlineCapacity<int, 1>), "Vector_should_stay_small");
|
| +static_assert(sizeof(Vector<int, 2>) == sizeof(SameSizeAsVectorWithInlineCapacity<int, 2>), "Vector_should_stay_small");
|
| +static_assert(sizeof(Vector<int, 3>) == sizeof(SameSizeAsVectorWithInlineCapacity<int, 3>), "Vector_should_stay_small");
|
| }
|
|
|