< prev index next >

src/share/vm/opto/type.cpp

Print this page
rev 10595 : [backport] clean up obsolete c2 code
 - barriers are never added on constant oops
 - write barriers are always expanded to IR

@@ -3243,14 +3243,10 @@
 const TypeOopPtr *TypeInstPtr::cast_to_nonconst() const {
   if (const_oop() == NULL) return this;
   return make(NotNull, klass(), _klass_is_exact, NULL, _offset, _instance_id, _speculative, _inline_depth);
 }
 
-const TypeInstPtr *TypeInstPtr::cast_to_const(ciObject* const_oop) const {
-  return make(Constant, klass(), _klass_is_exact, const_oop, _offset, _instance_id, _speculative, _inline_depth);
-}
-
 //------------------------------xmeet_unloaded---------------------------------
 // Compute the MEET of two InstPtrs when at least one is unloaded.
 // Assume classes are different since called after check for same name/class-loader
 const TypeInstPtr *TypeInstPtr::xmeet_unloaded(const TypeInstPtr *tinst) const {
     int off = meet_offset(tinst->offset());
< prev index next >