6912064: type profiles need to be exploited more for dynamic language support

Reviewed-by: kvn
This commit is contained in:
John R Rose 2010-08-20 23:40:30 -07:00
parent a54b1ff70e
commit c7e50e8305
8 changed files with 204 additions and 64 deletions

View file

@ -119,7 +119,11 @@ void Parse::do_instanceof() {
}
// Push the bool result back on stack
push( gen_instanceof( pop(), makecon(TypeKlassPtr::make(klass)) ) );
Node* res = gen_instanceof(peek(), makecon(TypeKlassPtr::make(klass)));
// Pop from stack AFTER gen_instanceof because it can uncommon trap.
pop();
push(res);
}
//------------------------------array_store_check------------------------------