43972
|
1 |
/*
|
|
2 |
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
|
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4 |
*
|
|
5 |
* This code is free software; you can redistribute it and/or modify it
|
|
6 |
* under the terms of the GNU General Public License version 2 only, as
|
|
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.java;
|
|
24 |
|
|
25 |
import org.graalvm.compiler.options.Option;
|
|
26 |
import org.graalvm.compiler.options.OptionType;
|
46344
|
27 |
import org.graalvm.compiler.options.OptionKey;
|
43972
|
28 |
|
|
29 |
/**
|
|
30 |
* Options related to {@link BytecodeParser}.
|
|
31 |
*
|
|
32 |
* Note: This must be a top level class to work around for
|
|
33 |
* <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=477597">Eclipse bug 477597</a>.
|
|
34 |
*/
|
|
35 |
public class BytecodeParserOptions {
|
|
36 |
// @formatter:off
|
48861
|
37 |
@Option(help = "The trace level for the bytecode parser. A value of 1 enables instruction tracing " +
|
|
38 |
"and any greater value emits a frame state trace just prior to an instruction trace. " +
|
|
39 |
"This option requires assertions to be enabled.", type = OptionType.Debug)
|
46344
|
40 |
public static final OptionKey<Integer> TraceBytecodeParserLevel = new OptionKey<>(0);
|
43972
|
41 |
|
|
42 |
@Option(help = "Inlines trivial methods during bytecode parsing.", type = OptionType.Expert)
|
46344
|
43 |
public static final OptionKey<Boolean> InlineDuringParsing = new OptionKey<>(true);
|
43972
|
44 |
|
46509
|
45 |
@Option(help = "Inlines partial intrinsic exits during bytecode parsing when possible. " +
|
|
46 |
"A partial intrinsic exit is a call within an intrinsic to the method " +
|
|
47 |
"being intrinsified and denotes semantics of the original method that " +
|
|
48 |
"the intrinsic does not support.", type = OptionType.Expert)
|
|
49 |
public static final OptionKey<Boolean> InlinePartialIntrinsicExitDuringParsing = new OptionKey<>(true);
|
|
50 |
|
43972
|
51 |
@Option(help = "Inlines intrinsic methods during bytecode parsing.", type = OptionType.Expert)
|
46344
|
52 |
public static final OptionKey<Boolean> InlineIntrinsicsDuringParsing = new OptionKey<>(true);
|
43972
|
53 |
|
|
54 |
@Option(help = "Traces inlining performed during bytecode parsing.", type = OptionType.Debug)
|
46344
|
55 |
public static final OptionKey<Boolean> TraceInlineDuringParsing = new OptionKey<>(false);
|
43972
|
56 |
|
|
57 |
@Option(help = "Traces use of plugins during bytecode parsing.", type = OptionType.Debug)
|
46344
|
58 |
public static final OptionKey<Boolean> TraceParserPlugins = new OptionKey<>(false);
|
43972
|
59 |
|
|
60 |
@Option(help = "Maximum depth when inlining during bytecode parsing.", type = OptionType.Debug)
|
48861
|
61 |
public static final OptionKey<Integer> InlineDuringParsingMaxDepth = new OptionKey<>(3);
|
43972
|
62 |
|
|
63 |
@Option(help = "When creating info points hide the methods of the substitutions.", type = OptionType.Debug)
|
46344
|
64 |
public static final OptionKey<Boolean> HideSubstitutionStates = new OptionKey<>(false);
|
43972
|
65 |
|
|
66 |
@Option(help = "Use intrinsics guarded by a virtual dispatch test at indirect call sites.", type = OptionType.Debug)
|
46344
|
67 |
public static final OptionKey<Boolean> UseGuardedIntrinsics = new OptionKey<>(true);
|
43972
|
68 |
// @formatter:on
|
|
69 |
}
|