Mercurial > hg > graal-jvmci-8
comparison src/share/vm/jvmci/jvmciCompilerToVM.cpp @ 23317:1fe52e24abe2
JVMCI should check is_not_compilable only for CompLevel_full_optimization
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Tue, 08 Mar 2016 10:01:28 -0800 |
parents | 21fe118a18e6 |
children | f8178417d018 |
comparison
equal
deleted
inserted
replaced
23316:c0df579bf9db | 23317:1fe52e24abe2 |
---|---|
283 return method->is_ignored_by_security_stack_walk(); | 283 return method->is_ignored_by_security_stack_walk(); |
284 C2V_END | 284 C2V_END |
285 | 285 |
286 C2V_VMENTRY(jboolean, canInlineMethod,(JNIEnv *, jobject, jobject jvmci_method)) | 286 C2V_VMENTRY(jboolean, canInlineMethod,(JNIEnv *, jobject, jobject jvmci_method)) |
287 methodHandle method = CompilerToVM::asMethod(jvmci_method); | 287 methodHandle method = CompilerToVM::asMethod(jvmci_method); |
288 return !method->is_not_compilable() && !CompilerOracle::should_not_inline(method) && !method->dont_inline(); | 288 #ifdef COMPILER_JVMCI |
289 bool is_compilable = !method->is_not_compilable(CompLevel_full_optimization); | |
290 #else | |
291 // In hosted mode ignore the not_compilable flags since they are never set by | |
292 // the JVMCI compiler. | |
293 bool is_compilable = true; | |
294 #endif | |
295 return is_compilable && !CompilerOracle::should_not_inline(method) && !method->dont_inline(); | |
289 C2V_END | 296 C2V_END |
290 | 297 |
291 C2V_VMENTRY(jboolean, shouldInlineMethod,(JNIEnv *, jobject, jobject jvmci_method)) | 298 C2V_VMENTRY(jboolean, shouldInlineMethod,(JNIEnv *, jobject, jobject jvmci_method)) |
292 methodHandle method = CompilerToVM::asMethod(jvmci_method); | 299 methodHandle method = CompilerToVM::asMethod(jvmci_method); |
293 return CompilerOracle::should_inline(method) || method->force_inline(); | 300 return CompilerOracle::should_inline(method) || method->force_inline(); |