121 if (!AbstractInterpreter::can_be_compiled(m)) { |
121 if (!AbstractInterpreter::can_be_compiled(m)) { |
122 return false; |
122 return false; |
123 } |
123 } |
124 if (comp_level == CompLevel_all) { |
124 if (comp_level == CompLevel_all) { |
125 return !m->is_not_compilable(CompLevel_simple) && !m->is_not_compilable(CompLevel_full_optimization); |
125 return !m->is_not_compilable(CompLevel_simple) && !m->is_not_compilable(CompLevel_full_optimization); |
126 } else { |
126 } else if (is_compile(comp_level)) { |
127 return !m->is_not_compilable(comp_level); |
127 return !m->is_not_compilable(comp_level); |
128 } |
128 } |
|
129 return false; |
129 } |
130 } |
130 |
131 |
131 bool CompilationPolicy::is_compilation_enabled() { |
132 bool CompilationPolicy::is_compilation_enabled() { |
132 // NOTE: CompileBroker::should_compile_new_jobs() checks for UseCompiler |
133 // NOTE: CompileBroker::should_compile_new_jobs() checks for UseCompiler |
133 return !delay_compilation_during_startup() && CompileBroker::should_compile_new_jobs(); |
134 return !delay_compilation_during_startup() && CompileBroker::should_compile_new_jobs(); |