< prev index next >
src/share/vm/utilities/fakeRttiSupport.hpp
Print this page
*** 74,85 ****
// has been added to the tag set. The tag must not already be
// present in the tag set.
FakeRttiSupport add_tag(TagType tag) const {
uintx tbit = tag_bit(tag);
assert((_tag_set & tbit) == 0,
! err_msg("Tag " UINTX_FORMAT " is already present in tag set: " UINTX_FORMAT,
! (uintx)tag, _tag_set));
return FakeRttiSupport(_concrete_tag, _tag_set | tbit);
}
private:
uintx _tag_set;
--- 74,85 ----
// has been added to the tag set. The tag must not already be
// present in the tag set.
FakeRttiSupport add_tag(TagType tag) const {
uintx tbit = tag_bit(tag);
assert((_tag_set & tbit) == 0,
! "Tag " UINTX_FORMAT " is already present in tag set: " UINTX_FORMAT,
! (uintx)tag, _tag_set);
return FakeRttiSupport(_concrete_tag, _tag_set | tbit);
}
private:
uintx _tag_set;
*** 88,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
--- 88,100 ----
static uintx tag_bit(TagType tag) {
return ((uintx)1) << validate_tag(tag);
}
static TagType validate_tag(TagType tag) {
! assert(0 <= tag, "Tag " INTX_FORMAT " is negative", (intx)tag);
assert(tag < BitsPerWord,
! "Tag " UINTX_FORMAT " is too large", (uintx)tag);
return tag;
}
};
#endif // include guard
< prev index next >