equal
deleted
inserted
replaced
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()) { |