< prev index next >

src/hotspot/share/opto/type.cpp

Print this page

        

*** 3948,3957 **** --- 3948,3965 ---- int TypeInstPtr::hash(void) const { int hash = java_add((jint)klass()->hash(), (jint)TypeOopPtr::hash()); return hash; } + const bool TypeInstPtr::is_value_based() const { + return klass()->is_value_based(); + } + + const bool TypeInstPtr::can_be_value_based() const { + return !is_zero_type() && (!klass()->is_loaded() || klass()->is_interface() || klass()->is_java_lang_Object() || klass()->is_value_based()); + } + //------------------------------dump2------------------------------------------ // Dump oop Type #ifndef PRODUCT void TypeInstPtr::dump2( Dict &d, uint depth, outputStream *st ) const { // Print the name of the klass.
< prev index next >