src/hotspot/share/opto/compile.cpp
changeset 51078 fc6cfe40e32a
parent 50525 767cdb97f103
child 51333 f6641fcf7b7e
equal deleted inserted replaced
51077:9baa91bc7567 51078:fc6cfe40e32a
  4047   }
  4047   }
  4048 }
  4048 }
  4049 
  4049 
  4050 int Compile::ConstantTable::find_offset(Constant& con) const {
  4050 int Compile::ConstantTable::find_offset(Constant& con) const {
  4051   int idx = _constants.find(con);
  4051   int idx = _constants.find(con);
  4052   assert(idx != -1, "constant must be in constant table");
  4052   guarantee(idx != -1, "constant must be in constant table");
  4053   int offset = _constants.at(idx).offset();
  4053   int offset = _constants.at(idx).offset();
  4054   assert(offset != -1, "constant table not emitted yet?");
  4054   guarantee(offset != -1, "constant table not emitted yet?");
  4055   return offset;
  4055   return offset;
  4056 }
  4056 }
  4057 
  4057 
  4058 void Compile::ConstantTable::add(Constant& con) {
  4058 void Compile::ConstantTable::add(Constant& con) {
  4059   if (con.can_be_reused()) {
  4059   if (con.can_be_reused()) {