hotspot/src/share/vm/opto/type.cpp
changeset 2021 3c26c11fa62e
parent 2019 086661823c2b
child 2131 98f9cef66a34
child 2105 347008ce7984
equal deleted inserted replaced
2020:68d27ca96f33 2021:3c26c11fa62e
  3665   return make( _ptr, klass(), xadd_offset(offset) );
  3665   return make( _ptr, klass(), xadd_offset(offset) );
  3666 }
  3666 }
  3667 
  3667 
  3668 //------------------------------cast_to_ptr_type-------------------------------
  3668 //------------------------------cast_to_ptr_type-------------------------------
  3669 const Type *TypeKlassPtr::cast_to_ptr_type(PTR ptr) const {
  3669 const Type *TypeKlassPtr::cast_to_ptr_type(PTR ptr) const {
  3670   assert(_base == OopPtr, "subclass must override cast_to_ptr_type");
  3670   assert(_base == KlassPtr, "subclass must override cast_to_ptr_type");
  3671   if( ptr == _ptr ) return this;
  3671   if( ptr == _ptr ) return this;
  3672   return make(ptr, _klass, _offset);
  3672   return make(ptr, _klass, _offset);
  3673 }
  3673 }
  3674 
  3674 
  3675 
  3675