Mercurial > hg > truffle
comparison src/share/vm/jvmci/jvmciGlobals.hpp @ 21559:be896a1983c0
recast all Graal native code as JVMCI code (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 28 May 2015 15:36:48 +0200 |
parents | src/share/vm/graal/graalGlobals.hpp@019ae3824a4e |
children |
comparison
equal
deleted
inserted
replaced
21558:d563baeca9df | 21559:be896a1983c0 |
---|---|
1 /* | |
2 * Copyright (c) 2000, 2012, 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 */ | |
24 | |
25 #ifndef SHARE_VM_JVMCI_JVMCIGLOBALS_HPP | |
26 #define SHARE_VM_JVMCI_JVMCIGLOBALS_HPP | |
27 | |
28 #include "runtime/globals.hpp" | |
29 #ifdef TARGET_ARCH_x86 | |
30 # include "jvmciGlobals_x86.hpp" | |
31 #endif | |
32 #ifdef TARGET_ARCH_sparc | |
33 # include "jvmciGlobals_sparc.hpp" | |
34 #endif | |
35 #ifdef TARGET_ARCH_arm | |
36 # include "jvmciGlobals_arm.hpp" | |
37 #endif | |
38 #ifdef TARGET_ARCH_ppc | |
39 # include "jvmciGlobals_ppc.hpp" | |
40 #endif | |
41 | |
42 // | |
43 // Defines all global flags used by the JVMCI compiler. Only flags that need | |
44 // to be accessible to the JVMCI C++ code should be defined here. All other | |
45 // JVMCI flags should be defined in JVMCIOptions.java. | |
46 // | |
47 #define JVMCI_FLAGS(develop, develop_pd, product, product_pd, notproduct) \ | |
48 \ | |
49 product(bool, DebugJVMCI, true, \ | |
50 "Enable JVMTI for the compiler thread") \ | |
51 \ | |
52 product(bool, UseJVMCIClassLoader, true, \ | |
53 "Load JVMCI classes with separate class loader") \ | |
54 \ | |
55 COMPILERJVMCI_PRESENT(product(bool, BootstrapJVMCI, true, \ | |
56 "Bootstrap JVMCI before running Java main method")) \ | |
57 \ | |
58 COMPILERJVMCI_PRESENT(product(bool, PrintBootstrap, true, \ | |
59 "Print JVMCI bootstrap progress and summary")) \ | |
60 \ | |
61 COMPILERJVMCI_PRESENT(product(intx, JVMCIThreads, 1, \ | |
62 "Force number of JVMCI compiler threads to use")) \ | |
63 \ | |
64 COMPILERJVMCI_PRESENT(product(intx, JVMCIHostThreads, 1, \ | |
65 "Force number of compiler threads for JVMCI host compiler")) \ | |
66 \ | |
67 JVMCI_ONLY(product(bool, CodeInstallSafepointChecks, true, \ | |
68 "Perform explicit safepoint checks while installing code")) \ | |
69 \ | |
70 NOT_COMPILER2(product_pd(intx, MaxVectorSize, \ | |
71 "Max vector size in bytes, " \ | |
72 "actual size could be less depending on elements type")) \ | |
73 \ | |
74 product(intx, TraceJVMCI, 0, \ | |
75 "Trace level for JVMCI") \ | |
76 \ | |
77 product(intx, JVMCICounterSize, 0, \ | |
78 "Reserved size for benchmark counters") \ | |
79 \ | |
80 product(bool, JVMCICountersExcludeCompiler, true, \ | |
81 "Exclude JVMCI compiler threads from benchmark counters") \ | |
82 \ | |
83 product(bool, JVMCIDeferredInitBarriers, true, \ | |
84 "Defer write barriers of young objects") \ | |
85 \ | |
86 product(bool, JVMCIHProfEnabled, false, \ | |
87 "Is Heap Profiler enabled") \ | |
88 \ | |
89 product(bool, JVMCICompileWithC1Only, true, \ | |
90 "Only compile JVMCI classes with C1") \ | |
91 \ | |
92 product(bool, JVMCICompileAppFirst, false, \ | |
93 "Prioritize application compilations over JVMCI compilations") \ | |
94 \ | |
95 develop(bool, JVMCIUseFastLocking, true, \ | |
96 "Use fast inlined locking code") \ | |
97 \ | |
98 develop(bool, JVMCIUseFastNewTypeArray, true, \ | |
99 "Use fast inlined type array allocation") \ | |
100 \ | |
101 develop(bool, JVMCIUseFastNewObjectArray, true, \ | |
102 "Use fast inlined object array allocation") \ | |
103 \ | |
104 product(intx, JVMCINMethodSizeLimit, (80*K)*wordSize, \ | |
105 "Maximum size of a compiled method.") \ | |
106 \ | |
107 notproduct(bool, JVMCIPrintSimpleStubs, false, \ | |
108 "Print simple JVMCI stubs") \ | |
109 \ | |
110 develop(bool, TraceUncollectedSpeculations, false, \ | |
111 "Print message when a failed speculation was not collected") \ | |
112 | |
113 | |
114 // Read default values for JVMCI globals | |
115 | |
116 JVMCI_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_NOTPRODUCT_FLAG) | |
117 | |
118 #endif // SHARE_VM_JVMCI_JVMCIGLOBALS_HPP |