--- old/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/BailoutAndRestartBackendException.java 2017-03-20 17:39:41.000000000 -0700 +++ new/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/BailoutAndRestartBackendException.java 2017-03-20 17:39:41.000000000 -0700 @@ -22,13 +22,10 @@ */ package org.graalvm.compiler.lir; -import org.graalvm.compiler.common.PermanentBailoutException; -import org.graalvm.compiler.lir.phases.LIRSuites; +import org.graalvm.compiler.core.common.PermanentBailoutException; import org.graalvm.compiler.options.Option; +import org.graalvm.compiler.options.OptionKey; import org.graalvm.compiler.options.OptionType; -import org.graalvm.compiler.options.OptionValue; -import org.graalvm.compiler.options.OptionValue.OverrideScope; -import org.graalvm.compiler.options.StableOptionValue; /** * Restarts the {@link LIR low-level} compilation with a modified configuration. @@ -40,7 +37,7 @@ public static class Options { // @formatter:off @Option(help = "Unlock backend restart feature.", type = OptionType.Debug) - public static final StableOptionValue LIRUnlockBackendRestart = new StableOptionValue<>(false); + public static final OptionKey LIRUnlockBackendRestart = new OptionKey<>(false); // @formatter:on } @@ -53,21 +50,4 @@ public BailoutAndRestartBackendException(Throwable cause, String msg) { super(cause, msg); } - - /** Returns {@code true} if the low-level compilation should be restarted. */ - public abstract boolean shouldRestart(); - - /** - * Returns an {@link OverrideScope} to change {@link OptionValue OptionValues} or {@code null} - * if no changes are required. - */ - public abstract OverrideScope getOverrideScope(); - - /** - * Updates the {@link LIRSuites} used by the low-level compiler. Note that {@link LIRSuites} are - * usually shared, so a modified input parameter will affect other compilations. In case only - * the current compilation should be altered, create a copy using {@link LIRSuites#copy()}. - */ - public abstract LIRSuites updateLIRSuites(LIRSuites lirSuites); - }