Mercurial > hg > truffle
comparison src/share/vm/oops/method.cpp @ 12073:f99558245e5c
8022832: Add WB APIs for OSR compilation
Reviewed-by: kvn
author | iignatyev |
---|---|
date | Wed, 14 Aug 2013 23:50:23 +0400 |
parents | 16511b7e3d35 |
children | 6725044c5725 |
comparison
equal
deleted
inserted
replaced
12072:6c72125a2f40 | 12073:f99558245e5c |
---|---|
745 set_not_c1_compilable(); | 745 set_not_c1_compilable(); |
746 if (is_c2_compile(comp_level)) | 746 if (is_c2_compile(comp_level)) |
747 set_not_c2_compilable(); | 747 set_not_c2_compilable(); |
748 } | 748 } |
749 CompilationPolicy::policy()->disable_compilation(this); | 749 CompilationPolicy::policy()->disable_compilation(this); |
750 assert(!CompilationPolicy::can_be_compiled(this, comp_level), "sanity check"); | |
750 } | 751 } |
751 | 752 |
752 bool Method::is_not_osr_compilable(int comp_level) const { | 753 bool Method::is_not_osr_compilable(int comp_level) const { |
753 if (is_not_compilable(comp_level)) | 754 if (is_not_compilable(comp_level)) |
754 return true; | 755 return true; |
771 set_not_c1_osr_compilable(); | 772 set_not_c1_osr_compilable(); |
772 if (is_c2_compile(comp_level)) | 773 if (is_c2_compile(comp_level)) |
773 set_not_c2_osr_compilable(); | 774 set_not_c2_osr_compilable(); |
774 } | 775 } |
775 CompilationPolicy::policy()->disable_compilation(this); | 776 CompilationPolicy::policy()->disable_compilation(this); |
777 assert(!CompilationPolicy::can_be_osr_compiled(this, comp_level), "sanity check"); | |
776 } | 778 } |
777 | 779 |
778 // Revert to using the interpreter and clear out the nmethod | 780 // Revert to using the interpreter and clear out the nmethod |
779 void Method::clear_code() { | 781 void Method::clear_code() { |
780 | 782 |