1.1 --- a/src/share/vm/opto/node.cpp Tue Jun 28 15:04:39 2011 -0700 1.2 +++ b/src/share/vm/opto/node.cpp Tue Jun 28 15:24:29 2011 -0700 1.3 @@ -2012,6 +2012,16 @@ 1.4 _inode_top = _inodes + old_top; // restore _top 1.5 } 1.6 1.7 +// Node_Stack is used to map nodes. 1.8 +Node* Node_Stack::find(uint idx) const { 1.9 + uint sz = size(); 1.10 + for (uint i=0; i < sz; i++) { 1.11 + if (idx == index_at(i) ) 1.12 + return node_at(i); 1.13 + } 1.14 + return NULL; 1.15 +} 1.16 + 1.17 //============================================================================= 1.18 uint TypeNode::size_of() const { return sizeof(*this); } 1.19 #ifndef PRODUCT