Mercurial > hg > truffle
comparison src/share/vm/compiler/compileBroker.cpp @ 9080:b84fd7d73702
8007288: Additional WB API for compiler's testing
Reviewed-by: kvn, vlivanov
author | iignatyev |
---|---|
date | Tue, 09 Apr 2013 09:54:17 -0700 |
parents | 46f6f063b272 |
children | 89e4d67fdd2a a7fb14888912 |
comparison
equal
deleted
inserted
replaced
9079:f67065f02409 | 9080:b84fd7d73702 |
---|---|
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); |