< prev index next >

src/share/vm/utilities/fakeRttiSupport.hpp

Print this page
rev 8233 : [mq]: remove-workaround

*** 87,100 **** static uintx tag_bit(TagType tag) { return ((uintx)1) << validate_tag(tag); } ! static TagType validate_tag(uintx tag) { ! // Type of tag is not TagType to dodge useless MacOSX compiler warning. ! assert(tag < (sizeof(uintx) * BitsPerByte), ! err_msg("Tag " UINTX_FORMAT " is too large", tag)); ! return static_cast<TagType>(tag); } }; #endif // include guard --- 87,100 ---- static uintx tag_bit(TagType tag) { return ((uintx)1) << validate_tag(tag); } ! static TagType validate_tag(TagType tag) { ! assert(0 <= tag, err_msg("Tag " INTX_FORMAT " is negative", (intx)tag)); ! assert(tag < BitsPerWord, ! err_msg("Tag " UINTX_FORMAT " is too large", (uintx)tag)); ! return tag; } }; #endif // include guard
< prev index next >