6975855: don't emit deopt MH handler in C1 if not required

This CR implements the same for C1 as 6926782 for C2.

Reviewed-by: never
This commit is contained in:
Christian Thalinger 2010-08-11 01:17:27 -07:00
parent dc37d152e7
commit c9ac8cc788
4 changed files with 24 additions and 6 deletions

View file

@ -438,6 +438,12 @@ void LIR_Assembler::emit_call(LIR_OpJavaCall* op) {
default: ShouldNotReachHere();
}
// JSR 292
// Record if this method has MethodHandle invokes.
if (op->is_method_handle_invoke()) {
compilation()->set_has_method_handle_invokes(true);
}
#if defined(X86) && defined(TIERED)
// C2 leave fpu stack dirty clean it
if (UseSSE < 2) {