hotspot/src/share/vm/c1/c1_LIRAssembler.cpp
changeset 6186 7eef4cda471c
parent 5702 201c5cde25bb
child 6453 970dc585ab63
--- a/hotspot/src/share/vm/c1/c1_LIRAssembler.cpp	Tue Aug 10 12:15:10 2010 -0700
+++ b/hotspot/src/share/vm/c1/c1_LIRAssembler.cpp	Wed Aug 11 01:17:27 2010 -0700
@@ -438,6 +438,12 @@
   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) {