Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalGlobals.hpp @ 7125:1baf7f1e3f23
decoupled C++ Graal runtime from C1
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 03 Dec 2012 15:32:17 +0100 |
parents | |
children | 5d0bb7d52783 fdba3a43483a |
comparison
equal
deleted
inserted
replaced
7124:ab65fa23f8e9 | 7125:1baf7f1e3f23 |
---|---|
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_GRAAL_GRAALGLOBALS_HPP | |
26 #define SHARE_VM_GRAAL_GRAALGLOBALS_HPP | |
27 | |
28 #include "runtime/globals.hpp" | |
29 #ifdef TARGET_ARCH_x86 | |
30 # include "graalGlobals_x86.hpp" | |
31 #endif | |
32 #ifdef TARGET_ARCH_sparc | |
33 # include "graalGlobals_sparc.hpp" | |
34 #endif | |
35 #ifdef TARGET_ARCH_arm | |
36 # include "graalGlobals_arm.hpp" | |
37 #endif | |
38 #ifdef TARGET_ARCH_ppc | |
39 # include "graalGlobals_ppc.hpp" | |
40 #endif | |
41 | |
42 // | |
43 // Defines all global flags used by the Graal compiler. | |
44 // | |
45 #define GRAAL_FLAGS(develop, develop_pd, product, product_pd, notproduct) \ | |
46 \ | |
47 product(bool, DebugGraal, true, \ | |
48 "Enable JVMTI for the compiler thread") \ | |
49 \ | |
50 product(bool, BootstrapGraal, true, \ | |
51 "Bootstrap Graal before running Java main method") \ | |
52 \ | |
53 product(ccstr, GraalClassPath, NULL, \ | |
54 "Use the class path for Graal classes") \ | |
55 \ | |
56 product(intx, TraceGraal, 0, \ | |
57 "Trace level for Graal") \ | |
58 \ | |
59 product(bool, TraceSignals, false, \ | |
60 "Trace signals and implicit exception handling") \ | |
61 \ | |
62 product_pd(intx, SafepointPollOffset, \ | |
63 "Offset added to polling address (Intel only)") \ | |
64 \ | |
65 develop(bool, UseFastNewInstance, true, \ | |
66 "Use fast inlined instance allocation") \ | |
67 \ | |
68 develop(bool, UseFastNewTypeArray, true, \ | |
69 "Use fast inlined type array allocation") \ | |
70 \ | |
71 develop(bool, UseFastNewObjectArray, true, \ | |
72 "Use fast inlined object array allocation") \ | |
73 \ | |
74 develop(bool, UseFastLocking, true, \ | |
75 "Use fast inlined locking code") \ | |
76 \ | |
77 develop(intx, GraalNMethodSizeLimit, (64*K)*wordSize, \ | |
78 "Maximum size of a compiled method.") \ | |
79 \ | |
80 notproduct(bool, PrintSimpleStubs, false, \ | |
81 "Print SimpleStubs") \ | |
82 \ | |
83 | |
84 | |
85 // Read default values for Graal globals | |
86 | |
87 GRAAL_FLAGS(DECLARE_DEVELOPER_FLAG, DECLARE_PD_DEVELOPER_FLAG, DECLARE_PRODUCT_FLAG, DECLARE_PD_PRODUCT_FLAG, DECLARE_NOTPRODUCT_FLAG) | |
88 | |
89 #endif // SHARE_VM_GRAAL_GRAALGLOBALS_HPP |