1204 // make sure arguments make sense |
1204 // make sure arguments make sense |
1205 assert(method->method_holder()->oop_is_instance(), "not an instance method"); |
1205 assert(method->method_holder()->oop_is_instance(), "not an instance method"); |
1206 assert(osr_bci == InvocationEntryBci || (0 <= osr_bci && osr_bci < method->code_size()), "bci out of range"); |
1206 assert(osr_bci == InvocationEntryBci || (0 <= osr_bci && osr_bci < method->code_size()), "bci out of range"); |
1207 assert(!method->is_abstract() && (osr_bci == InvocationEntryBci || !method->is_native()), "cannot compile abstract/native methods"); |
1207 assert(!method->is_abstract() && (osr_bci == InvocationEntryBci || !method->is_native()), "cannot compile abstract/native methods"); |
1208 assert(!method->method_holder()->is_not_initialized(), "method holder must be initialized"); |
1208 assert(!method->method_holder()->is_not_initialized(), "method holder must be initialized"); |
1209 |
1209 // allow any levels for WhiteBox |
1210 if (!TieredCompilation) { |
1210 assert(WhiteBoxAPI || TieredCompilation || comp_level == CompLevel_highest_tier, "only CompLevel_highest_tier must be used in non-tiered"); |
1211 comp_level = CompLevel_highest_tier; |
|
1212 } |
|
1213 |
|
1214 // return quickly if possible |
1211 // return quickly if possible |
1215 |
1212 |
1216 // lock, make sure that the compilation |
1213 // lock, make sure that the compilation |
1217 // isn't prohibited in a straightforward way. |
1214 // isn't prohibited in a straightforward way. |
1218 AbstractCompiler *comp = CompileBroker::compiler(comp_level); |
1215 AbstractCompiler *comp = CompileBroker::compiler(comp_level); |