Moar prints
authorrossberg@chromium.org <rossberg@chromium.org>
Mon, 15 Sep 2014 11:19:20 +0000 (11:19 +0000)
committerrossberg@chromium.org <rossberg@chromium.org>
Mon, 15 Sep 2014 11:19:20 +0000 (11:19 +0000)
TBR=ulan@chromium.org
BUG=

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23941 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/types.h
test/cctest/test-types.cc

index b5bfbcf..7d4f6d5 100644 (file)
@@ -485,7 +485,7 @@ class TypeImpl : public Config::Base {
 
 template<class Config>
 class TypeImpl<Config>::BitsetType : public TypeImpl<Config> {
- protected:
+ public:  // protected:
   friend class TypeImpl<Config>;
 
   enum {
@@ -497,9 +497,7 @@ class TypeImpl<Config>::BitsetType : public TypeImpl<Config> {
 
   bitset Bitset() { return Config::as_bitset(this); }
 
-  static TypeImpl* New(bitset bits) {
-    return static_cast<BitsetType*>(Config::from_bitset(bits));
-  }
+  static TypeImpl* New(bitset bits) { return Config::from_bitset(bits); }
   static TypeHandle New(bitset bits, Region* region) {
     return Config::from_bitset(bits, region);
   }
index 1041f5c..89fe0e2 100644 (file)
@@ -409,8 +409,11 @@ struct Tests : Rep {
     CHECK(this->IsBitset(T.Any));
 
     CHECK(bitset(0) == this->AsBitset(T.None));
-    printf("[BitSet] %p (%p) == %p (%p)\n",
+    printf("[BitSet] value=%p enum=%p bitset=%p any=%p this=%p any=%p\n",
            reinterpret_cast<void*>(bitset(0xfffffffeu)),
+           reinterpret_cast<void*>(bitset(HeapType::BitsetType::kAny)),
+           reinterpret_cast<void*>(
+               HeapTypeConfig::from_bitset(HeapType::BitsetType::kAny)),
            reinterpret_cast<void*>(HeapType::Any()),
            reinterpret_cast<void*>(this->AsBitset(T.Any)),
            reinterpret_cast<void*>(*T.Any));