src/share/vm/opto/machnode.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 7104561 Sdiff src/share/vm/opto

src/share/vm/opto/machnode.cpp

Print this page




 467 // access to virtual
 468 void MachNode::dump_format(PhaseRegAlloc *ra, outputStream *st) const {
 469   format(ra, st); // access to virtual
 470 }
 471 #endif
 472 
 473 //=============================================================================
 474 #ifndef PRODUCT
 475 void MachTypeNode::dump_spec(outputStream *st) const {
 476   _bottom_type->dump_on(st);
 477 }
 478 #endif
 479 
 480 
 481 //=============================================================================
 482 int MachConstantNode::constant_offset() {
 483   int offset = _constant.offset();
 484   // Bind the offset lazily.
 485   if (offset == -1) {
 486     Compile::ConstantTable& constant_table = Compile::current()->constant_table();







 487     offset = constant_table.table_base_offset() + constant_table.find_offset(_constant);
 488     _constant.set_offset(offset);
 489   }
 490   return offset;
 491 }
 492 
 493 
 494 //=============================================================================
 495 #ifndef PRODUCT
 496 void MachNullCheckNode::format( PhaseRegAlloc *ra_, outputStream *st ) const {
 497   int reg = ra_->get_reg_first(in(1)->in(_vidx));
 498   tty->print("%s %s", Name(), Matcher::regName[reg]);
 499 }
 500 #endif
 501 
 502 void MachNullCheckNode::emit(CodeBuffer &cbuf, PhaseRegAlloc *ra_) const {
 503   // only emits entries in the null-pointer exception handler table
 504 }
 505 void MachNullCheckNode::label_set(Label* label, uint block_num) {
 506   // Nothing to emit




 467 // access to virtual
 468 void MachNode::dump_format(PhaseRegAlloc *ra, outputStream *st) const {
 469   format(ra, st); // access to virtual
 470 }
 471 #endif
 472 
 473 //=============================================================================
 474 #ifndef PRODUCT
 475 void MachTypeNode::dump_spec(outputStream *st) const {
 476   _bottom_type->dump_on(st);
 477 }
 478 #endif
 479 
 480 
 481 //=============================================================================
 482 int MachConstantNode::constant_offset() {
 483   int offset = _constant.offset();
 484   // Bind the offset lazily.
 485   if (offset == -1) {
 486     Compile::ConstantTable& constant_table = Compile::current()->constant_table();
 487     // If called from Compile::scratch_emit_size assume the worst-case
 488     // for load offsets: half the constant table size.
 489     // NOTE: Don't return or calculate the actual offset (which might
 490     // be zero) because that leads to problems with e.g. jumpXtnd on
 491     // some architectures (cf. add-optimization in SPARC jumpXtnd).
 492     if (Compile::current()->in_scratch_emit_size())
 493       return constant_table.size() / 2;
 494     offset = constant_table.table_base_offset() + constant_table.find_offset(_constant);
 495     _constant.set_offset(offset);
 496   }
 497   return offset;
 498 }
 499 
 500 
 501 //=============================================================================
 502 #ifndef PRODUCT
 503 void MachNullCheckNode::format( PhaseRegAlloc *ra_, outputStream *st ) const {
 504   int reg = ra_->get_reg_first(in(1)->in(_vidx));
 505   tty->print("%s %s", Name(), Matcher::regName[reg]);
 506 }
 507 #endif
 508 
 509 void MachNullCheckNode::emit(CodeBuffer &cbuf, PhaseRegAlloc *ra_) const {
 510   // only emits entries in the null-pointer exception handler table
 511 }
 512 void MachNullCheckNode::label_set(Label* label, uint block_num) {
 513   // Nothing to emit


src/share/vm/opto/machnode.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File