252 public String disassemble(InstalledCode code) {
253 if (code.isValid()) {
254 return runtime.getCompilerToVM().disassembleCodeBlob(code);
255 }
256 return null;
257 }
258
259 public SpeculationLog createSpeculationLog() {
260 return new HotSpotSpeculationLog();
261 }
262
263 public long getMaxCallTargetOffset(long address) {
264 return runtime.getCompilerToVM().getMaxCallTargetOffset(address);
265 }
266
267 public boolean shouldDebugNonSafepoints() {
268 return runtime.getCompilerToVM().shouldDebugNonSafepoints();
269 }
270
271 /**
272 * Notifies the VM of statistics for a completed compilation.
273 *
274 * @param id the identifier of the compilation
275 * @param method the method compiled
276 * @param osr specifies if the compilation was for on-stack-replacement
277 * @param processedBytecodes the number of bytecodes processed during the compilation, including
278 * the bytecodes of all inlined methods
279 * @param time the amount time spent compiling {@code method}
280 * @param timeUnitsPerSecond the granularity of the units for the {@code time} value
281 * @param installedCode the nmethod installed as a result of the compilation
282 */
283 public void notifyCompilationStatistics(int id, HotSpotResolvedJavaMethod method, boolean osr, int processedBytecodes, long time, long timeUnitsPerSecond, InstalledCode installedCode) {
284 runtime.getCompilerToVM().notifyCompilationStatistics(id, (HotSpotResolvedJavaMethodImpl) method, osr, processedBytecodes, time, timeUnitsPerSecond, installedCode);
285 }
286
287 /**
288 * Resets all compilation statistics.
289 */
290 public void resetCompilationStatistics() {
291 runtime.getCompilerToVM().resetCompilationStatistics();
292 }
293 }
|
252 public String disassemble(InstalledCode code) {
253 if (code.isValid()) {
254 return runtime.getCompilerToVM().disassembleCodeBlob(code);
255 }
256 return null;
257 }
258
259 public SpeculationLog createSpeculationLog() {
260 return new HotSpotSpeculationLog();
261 }
262
263 public long getMaxCallTargetOffset(long address) {
264 return runtime.getCompilerToVM().getMaxCallTargetOffset(address);
265 }
266
267 public boolean shouldDebugNonSafepoints() {
268 return runtime.getCompilerToVM().shouldDebugNonSafepoints();
269 }
270
271 /**
272 * Resets all compilation statistics.
273 */
274 public void resetCompilationStatistics() {
275 runtime.getCompilerToVM().resetCompilationStatistics();
276 }
277 }
|