Handle the uninitialized oddball in Type::LubBitset().
authorbmeurer@chromium.org <bmeurer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 14 Feb 2014 12:34:28 +0000 (12:34 +0000)
committerbmeurer@chromium.org <bmeurer@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 14 Feb 2014 12:34:28 +0000 (12:34 +0000)
R=rossberg@chromium.org

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

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

src/types.cc

index 7867899d71de99fe0e9d41df81f4bc234b21e855..3840e6fd223f72c0210b49a386e3ca4462ef4a0b 100644 (file)
@@ -164,6 +164,7 @@ int TypeImpl<Config>::LubBitset(i::Object* value) {
     if (value->IsNull()) return kNull;
     if (value->IsBoolean()) return kBoolean;
     if (value->IsTheHole()) return kAny;  // TODO(rossberg): kNone?
+    if (value->IsUninitialized()) return kNone;
     UNREACHABLE();
   }
   return LubBitset(map);