7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 package org.graalvm.compiler.hotspot.stubs; 24 25 import org.graalvm.compiler.options.Option; 26 import org.graalvm.compiler.options.OptionType; 27 import org.graalvm.compiler.options.OptionValue; 28 29 //JaCoCo Exclude 30 31 /** 32 * Options related to HotSpot Graal-generated stubs. 33 * 34 * Note: This must be a top level class to work around for 35 * <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=477597">Eclipse bug 477597</a>. 36 */ 37 public class StubOptions { 38 // @formatter:off 39 @Option(help = "Trace execution of stub used to handle an exception thrown by a callee.", type = OptionType.Debug) 40 static final OptionValue<Boolean> TraceExceptionHandlerStub = new OptionValue<>(false); 41 42 @Option(help = "Trace execution of the stub that routes an exception to a handler in the calling frame.", type = OptionType.Debug) 43 static final OptionValue<Boolean> TraceUnwindStub = new OptionValue<>(false); 44 45 @Option(help = "Trace execution of slow path stub for array allocation.", type = OptionType.Debug) 46 static final OptionValue<Boolean> TraceNewArrayStub = new OptionValue<>(false); 47 48 @Option(help = "Trace execution of slow path stub for non-array object allocation.", type = OptionType.Debug) 49 static final OptionValue<Boolean> TraceNewInstanceStub = new OptionValue<>(false); 50 51 @Option(help = "Force non-array object allocation to always use the slow path.", type = OptionType.Debug) 52 static final OptionValue<Boolean> ForceUseOfNewInstanceStub = new OptionValue<>(false); 53 //@formatter:on 54 } | 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 package org.graalvm.compiler.hotspot.stubs; 24 25 import org.graalvm.compiler.options.Option; 26 import org.graalvm.compiler.options.OptionType; 27 import org.graalvm.compiler.options.OptionKey; 28 29 //JaCoCo Exclude 30 31 /** 32 * Options related to HotSpot Graal-generated stubs. 33 * 34 * Note: This must be a top level class to work around for 35 * <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=477597">Eclipse bug 477597</a>. 36 */ 37 public class StubOptions { 38 // @formatter:off 39 @Option(help = "Trace execution of stub used to handle an exception thrown by a callee.", type = OptionType.Debug) 40 static final OptionKey<Boolean> TraceExceptionHandlerStub = new OptionKey<>(false); 41 42 @Option(help = "Trace execution of the stub that routes an exception to a handler in the calling frame.", type = OptionType.Debug) 43 static final OptionKey<Boolean> TraceUnwindStub = new OptionKey<>(false); 44 45 @Option(help = "Trace execution of slow path stub for array allocation.", type = OptionType.Debug) 46 static final OptionKey<Boolean> TraceNewArrayStub = new OptionKey<>(false); 47 48 @Option(help = "Trace execution of slow path stub for non-array object allocation.", type = OptionType.Debug) 49 static final OptionKey<Boolean> TraceNewInstanceStub = new OptionKey<>(false); 50 51 @Option(help = "Force non-array object allocation to always use the slow path.", type = OptionType.Debug) 52 static final OptionKey<Boolean> ForceUseOfNewInstanceStub = new OptionKey<>(false); 53 //@formatter:on 54 } |