Mercurial > hg > graal-jvmci-8
annotate jvmci/jdk.vm.ci.hotspot.sparc/src/jdk/vm/ci/hotspot/sparc/SPARCHotSpotVMConfig.java @ 23693:0d09e13523b4 jvmci-0.14
SPARCHotSpotRegisterConfig.callingConvention gives incorrect calling convention for native calls containing fp args (JDK-8159368)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 16 Jun 2016 18:39:34 +0200 |
parents | 50465926fbeb |
children |
rev | line source |
---|---|
23679
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
1 /* |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
2 * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
4 * |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
7 * published by the Free Software Foundation. |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
8 * |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
12 * version 2 for more details (a copy is included in the LICENSE file that |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
13 * accompanied this code). |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
14 * |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
15 * You should have received a copy of the GNU General Public License version |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
16 * 2 along with this work; if not, write to the Free Software Foundation, |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
18 * |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
21 * questions. |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
22 */ |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
23 package jdk.vm.ci.hotspot.sparc; |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
24 |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
25 import jdk.vm.ci.hotspot.HotSpotVMConfigAccess; |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
26 import jdk.vm.ci.hotspot.HotSpotVMConfigStore; |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
27 |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
28 /** |
23686
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
29 * Used to access SPARC specific native configuration details. |
23679
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
30 */ |
23686
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
31 class SPARCHotSpotVMConfig extends HotSpotVMConfigAccess { |
23679
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
32 |
23686
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
33 SPARCHotSpotVMConfig(HotSpotVMConfigStore config) { |
23679
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
34 super(config); |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
35 } |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
36 |
23686
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
37 final boolean useCompressedOops = getFlag("UseCompressedOops", Boolean.class); |
23679
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
38 |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
39 // CPU capabilities |
23686
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
40 final int vmVersionFeatures = getFieldValue("VM_Version::_features", Integer.class, "int"); |
23679
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
41 |
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
42 // SPARC specific values |
23686
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
43 final int sparcVis3Instructions = getConstant("VM_Version::vis3_instructions_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
44 final int sparcVis2Instructions = getConstant("VM_Version::vis2_instructions_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
45 final int sparcVis1Instructions = getConstant("VM_Version::vis1_instructions_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
46 final int sparcCbcondInstructions = getConstant("VM_Version::cbcond_instructions_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
47 final int sparcV8Instructions = getConstant("VM_Version::v8_instructions_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
48 final int sparcHardwareMul32 = getConstant("VM_Version::hardware_mul32_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
49 final int sparcHardwareDiv32 = getConstant("VM_Version::hardware_div32_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
50 final int sparcHardwareFsmuld = getConstant("VM_Version::hardware_fsmuld_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
51 final int sparcHardwarePopc = getConstant("VM_Version::hardware_popc_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
52 final int sparcV9Instructions = getConstant("VM_Version::v9_instructions_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
53 final int sparcSun4v = getConstant("VM_Version::sun4v_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
54 final int sparcBlkInitInstructions = getConstant("VM_Version::blk_init_instructions_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
55 final int sparcFmafInstructions = getConstant("VM_Version::fmaf_instructions_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
56 final int sparcFmauInstructions = getConstant("VM_Version::fmau_instructions_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
57 final int sparcSparc64Family = getConstant("VM_Version::sparc64_family_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
58 final int sparcMFamily = getConstant("VM_Version::M_family_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
59 final int sparcTFamily = getConstant("VM_Version::T_family_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
60 final int sparcT1Model = getConstant("VM_Version::T1_model_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
61 final int sparcSparc5Instructions = getConstant("VM_Version::sparc5_instructions_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
62 final int sparcAesInstructions = getConstant("VM_Version::aes_instructions_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
63 final int sparcSha1Instruction = getConstant("VM_Version::sha1_instruction_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
64 final int sparcSha256Instruction = getConstant("VM_Version::sha256_instruction_m", Integer.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
65 final int sparcSha512Instruction = getConstant("VM_Version::sha512_instruction_m", Integer.class); |
23679
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
66 |
23686
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
67 final boolean useBlockZeroing = getFlag("UseBlockZeroing", Boolean.class); |
50465926fbeb
make all HotSpotVMConfigAccess subclasses and their members package-private
Doug Simon <doug.simon@oracle.com>
parents:
23682
diff
changeset
|
68 final int blockZeroingLowLimit = getFlag("BlockZeroingLowLimit", Integer.class); |
23679
b5557b757040
fix HotSpotVMConfig startup performance (JDK-8159167)
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
69 } |