equal
deleted
inserted
replaced
677 methodHandle mh(THREAD, Method::checked_resolve_jmethod_id(jmid)); |
677 methodHandle mh(THREAD, Method::checked_resolve_jmethod_id(jmid)); |
678 return mh->queued_for_compilation(); |
678 return mh->queued_for_compilation(); |
679 WB_END |
679 WB_END |
680 |
680 |
681 WB_ENTRY(jboolean, WB_IsIntrinsicAvailable(JNIEnv* env, jobject o, jobject method, jobject compilation_context, jint compLevel)) |
681 WB_ENTRY(jboolean, WB_IsIntrinsicAvailable(JNIEnv* env, jobject o, jobject method, jobject compilation_context, jint compLevel)) |
682 if (compLevel < CompLevel_none || compLevel > TieredStopAtLevel) { |
682 if (compLevel < CompLevel_none || compLevel > MIN2((CompLevel) TieredStopAtLevel, CompLevel_highest_tier)) { |
683 return false; // Intrinsic is not available on a non-existent compilation level. |
683 return false; // Intrinsic is not available on a non-existent compilation level. |
684 } |
684 } |
685 jmethodID method_id, compilation_context_id; |
685 jmethodID method_id, compilation_context_id; |
686 method_id = reflected_method_to_jmid(thread, env, method); |
686 method_id = reflected_method_to_jmid(thread, env, method); |
687 CHECK_JNI_EXCEPTION_(env, JNI_FALSE); |
687 CHECK_JNI_EXCEPTION_(env, JNI_FALSE); |