comparison src/share/vm/opto/compile.cpp @ 12167:650868c062a9

8023691: Create interface for nodes in class Block Summary: Create public methods for accessing the nodes in a block Reviewed-by: kvn, roland
author adlertz
date Mon, 26 Aug 2013 12:50:23 +0200
parents adb9a7d94cb5
children edb5ab0f3fe5 7944aba7ba41
comparison
equal deleted inserted replaced
12161:e1fbb86b47e4 12167:650868c062a9
2256 } 2256 }
2257 Block* block = _cfg->get_block(i); 2257 Block* block = _cfg->get_block(i);
2258 if (block->is_connector() && !Verbose) { 2258 if (block->is_connector() && !Verbose) {
2259 continue; 2259 continue;
2260 } 2260 }
2261 n = block->_nodes[0]; 2261 n = block->head();
2262 if (pcs && n->_idx < pc_limit) { 2262 if (pcs && n->_idx < pc_limit) {
2263 tty->print("%3.3x ", pcs[n->_idx]); 2263 tty->print("%3.3x ", pcs[n->_idx]);
2264 } else { 2264 } else {
2265 tty->print(" "); 2265 tty->print(" ");
2266 } 2266 }
2271 tty->print_cr(" # Block is sole successor of call"); 2271 tty->print_cr(" # Block is sole successor of call");
2272 } 2272 }
2273 2273
2274 // For all instructions 2274 // For all instructions
2275 Node *delay = NULL; 2275 Node *delay = NULL;
2276 for (uint j = 0; j < block->_nodes.size(); j++) { 2276 for (uint j = 0; j < block->number_of_nodes(); j++) {
2277 if (VMThread::should_terminate()) { 2277 if (VMThread::should_terminate()) {
2278 cut_short = true; 2278 cut_short = true;
2279 break; 2279 break;
2280 } 2280 }
2281 n = block->_nodes[j]; 2281 n = block->get_node(j);
2282 if (valid_bundle_info(n)) { 2282 if (valid_bundle_info(n)) {
2283 Bundle* bundle = node_bundling(n); 2283 Bundle* bundle = node_bundling(n);
2284 if (bundle->used_in_unconditional_delay()) { 2284 if (bundle->used_in_unconditional_delay()) {
2285 delay = n; 2285 delay = n;
2286 continue; 2286 continue;