Mercurial > hg > graal-jvmci-8
comparison src/share/vm/adlc/output_c.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 | f15fe46d8c00 |
children | de6a9e811145 044b28168e20 |
comparison
equal
deleted
inserted
replaced
12161:e1fbb86b47e4 | 12167:650868c062a9 |
---|---|
1093 // Define temporaries 'inst#', based on parent and parent's input index | 1093 // Define temporaries 'inst#', based on parent and parent's input index |
1094 if( parent != -1 ) { // root was initialized | 1094 if( parent != -1 ) { // root was initialized |
1095 fprintf(fp, " // Identify previous instruction if inside this block\n"); | 1095 fprintf(fp, " // Identify previous instruction if inside this block\n"); |
1096 fprintf(fp, " if( "); | 1096 fprintf(fp, " if( "); |
1097 print_block_index(fp, inst_position); | 1097 print_block_index(fp, inst_position); |
1098 fprintf(fp, " > 0 ) {\n Node *n = block->_nodes.at("); | 1098 fprintf(fp, " > 0 ) {\n Node *n = block->get_node("); |
1099 print_block_index(fp, inst_position); | 1099 print_block_index(fp, inst_position); |
1100 fprintf(fp, ");\n inst%d = (n->is_Mach()) ? ", inst_position); | 1100 fprintf(fp, ");\n inst%d = (n->is_Mach()) ? ", inst_position); |
1101 fprintf(fp, "n->as_Mach() : NULL;\n }\n"); | 1101 fprintf(fp, "n->as_Mach() : NULL;\n }\n"); |
1102 } | 1102 } |
1103 | 1103 |