Mercurial > hg > graal-jvmci-8
comparison src/share/vm/opto/idealGraphPrinter.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 | 90abdd727e64 |
comparison
equal
deleted
inserted
replaced
12161:e1fbb86b47e4 | 12167:650868c062a9 |
---|---|
637 if (C->cfg() != NULL) { | 637 if (C->cfg() != NULL) { |
638 // once we have a CFG there are some nodes that aren't really | 638 // once we have a CFG there are some nodes that aren't really |
639 // reachable but are in the CFG so add them here. | 639 // reachable but are in the CFG so add them here. |
640 for (uint i = 0; i < C->cfg()->number_of_blocks(); i++) { | 640 for (uint i = 0; i < C->cfg()->number_of_blocks(); i++) { |
641 Block* block = C->cfg()->get_block(i); | 641 Block* block = C->cfg()->get_block(i); |
642 for (uint s = 0; s < block->_nodes.size(); s++) { | 642 for (uint s = 0; s < block->number_of_nodes(); s++) { |
643 nodeStack.push(block->_nodes[s]); | 643 nodeStack.push(block->get_node(s)); |
644 } | 644 } |
645 } | 645 } |
646 } | 646 } |
647 | 647 |
648 while(nodeStack.length() > 0) { | 648 while(nodeStack.length() > 0) { |
711 end_elem(); | 711 end_elem(); |
712 } | 712 } |
713 tail(SUCCESSORS_ELEMENT); | 713 tail(SUCCESSORS_ELEMENT); |
714 | 714 |
715 head(NODES_ELEMENT); | 715 head(NODES_ELEMENT); |
716 for (uint s = 0; s < block->_nodes.size(); s++) { | 716 for (uint s = 0; s < block->number_of_nodes(); s++) { |
717 begin_elem(NODE_ELEMENT); | 717 begin_elem(NODE_ELEMENT); |
718 print_attr(NODE_ID_PROPERTY, get_node_id(block->_nodes[s])); | 718 print_attr(NODE_ID_PROPERTY, get_node_id(block->get_node(s))); |
719 end_elem(); | 719 end_elem(); |
720 } | 720 } |
721 tail(NODES_ELEMENT); | 721 tail(NODES_ELEMENT); |
722 | 722 |
723 tail(BLOCK_ELEMENT); | 723 tail(BLOCK_ELEMENT); |