1.1 --- a/src/share/vm/opto/node.cpp Fri Apr 11 09:56:35 2008 -0400 1.2 +++ b/src/share/vm/opto/node.cpp Sun Apr 13 17:43:42 2008 -0400 1.3 @@ -1169,6 +1169,12 @@ 1.4 return ((ConPNode*)this)->type()->is_ptr()->get_con(); 1.5 } 1.6 1.7 +// Get a narrow oop constant from a ConNNode. 1.8 +intptr_t Node::get_narrowcon() const { 1.9 + assert( Opcode() == Op_ConN, "" ); 1.10 + return ((ConNNode*)this)->type()->is_narrowoop()->get_con(); 1.11 +} 1.12 + 1.13 // Get a long constant from a ConNode. 1.14 // Return a default value if there is no apparent constant here. 1.15 const TypeLong* Node::find_long_type() const {