Currently, the inline type check needs to check multiple bits in the mark word:
bool is_inline_type() const {
return (mask_bits(value(), inline_type_mask_in_place) == inline_type_pattern);
}
which translates to an add + cmp. A single bit check could be translated to a test instruction.
bool is_inline_type() const {
return (mask_bits(value(), inline_type_mask_in_place) == inline_type_pattern);
}
which translates to an add + cmp. A single bit check could be translated to a test instruction.