Revision: 14683
Author:   [email protected]
Date:     Wed May 15 06:14:24 2013
Log:      Fix build failure on Linux since r14681.

[email protected], [email protected]

Review URL: https://codereview.chromium.org/14969025
http://code.google.com/p/v8/source/detail?r=14683

Modified:
 /branches/bleeding_edge/test/cctest/test-conversions.cc

=======================================
--- /branches/bleeding_edge/test/cctest/test-conversions.cc Wed May 15 05:29:13 2013 +++ /branches/bleeding_edge/test/cctest/test-conversions.cc Wed May 15 06:14:24 2013
@@ -250,12 +250,15 @@
 }


+class OneBit1: public BitField<uint32_t, 0, 1> {};
+class OneBit2: public BitField<uint32_t, 7, 1> {};
+class EightBit1: public BitField<uint32_t, 0, 8> {};
+class EightBit2: public BitField<uint32_t, 13, 8> {};
+
 TEST(BitField) {
   uint32_t x;

   // One bit bit field can hold values 0 and 1.
-  class OneBit1: public BitField<uint32_t, 0, 1> {};
-  class OneBit2: public BitField<uint32_t, 7, 1> {};
   CHECK(!OneBit1::is_valid(static_cast<uint32_t>(-1)));
   CHECK(!OneBit2::is_valid(static_cast<uint32_t>(-1)));
   for (int i = 0; i < 2; i++) {
@@ -271,8 +274,6 @@
   CHECK(!OneBit2::is_valid(2));

   // Eight bit bit field can hold values from 0 tp 255.
-  class EightBit1: public BitField<uint32_t, 0, 8> {};
-  class EightBit2: public BitField<uint32_t, 13, 8> {};
   CHECK(!EightBit1::is_valid(static_cast<uint32_t>(-1)));
   CHECK(!EightBit2::is_valid(static_cast<uint32_t>(-1)));
   for (int i = 0; i < 256; i++) {
@@ -287,18 +288,19 @@
   CHECK(!EightBit2::is_valid(256));
 }

+
+class UpperBits: public BitField64<int, 61, 3> {};
+class MiddleBits: public BitField64<int, 31, 2> {};

 TEST(BitField64) {
   uint64_t x;

   // Test most significant bits.
-  class UpperBits: public BitField64<int, 61, 3> {};
   x = V8_2PART_UINT64_C(0xE0000000, 00000000);
   CHECK(x == UpperBits::encode(7));
   CHECK_EQ(7, UpperBits::decode(x));

   // Test the 32/64-bit boundary bits.
-  class MiddleBits: public BitField64<int, 31, 2> {};
   x = V8_2PART_UINT64_C(0x00000001, 80000000);
   CHECK(x == MiddleBits::encode(3));
   CHECK_EQ(3, MiddleBits::decode(x));

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to