2260 n = b->_nodes[0]; |
2260 n = b->_nodes[0]; |
2261 if (pcs && n->_idx < pc_limit) |
2261 if (pcs && n->_idx < pc_limit) |
2262 tty->print("%3.3x ", pcs[n->_idx]); |
2262 tty->print("%3.3x ", pcs[n->_idx]); |
2263 else |
2263 else |
2264 tty->print(" "); |
2264 tty->print(" "); |
2265 b->dump_head( &_cfg->_bbs ); |
2265 b->dump_head(_cfg); |
2266 if (b->is_connector()) { |
2266 if (b->is_connector()) { |
2267 tty->print_cr(" # Empty connector block"); |
2267 tty->print_cr(" # Empty connector block"); |
2268 } else if (b->num_preds() == 2 && b->pred(1)->is_CatchProj() && b->pred(1)->as_CatchProj()->_con == CatchProjNode::fall_through_index) { |
2268 } else if (b->num_preds() == 2 && b->pred(1)->is_CatchProj() && b->pred(1)->as_CatchProj()->_con == CatchProjNode::fall_through_index) { |
2269 tty->print_cr(" # Block is sole successor of call"); |
2269 tty->print_cr(" # Block is sole successor of call"); |
2270 } |
2270 } |
3523 } |
3523 } |
3524 (void) _constants.append(con); |
3524 (void) _constants.append(con); |
3525 } |
3525 } |
3526 |
3526 |
3527 Compile::Constant Compile::ConstantTable::add(MachConstantNode* n, BasicType type, jvalue value) { |
3527 Compile::Constant Compile::ConstantTable::add(MachConstantNode* n, BasicType type, jvalue value) { |
3528 Block* b = Compile::current()->cfg()->_bbs[n->_idx]; |
3528 Block* b = Compile::current()->cfg()->get_block_for_node(n); |
3529 Constant con(type, value, b->_freq); |
3529 Constant con(type, value, b->_freq); |
3530 add(con); |
3530 add(con); |
3531 return con; |
3531 return con; |
3532 } |
3532 } |
3533 |
3533 |