136 if (isCompilable()) { |
136 if (isCompilable()) { |
137 throw new RuntimeException(method + " must be not compilable"); |
137 throw new RuntimeException(method + " must be not compilable"); |
138 } |
138 } |
139 |
139 |
140 compile(); |
140 compile(); |
141 checkNotCompiled(); |
141 checkNotOsrCompiled(); |
142 if (isCompilable()) { |
142 if (isCompilable()) { |
143 throw new RuntimeException(method + " must be not compilable"); |
143 throw new RuntimeException(method + " must be not compilable"); |
144 } |
144 } |
145 // WB.clearMethodState() must reset no-compilable flags |
145 // WB.clearMethodState() must reset no-compilable flags |
146 WHITE_BOX.clearMethodState(method); |
146 WHITE_BOX.clearMethodState(method); |