Mercurial > hg > truffle
comparison src/share/vm/opto/machnode.cpp @ 2014:4de5f4101cfd
Merge
author | iveresov |
---|---|
date | Wed, 08 Dec 2010 17:50:49 -0800 |
parents | 2f644f85485d |
children | 3d42f82cd811 |
comparison
equal
deleted
inserted
replaced
1990:401fbd7ff77c | 2014:4de5f4101cfd |
---|---|
487 void MachTypeNode::dump_spec(outputStream *st) const { | 487 void MachTypeNode::dump_spec(outputStream *st) const { |
488 _bottom_type->dump_on(st); | 488 _bottom_type->dump_on(st); |
489 } | 489 } |
490 #endif | 490 #endif |
491 | 491 |
492 | |
493 //============================================================================= | |
494 int MachConstantNode::constant_offset() { | |
495 int offset = _constant.offset(); | |
496 // Bind the offset lazily. | |
497 if (offset == -1) { | |
498 Compile::ConstantTable& constant_table = Compile::current()->constant_table(); | |
499 offset = constant_table.table_base_offset() + constant_table.find_offset(_constant); | |
500 _constant.set_offset(offset); | |
501 } | |
502 return offset; | |
503 } | |
504 | |
505 | |
492 //============================================================================= | 506 //============================================================================= |
493 #ifndef PRODUCT | 507 #ifndef PRODUCT |
494 void MachNullCheckNode::format( PhaseRegAlloc *ra_, outputStream *st ) const { | 508 void MachNullCheckNode::format( PhaseRegAlloc *ra_, outputStream *st ) const { |
495 int reg = ra_->get_reg_first(in(1)->in(_vidx)); | 509 int reg = ra_->get_reg_first(in(1)->in(_vidx)); |
496 tty->print("%s %s", Name(), Matcher::regName[reg]); | 510 tty->print("%s %s", Name(), Matcher::regName[reg]); |