8266252: Streamline AbstractInterpreter::method_kind

Reviewed-by: iklam, coleenp
This commit is contained in:
Claes Redestad 2021-05-10 13:51:12 +00:00
parent b823b3ef29
commit e41fd73529
4 changed files with 57 additions and 62 deletions

View file

@ -620,11 +620,6 @@ void Method::compute_from_signature(Symbol* sig) {
constMethod()->set_fingerprint(fp.fingerprint());
}
bool Method::is_empty_method() const {
return code_size() == 1
&& *code_base() == Bytecodes::_return;
}
bool Method::is_vanilla_constructor() const {
// Returns true if this method is a vanilla constructor, i.e. an "<init>" "()V" method
// which only calls the superclass vanilla constructor and possibly does stores of