src/hotspot/cpu/x86/x86_32.ad
changeset 54120 677cede5608e
parent 53050 33d33996a638
child 54450 8d51a40fbd23
equal deleted inserted replaced
54119:6bf8877eb1b9 54120:677cede5608e
   389 // emit 32 bit value and construct relocation entry from RelocationHolder
   389 // emit 32 bit value and construct relocation entry from RelocationHolder
   390 void emit_d32_reloc(CodeBuffer &cbuf, int d32, RelocationHolder const& rspec,
   390 void emit_d32_reloc(CodeBuffer &cbuf, int d32, RelocationHolder const& rspec,
   391         int format) {
   391         int format) {
   392 #ifdef ASSERT
   392 #ifdef ASSERT
   393   if (rspec.reloc()->type() == relocInfo::oop_type && d32 != 0 && d32 != (int)Universe::non_oop_word()) {
   393   if (rspec.reloc()->type() == relocInfo::oop_type && d32 != 0 && d32 != (int)Universe::non_oop_word()) {
   394     assert(oopDesc::is_oop(cast_to_oop(d32)) && (ScavengeRootsInCode || !Universe::heap()->is_scavengable(cast_to_oop(d32))), "cannot embed scavengable oops in code");
   394     assert(oopDesc::is_oop(cast_to_oop(d32)), "cannot embed broken oops in code");
   395   }
   395   }
   396 #endif
   396 #endif
   397   cbuf.relocate(cbuf.insts_mark(), rspec, format);
   397   cbuf.relocate(cbuf.insts_mark(), rspec, format);
   398   cbuf.insts()->emit_int32(d32);
   398   cbuf.insts()->emit_int32(d32);
   399 }
   399 }