comparison src/share/vm/opto/domgraph.cpp @ 12023:d1034bd8cefc

8022284: Hide internal data structure in PhaseCFG Summary: Hide private node to block mapping using public interface Reviewed-by: kvn, roland
author adlertz
date Wed, 07 Aug 2013 17:56:19 +0200
parents b9a9ed0f8eeb
children adb9a7d94cb5
comparison
equal deleted inserted replaced
12004:71526a36ebb4 12023:d1034bd8cefc
103 for( i=_num_blocks; i>=2; i-- ) { // For all vertices in DFS order 103 for( i=_num_blocks; i>=2; i-- ) { // For all vertices in DFS order
104 Tarjan *w = &tarjan[i]; // Get vertex from DFS 104 Tarjan *w = &tarjan[i]; // Get vertex from DFS
105 105
106 // Step 2: 106 // Step 2:
107 Node *whead = w->_block->head(); 107 Node *whead = w->_block->head();
108 for( uint j=1; j < whead->req(); j++ ) { 108 for (uint j = 1; j < whead->req(); j++) {
109 Block *b = _bbs[whead->in(j)->_idx]; 109 Block* b = get_block_for_node(whead->in(j));
110 Tarjan *vx = &tarjan[b->_pre_order]; 110 Tarjan *vx = &tarjan[b->_pre_order];
111 Tarjan *u = vx->EVAL(); 111 Tarjan *u = vx->EVAL();
112 if( u->_semi < w->_semi ) 112 if( u->_semi < w->_semi )
113 w->_semi = u->_semi; 113 w->_semi = u->_semi;
114 } 114 }