author | iveresov |
Tue, 10 Jan 2017 21:39:20 +0300 | |
changeset 43435 | 01521491ec10 |
parent 42649 | 28238583a459 |
child 43453 | a2097d148d0e |
permissions | -rw-r--r-- |
42649
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
1 |
/* |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
2 |
* Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
4 |
* |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
8 |
* |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
13 |
* accompanied this code). |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
14 |
* |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
18 |
* |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
21 |
* questions. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
22 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
23 |
package org.graalvm.compiler.hotspot; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
24 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
25 |
import java.lang.reflect.Field; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
26 |
import java.lang.reflect.Modifier; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
27 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
28 |
import org.graalvm.compiler.api.replacements.Fold; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
29 |
import org.graalvm.compiler.api.replacements.Fold.InjectedParameter; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
30 |
import org.graalvm.compiler.hotspot.nodes.GraalHotSpotVMConfigNode; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
31 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
32 |
import jdk.vm.ci.common.JVMCIError; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
33 |
import jdk.vm.ci.hotspot.HotSpotVMConfigAccess; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
34 |
import jdk.vm.ci.hotspot.HotSpotVMConfigStore; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
35 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
36 |
/** |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
37 |
* Used to access native configuration details. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
38 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
39 |
public class GraalHotSpotVMConfig extends HotSpotVMConfigAccess { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
40 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
41 |
/** |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
42 |
* Sentinel value to use for an {@linkplain InjectedParameter injected} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
43 |
* {@link GraalHotSpotVMConfig} parameter to a {@linkplain Fold foldable} method. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
44 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
45 |
public static final GraalHotSpotVMConfig INJECTED_VMCONFIG = null; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
46 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
47 |
private final boolean isJDK8 = System.getProperty("java.specification.version").compareTo("1.9") < 0; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
48 |
public final String osName = getHostOSName(); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
49 |
public final String osArch = getHostArchitectureName(); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
50 |
public final boolean windowsOs = System.getProperty("os.name", "").startsWith("Windows"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
51 |
public final boolean linuxOs = System.getProperty("os.name", "").startsWith("Linux"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
52 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
53 |
GraalHotSpotVMConfig(HotSpotVMConfigStore store) { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
54 |
super(store); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
55 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
56 |
oopEncoding = new CompressEncoding(narrowOopBase, narrowOopShift, logMinObjAlignment()); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
57 |
klassEncoding = new CompressEncoding(narrowKlassBase, narrowKlassShift, logKlassAlignment); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
58 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
59 |
assert check(); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
60 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
61 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
62 |
/** |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
63 |
* Gets the value of a static C++ field under two possible names. {@code name} is the preferred |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
64 |
* name and will be checked first. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
65 |
* |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
66 |
* @param name fully qualified name of the field |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
67 |
* @param alternateName fully qualified alternate name of the field |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
68 |
* @param type the boxed type to which the constant value will be converted |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
69 |
* @param cppType if non-null, the expected C++ type of the field (e.g., {@code "HeapWord*"}) |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
70 |
* @return the value of the requested field |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
71 |
* @throws JVMCIError if the field is not static or not present |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
72 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
73 |
public <T> T getFieldValueWithAlternate(String name, String alternateName, Class<T> type, String cppType) { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
74 |
try { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
75 |
return getFieldValue(name, type, cppType); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
76 |
} catch (JVMCIError e) { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
77 |
try { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
78 |
return getFieldValue(alternateName, type, cppType); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
79 |
} catch (JVMCIError e2) { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
80 |
throw new JVMCIError("expected VM field not found: " + name + " or " + alternateName); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
81 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
82 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
83 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
84 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
85 |
private final CompressEncoding oopEncoding; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
86 |
private final CompressEncoding klassEncoding; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
87 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
88 |
public CompressEncoding getOopEncoding() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
89 |
return oopEncoding; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
90 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
91 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
92 |
public CompressEncoding getKlassEncoding() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
93 |
return klassEncoding; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
94 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
95 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
96 |
/** |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
97 |
* Gets the host operating system name. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
98 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
99 |
private static String getHostOSName() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
100 |
String osName = System.getProperty("os.name"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
101 |
switch (osName) { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
102 |
case "Linux": |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
103 |
osName = "linux"; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
104 |
break; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
105 |
case "SunOS": |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
106 |
osName = "solaris"; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
107 |
break; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
108 |
case "Mac OS X": |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
109 |
osName = "bsd"; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
110 |
break; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
111 |
default: |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
112 |
// Of course Windows is different... |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
113 |
if (osName.startsWith("Windows")) { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
114 |
osName = "windows"; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
115 |
} else { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
116 |
throw new JVMCIError("Unexpected OS name: " + osName); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
117 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
118 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
119 |
return osName; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
120 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
121 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
122 |
private static String getHostArchitectureName() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
123 |
String arch = System.getProperty("os.arch"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
124 |
switch (arch) { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
125 |
case "x86_64": |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
126 |
arch = "amd64"; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
127 |
break; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
128 |
case "sparcv9": |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
129 |
arch = "sparc"; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
130 |
break; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
131 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
132 |
return arch; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
133 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
134 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
135 |
private final Integer intRequiredOnAMD64 = osArch.equals("amd64") ? null : 0; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
136 |
private final Integer intNotPresentInJDK8 = isJDK8 ? 0 : null; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
137 |
private final Long longNotPresentInJDK8 = isJDK8 ? 0L : null; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
138 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
139 |
public final boolean cAssertions = getConstant("ASSERT", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
140 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
141 |
public final int codeEntryAlignment = getFlag("CodeEntryAlignment", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
142 |
public final boolean enableContended = getFlag("EnableContended", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
143 |
public final boolean restrictContended = getFlag("RestrictContended", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
144 |
public final int contendedPaddingWidth = getFlag("ContendedPaddingWidth", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
145 |
public final int fieldsAllocationStyle = getFlag("FieldsAllocationStyle", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
146 |
public final boolean compactFields = getFlag("CompactFields", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
147 |
public final boolean verifyOops = getFlag("VerifyOops", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
148 |
public final boolean ciTime = getFlag("CITime", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
149 |
public final boolean ciTimeEach = getFlag("CITimeEach", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
150 |
public final int compileTheWorldStartAt = getFlag("CompileTheWorldStartAt", Integer.class, 1); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
151 |
public final int compileTheWorldStopAt = getFlag("CompileTheWorldStopAt", Integer.class, Integer.MAX_VALUE); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
152 |
public final boolean dontCompileHugeMethods = getFlag("DontCompileHugeMethods", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
153 |
public final int hugeMethodLimit = getFlag("HugeMethodLimit", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
154 |
public final boolean printInlining = getFlag("PrintInlining", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
155 |
public final boolean inline = getFlag("Inline", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
156 |
public final boolean useFastLocking = getFlag("JVMCIUseFastLocking", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
157 |
public final boolean forceUnreachable = getFlag("ForceUnreachable", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
158 |
public final int codeSegmentSize = getFlag("CodeCacheSegmentSize", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
159 |
public final boolean foldStableValues = getFlag("FoldStableValues", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
160 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
161 |
public final boolean useTLAB = getFlag("UseTLAB", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
162 |
public final boolean useBiasedLocking = getFlag("UseBiasedLocking", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
163 |
public final boolean usePopCountInstruction = getFlag("UsePopCountInstruction", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
164 |
public final boolean useAESIntrinsics = getFlag("UseAESIntrinsics", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
165 |
public final boolean useCRC32Intrinsics = getFlag("UseCRC32Intrinsics", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
166 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
167 |
private final boolean useMultiplyToLenIntrinsic = getFlag("UseMultiplyToLenIntrinsic", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
168 |
private final boolean useSHA1Intrinsics = getFlag("UseSHA1Intrinsics", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
169 |
private final boolean useSHA256Intrinsics = getFlag("UseSHA256Intrinsics", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
170 |
private final boolean useSHA512Intrinsics = getFlag("UseSHA512Intrinsics", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
171 |
private final boolean useMontgomeryMultiplyIntrinsic = getFlag("UseMontgomeryMultiplyIntrinsic", Boolean.class, false); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
172 |
private final boolean useMontgomerySquareIntrinsic = getFlag("UseMontgomerySquareIntrinsic", Boolean.class, false); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
173 |
private final boolean useMulAddIntrinsic = getFlag("UseMulAddIntrinsic", Boolean.class, false); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
174 |
private final boolean useSquareToLenIntrinsic = getFlag("UseSquareToLenIntrinsic", Boolean.class, false); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
175 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
176 |
/* |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
177 |
* These are methods because in some JDKs the flags are visible but the stubs themselves haven't |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
178 |
* been exported so we have to check both if the flag is on and if we have the stub. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
179 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
180 |
public boolean useMultiplyToLenIntrinsic() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
181 |
return useMultiplyToLenIntrinsic && multiplyToLen != 0; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
182 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
183 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
184 |
public boolean useSHA1Intrinsics() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
185 |
return useSHA1Intrinsics && sha1ImplCompress != 0; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
186 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
187 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
188 |
public boolean useSHA256Intrinsics() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
189 |
return useSHA256Intrinsics && sha256ImplCompress != 0; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
190 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
191 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
192 |
public boolean useSHA512Intrinsics() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
193 |
return useSHA512Intrinsics && sha512ImplCompress != 0; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
194 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
195 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
196 |
public boolean useMontgomeryMultiplyIntrinsic() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
197 |
return useMontgomeryMultiplyIntrinsic && montgomeryMultiply != 0; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
198 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
199 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
200 |
public boolean useMontgomerySquareIntrinsic() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
201 |
return useMontgomerySquareIntrinsic && montgomerySquare != 0; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
202 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
203 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
204 |
public boolean useMulAddIntrinsic() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
205 |
return useMulAddIntrinsic && mulAdd != 0; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
206 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
207 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
208 |
public boolean useSquareToLenIntrinsic() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
209 |
return useSquareToLenIntrinsic && squareToLen != 0; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
210 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
211 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
212 |
public final boolean useG1GC = getFlag("UseG1GC", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
213 |
public final boolean useCMSGC = getFlag("UseConcMarkSweepGC", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
214 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
215 |
public final int allocatePrefetchStyle = getFlag("AllocatePrefetchStyle", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
216 |
public final int allocatePrefetchInstr = getFlag("AllocatePrefetchInstr", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
217 |
public final int allocatePrefetchLines = getFlag("AllocatePrefetchLines", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
218 |
public final int allocateInstancePrefetchLines = getFlag("AllocateInstancePrefetchLines", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
219 |
public final int allocatePrefetchStepSize = getFlag("AllocatePrefetchStepSize", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
220 |
public final int allocatePrefetchDistance = getFlag("AllocatePrefetchDistance", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
221 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
222 |
private final long universeCollectedHeap = getFieldValue("CompilerToVM::Data::Universe_collectedHeap", Long.class, "CollectedHeap*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
223 |
private final int collectedHeapTotalCollectionsOffset = getFieldOffset("CollectedHeap::_total_collections", Integer.class, "unsigned int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
224 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
225 |
public long gcTotalCollectionsAddress() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
226 |
return universeCollectedHeap + collectedHeapTotalCollectionsOffset; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
227 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
228 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
229 |
public final boolean useDeferredInitBarriers = getFlag("ReduceInitialCardMarks", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
230 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
231 |
// Compressed Oops related values. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
232 |
public final boolean useCompressedOops = getFlag("UseCompressedOops", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
233 |
public final boolean useCompressedClassPointers = getFlag("UseCompressedClassPointers", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
234 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
235 |
public final long narrowOopBase = getFieldValue("CompilerToVM::Data::Universe_narrow_oop_base", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
236 |
public final int narrowOopShift = getFieldValue("CompilerToVM::Data::Universe_narrow_oop_shift", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
237 |
public final int objectAlignment = getFlag("ObjectAlignmentInBytes", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
238 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
239 |
public final int minObjAlignment() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
240 |
return objectAlignment / heapWordSize; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
241 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
242 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
243 |
public final int logMinObjAlignment() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
244 |
return (int) (Math.log(objectAlignment) / Math.log(2)); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
245 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
246 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
247 |
public final int narrowKlassSize = getTypeSize("narrowKlass"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
248 |
public final long narrowKlassBase = getFieldValue("CompilerToVM::Data::Universe_narrow_klass_base", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
249 |
public final int narrowKlassShift = getFieldValue("CompilerToVM::Data::Universe_narrow_klass_shift", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
250 |
public final int logKlassAlignment = getConstant("LogKlassAlignmentInBytes", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
251 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
252 |
public final int stackShadowPages = getFlag("StackShadowPages", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
253 |
public final int stackReservedPages = getFlag("StackReservedPages", Integer.class, 0); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
254 |
public final boolean useStackBanging = getFlag("UseStackBanging", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
255 |
public final int stackBias = getConstant("STACK_BIAS", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
256 |
public final int vmPageSize = getFieldValue("CompilerToVM::Data::vm_page_size", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
257 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
258 |
public final int markOffset = getFieldOffset("oopDesc::_mark", Integer.class, "markOop"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
259 |
public final int hubOffset = getFieldOffset("oopDesc::_metadata._klass", Integer.class, "Klass*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
260 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
261 |
public final int prototypeMarkWordOffset = getFieldOffset("Klass::_prototype_header", Integer.class, "markOop"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
262 |
public final int subklassOffset = getFieldOffset("Klass::_subklass", Integer.class, "Klass*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
263 |
public final int nextSiblingOffset = getFieldOffset("Klass::_next_sibling", Integer.class, "Klass*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
264 |
public final int superCheckOffsetOffset = getFieldOffset("Klass::_super_check_offset", Integer.class, "juint"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
265 |
public final int secondarySuperCacheOffset = getFieldOffset("Klass::_secondary_super_cache", Integer.class, "Klass*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
266 |
public final int secondarySupersOffset = getFieldOffset("Klass::_secondary_supers", Integer.class, "Array<Klass*>*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
267 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
268 |
public final int classMirrorOffset = getFieldOffset("Klass::_java_mirror", Integer.class, "oop"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
269 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
270 |
public final int klassSuperKlassOffset = getFieldOffset("Klass::_super", Integer.class, "Klass*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
271 |
public final int klassModifierFlagsOffset = getFieldOffset("Klass::_modifier_flags", Integer.class, "jint"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
272 |
public final int klassAccessFlagsOffset = getFieldOffset("Klass::_access_flags", Integer.class, "AccessFlags"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
273 |
public final int klassLayoutHelperOffset = getFieldOffset("Klass::_layout_helper", Integer.class, "jint"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
274 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
275 |
public final int klassLayoutHelperNeutralValue = getConstant("Klass::_lh_neutral_value", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
276 |
public final int layoutHelperLog2ElementSizeShift = getConstant("Klass::_lh_log2_element_size_shift", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
277 |
public final int layoutHelperLog2ElementSizeMask = getConstant("Klass::_lh_log2_element_size_mask", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
278 |
public final int layoutHelperElementTypeShift = getConstant("Klass::_lh_element_type_shift", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
279 |
public final int layoutHelperElementTypeMask = getConstant("Klass::_lh_element_type_mask", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
280 |
public final int layoutHelperHeaderSizeShift = getConstant("Klass::_lh_header_size_shift", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
281 |
public final int layoutHelperHeaderSizeMask = getConstant("Klass::_lh_header_size_mask", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
282 |
public final int layoutHelperArrayTagShift = getConstant("Klass::_lh_array_tag_shift", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
283 |
public final int layoutHelperArrayTagTypeValue = getConstant("Klass::_lh_array_tag_type_value", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
284 |
public final int layoutHelperArrayTagObjectValue = getConstant("Klass::_lh_array_tag_obj_value", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
285 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
286 |
/** |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
287 |
* This filters out the bit that differentiates a type array from an object array. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
288 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
289 |
public int layoutHelperElementTypePrimitiveInPlace() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
290 |
return (layoutHelperArrayTagTypeValue & ~layoutHelperArrayTagObjectValue) << layoutHelperArrayTagShift; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
291 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
292 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
293 |
public final int vtableEntrySize = getTypeSize("vtableEntry"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
294 |
public final int vtableEntryMethodOffset = getFieldOffset("vtableEntry::_method", Integer.class, "Method*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
295 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
296 |
public final int instanceKlassInitStateOffset = getFieldOffset("InstanceKlass::_init_state", Integer.class, "u1"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
297 |
public final int instanceKlassConstantsOffset = getFieldOffset("InstanceKlass::_constants", Integer.class, "ConstantPool*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
298 |
public final int instanceKlassFieldsOffset = getFieldOffset("InstanceKlass::_fields", Integer.class, "Array<u2>*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
299 |
public final int klassVtableStartOffset = getFieldValue("CompilerToVM::Data::Klass_vtable_start_offset", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
300 |
public final int klassVtableLengthOffset = getFieldValue("CompilerToVM::Data::Klass_vtable_length_offset", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
301 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
302 |
public final int instanceKlassStateLinked = getConstant("InstanceKlass::linked", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
303 |
public final int instanceKlassStateFullyInitialized = getConstant("InstanceKlass::fully_initialized", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
304 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
305 |
public final int arrayOopDescSize = getTypeSize("arrayOopDesc"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
306 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
307 |
/** |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
308 |
* The offset of the array length word in an array object's header. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
309 |
* |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
310 |
* See {@code arrayOopDesc::length_offset_in_bytes()}. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
311 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
312 |
public final int arrayOopDescLengthOffset() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
313 |
return useCompressedClassPointers ? hubOffset + narrowKlassSize : arrayOopDescSize; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
314 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
315 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
316 |
public final int arrayU1LengthOffset = getFieldOffset("Array<int>::_length", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
317 |
public final int arrayU1DataOffset = getFieldOffset("Array<u1>::_data", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
318 |
public final int arrayU2DataOffset = getFieldOffset("Array<u2>::_data", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
319 |
public final int metaspaceArrayLengthOffset = getFieldOffset("Array<Klass*>::_length", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
320 |
public final int metaspaceArrayBaseOffset = getFieldOffset("Array<Klass*>::_data[0]", Integer.class, "Klass*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
321 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
322 |
public final int arrayClassElementOffset = getFieldOffset("ObjArrayKlass::_element_klass", Integer.class, "Klass*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
323 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
324 |
public final int fieldInfoAccessFlagsOffset = getConstant("FieldInfo::access_flags_offset", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
325 |
public final int fieldInfoNameIndexOffset = getConstant("FieldInfo::name_index_offset", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
326 |
public final int fieldInfoSignatureIndexOffset = getConstant("FieldInfo::signature_index_offset", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
327 |
public final int fieldInfoInitvalIndexOffset = getConstant("FieldInfo::initval_index_offset", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
328 |
public final int fieldInfoLowPackedOffset = getConstant("FieldInfo::low_packed_offset", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
329 |
public final int fieldInfoHighPackedOffset = getConstant("FieldInfo::high_packed_offset", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
330 |
public final int fieldInfoFieldSlots = getConstant("FieldInfo::field_slots", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
331 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
332 |
public final int fieldInfoTagSize = getConstant("FIELDINFO_TAG_SIZE", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
333 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
334 |
public final int jvmAccMonitorMatch = getConstant("JVM_ACC_MONITOR_MATCH", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
335 |
public final int jvmAccHasMonitorBytecodes = getConstant("JVM_ACC_HAS_MONITOR_BYTECODES", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
336 |
public final int jvmAccHasFinalizer = getConstant("JVM_ACC_HAS_FINALIZER", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
337 |
public final int jvmAccFieldInternal = getConstant("JVM_ACC_FIELD_INTERNAL", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
338 |
public final int jvmAccFieldStable = getConstant("JVM_ACC_FIELD_STABLE", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
339 |
public final int jvmAccFieldHasGenericSignature = getConstant("JVM_ACC_FIELD_HAS_GENERIC_SIGNATURE", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
340 |
public final int jvmAccWrittenFlags = getConstant("JVM_ACC_WRITTEN_FLAGS", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
341 |
public final int jvmAccSynthetic = getConstant("JVM_ACC_SYNTHETIC", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
342 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
343 |
public final int threadTlabOffset = getFieldOffset("Thread::_tlab", Integer.class, "ThreadLocalAllocBuffer"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
344 |
public final int javaThreadAnchorOffset = getFieldOffset("JavaThread::_anchor", Integer.class, "JavaFrameAnchor"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
345 |
public final int threadObjectOffset = getFieldOffset("JavaThread::_threadObj", Integer.class, "oop"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
346 |
public final int osThreadOffset = getFieldOffset("JavaThread::_osthread", Integer.class, "OSThread*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
347 |
public final int javaThreadDirtyCardQueueOffset = getFieldOffset("JavaThread::_dirty_card_queue", Integer.class, "DirtyCardQueue"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
348 |
public final int threadIsMethodHandleReturnOffset = getFieldOffset("JavaThread::_is_method_handle_return", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
349 |
public final int javaThreadSatbMarkQueueOffset = getFieldOffset("JavaThread::_satb_mark_queue", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
350 |
public final int threadObjectResultOffset = getFieldOffset("JavaThread::_vm_result", Integer.class, "oop"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
351 |
public final int jvmciCountersThreadOffset = getFieldOffset("JavaThread::_jvmci_counters", Integer.class, "jlong*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
352 |
public final int javaThreadReservedStackActivationOffset = getFieldOffset("JavaThread::_reserved_stack_activation", Integer.class, "address", intNotPresentInJDK8); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
353 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
354 |
/** |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
355 |
* An invalid value for {@link #rtldDefault}. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
356 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
357 |
public static final long INVALID_RTLD_DEFAULT_HANDLE = 0xDEADFACE; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
358 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
359 |
/** |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
360 |
* Address of the library lookup routine. The C signature of this routine is: |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
361 |
* |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
362 |
* <pre> |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
363 |
* void* (const char *filename, char *ebuf, int ebuflen) |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
364 |
* </pre> |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
365 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
366 |
public final long dllLoad = getAddress("os::dll_load"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
367 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
368 |
/** |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
369 |
* Address of the library lookup routine. The C signature of this routine is: |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
370 |
* |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
371 |
* <pre> |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
372 |
* void* (void* handle, const char* name) |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
373 |
* </pre> |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
374 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
375 |
public final long dllLookup = getAddress("os::dll_lookup"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
376 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
377 |
/** |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
378 |
* A pseudo-handle which when used as the first argument to {@link #dllLookup} means lookup will |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
379 |
* return the first occurrence of the desired symbol using the default library search order. If |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
380 |
* this field is {@value #INVALID_RTLD_DEFAULT_HANDLE}, then this capability is not supported on |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
381 |
* the current platform. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
382 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
383 |
public final long rtldDefault = getAddress("RTLD_DEFAULT", osName.equals("bsd") || osName.equals("linux") ? null : INVALID_RTLD_DEFAULT_HANDLE); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
384 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
385 |
/** |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
386 |
* This field is used to pass exception objects into and out of the runtime system during |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
387 |
* exception handling for compiled code. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
388 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
389 |
public final int threadExceptionOopOffset = getFieldOffset("JavaThread::_exception_oop", Integer.class, "oop"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
390 |
public final int threadExceptionPcOffset = getFieldOffset("JavaThread::_exception_pc", Integer.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
391 |
public final int pendingExceptionOffset = getFieldOffset("ThreadShadow::_pending_exception", Integer.class, "oop"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
392 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
393 |
public final int pendingDeoptimizationOffset = getFieldOffset("JavaThread::_pending_deoptimization", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
394 |
public final int pendingFailedSpeculationOffset = getFieldOffset("JavaThread::_pending_failed_speculation", Integer.class, "oop"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
395 |
public final int pendingTransferToInterpreterOffset = getFieldOffset("JavaThread::_pending_transfer_to_interpreter", Integer.class, "bool"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
396 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
397 |
private final int javaFrameAnchorLastJavaSpOffset = getFieldOffset("JavaFrameAnchor::_last_Java_sp", Integer.class, "intptr_t*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
398 |
private final int javaFrameAnchorLastJavaPcOffset = getFieldOffset("JavaFrameAnchor::_last_Java_pc", Integer.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
399 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
400 |
public int threadLastJavaSpOffset() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
401 |
return javaThreadAnchorOffset + javaFrameAnchorLastJavaSpOffset; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
402 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
403 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
404 |
public int threadLastJavaPcOffset() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
405 |
return javaThreadAnchorOffset + javaFrameAnchorLastJavaPcOffset; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
406 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
407 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
408 |
public int threadLastJavaFpOffset() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
409 |
assert osArch.equals("aarch64") || osArch.equals("amd64"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
410 |
return javaThreadAnchorOffset + getFieldOffset("JavaFrameAnchor::_last_Java_fp", Integer.class, "intptr_t*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
411 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
412 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
413 |
public int threadJavaFrameAnchorFlagsOffset() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
414 |
assert osArch.equals("sparc"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
415 |
return javaThreadAnchorOffset + getFieldOffset("JavaFrameAnchor::_flags", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
416 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
417 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
418 |
public final int runtimeCallStackSize = getConstant("frame::arg_reg_save_area_bytes", Integer.class, intRequiredOnAMD64); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
419 |
public final int frameInterpreterFrameSenderSpOffset = getConstant("frame::interpreter_frame_sender_sp_offset", Integer.class, intRequiredOnAMD64); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
420 |
public final int frameInterpreterFrameLastSpOffset = getConstant("frame::interpreter_frame_last_sp_offset", Integer.class, intRequiredOnAMD64); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
421 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
422 |
private final int dirtyCardQueueBufferOffset = isJDK8 ? getFieldOffset("PtrQueue::_buf", Integer.class, "void**") : getConstant("dirtyCardQueueBufferOffset", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
423 |
private final int dirtyCardQueueIndexOffset = isJDK8 ? getFieldOffset("PtrQueue::_index", Integer.class, "size_t") : getConstant("dirtyCardQueueIndexOffset", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
424 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
425 |
private final int satbMarkQueueBufferOffset = getConstant("satbMarkQueueBufferOffset", Integer.class, intNotPresentInJDK8); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
426 |
private final int satbMarkQueueIndexOffset = getConstant("satbMarkQueueIndexOffset", Integer.class, intNotPresentInJDK8); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
427 |
private final int satbMarkQueueActiveOffset = isJDK8 ? getFieldOffset("PtrQueue::_active", Integer.class, "bool") : getConstant("satbMarkQueueActiveOffset", Integer.class, intNotPresentInJDK8); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
428 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
429 |
public final int osThreadInterruptedOffset = getFieldOffset("OSThread::_interrupted", Integer.class, "jint"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
430 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
431 |
public final long markOopDescHashShift = getConstant("markOopDesc::hash_shift", Long.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
432 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
433 |
public final int biasedLockMaskInPlace = getConstant("markOopDesc::biased_lock_mask_in_place", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
434 |
public final int ageMaskInPlace = getConstant("markOopDesc::age_mask_in_place", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
435 |
public final int epochMaskInPlace = getConstant("markOopDesc::epoch_mask_in_place", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
436 |
public final long markOopDescHashMask = getConstant("markOopDesc::hash_mask", Long.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
437 |
public final long markOopDescHashMaskInPlace = getConstant("markOopDesc::hash_mask_in_place", Long.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
438 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
439 |
public final int unlockedMask = getConstant("markOopDesc::unlocked_value", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
440 |
public final int biasedLockPattern = getConstant("markOopDesc::biased_lock_pattern", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
441 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
442 |
public final int markWordNoHashInPlace = getConstant("markOopDesc::no_hash_in_place", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
443 |
public final int markWordNoLockInPlace = getConstant("markOopDesc::no_lock_in_place", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
444 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
445 |
/** |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
446 |
* See {@code markOopDesc::prototype()}. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
447 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
448 |
public long arrayPrototypeMarkWord() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
449 |
return markWordNoHashInPlace | markWordNoLockInPlace; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
450 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
451 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
452 |
/** |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
453 |
* See {@code markOopDesc::copy_set_hash()}. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
454 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
455 |
public long tlabIntArrayMarkWord() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
456 |
long tmp = arrayPrototypeMarkWord() & (~markOopDescHashMaskInPlace); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
457 |
tmp |= ((0x2 & markOopDescHashMask) << markOopDescHashShift); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
458 |
return tmp; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
459 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
460 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
461 |
/** |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
462 |
* Mark word right shift to get identity hash code. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
463 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
464 |
public final int identityHashCodeShift = getConstant("markOopDesc::hash_shift", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
465 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
466 |
/** |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
467 |
* Identity hash code value when uninitialized. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
468 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
469 |
public final int uninitializedIdentityHashCodeValue = getConstant("markOopDesc::no_hash", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
470 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
471 |
public final int methodAccessFlagsOffset = getFieldOffset("Method::_access_flags", Integer.class, "AccessFlags"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
472 |
public final int methodConstMethodOffset = getFieldOffset("Method::_constMethod", Integer.class, "ConstMethod*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
473 |
public final int methodIntrinsicIdOffset = getFieldOffset("Method::_intrinsic_id", Integer.class, isJDK8 ? "u1" : "u2"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
474 |
public final int methodFlagsOffset = getFieldOffset("Method::_flags", Integer.class, isJDK8 ? "u1" : "u2"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
475 |
public final int methodVtableIndexOffset = getFieldOffset("Method::_vtable_index", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
476 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
477 |
public final int methodCountersOffset = getFieldOffset("Method::_method_counters", Integer.class, "MethodCounters*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
478 |
public final int methodDataOffset = getFieldOffset("Method::_method_data", Integer.class, "MethodData*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
479 |
public final int methodCompiledEntryOffset = getFieldOffset("Method::_from_compiled_entry", Integer.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
480 |
public final int methodCodeOffset = getFieldOffset("Method::_code", Integer.class, isJDK8 ? "nmethod*" : "CompiledMethod*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
481 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
482 |
public final int methodFlagsJfrTowrite = getConstant("Method::_jfr_towrite", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
483 |
public final int methodFlagsCallerSensitive = getConstant("Method::_caller_sensitive", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
484 |
public final int methodFlagsForceInline = getConstant("Method::_force_inline", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
485 |
public final int methodFlagsDontInline = getConstant("Method::_dont_inline", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
486 |
public final int methodFlagsHidden = getConstant("Method::_hidden", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
487 |
public final int nonvirtualVtableIndex = getConstant("Method::nonvirtual_vtable_index", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
488 |
public final int invalidVtableIndex = getConstant("Method::invalid_vtable_index", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
489 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
490 |
public final int invocationCounterOffset = getFieldOffset("MethodCounters::_invocation_counter", Integer.class, "InvocationCounter"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
491 |
public final int backedgeCounterOffset = getFieldOffset("MethodCounters::_backedge_counter", Integer.class, "InvocationCounter"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
492 |
public final int invocationCounterIncrement = getConstant("InvocationCounter::count_increment", Integer.class, intNotPresentInJDK8); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
493 |
public final int invocationCounterShift = getConstant("InvocationCounter::count_shift", Integer.class, intNotPresentInJDK8); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
494 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
495 |
public final int nmethodEntryOffset = getFieldOffset("nmethod::_verified_entry_point", |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
496 |
Integer.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
497 |
public final int compilationLevelFullOptimization = getConstant("CompLevel_full_optimization", |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
498 |
Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
499 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
500 |
public final int constantPoolSize = getTypeSize("ConstantPool"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
501 |
public final int constantPoolLengthOffset = getFieldOffset("ConstantPool::_length", |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
502 |
Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
503 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
504 |
public final int heapWordSize = getConstant("HeapWordSize", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
505 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
506 |
/** |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
507 |
* Bit pattern that represents a non-oop. Neither the high bits nor the low bits of this value |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
508 |
* are allowed to look like (respectively) the high or low bits of a real oop. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
509 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
510 |
public final long nonOopBits = getFieldValue("CompilerToVM::Data::Universe_non_oop_bits", Long.class, "void*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
511 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
512 |
public final long verifyOopCounterAddress = getFieldAddress("StubRoutines::_verify_oop_count", "jint"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
513 |
public final long verifyOopMask = getFieldValue("CompilerToVM::Data::Universe_verify_oop_mask", Long.class, "uintptr_t"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
514 |
public final long verifyOopBits = getFieldValue("CompilerToVM::Data::Universe_verify_oop_bits", Long.class, "uintptr_t"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
515 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
516 |
public final int logOfHRGrainBytes = getFieldValue("HeapRegion::LogOfHRGrainBytes", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
517 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
518 |
public final byte dirtyCardValue = isJDK8 ? getFieldValue("CompilerToVM::Data::dirty_card", Byte.class, "int") : getConstant("CardTableModRefBS::dirty_card", Byte.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
519 |
public final byte g1YoungCardValue = isJDK8 ? getFieldValue("CompilerToVM::Data::g1_young_card", Byte.class, "int") : getConstant("G1SATBCardTableModRefBS::g1_young_gen", Byte.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
520 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
521 |
public final long cardtableStartAddress = getFieldValue("CompilerToVM::Data::cardtable_start_address", Long.class, "jbyte*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
522 |
public final int cardtableShift = getFieldValue("CompilerToVM::Data::cardtable_shift", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
523 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
524 |
/** |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
525 |
* This is the largest stack offset encodeable in an OopMapValue. Offsets larger than this will |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
526 |
* throw an exception during code installation. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
527 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
528 |
public final int maxOopMapStackOffset = getFieldValueWithAlternate("CompilerToVM::Data::_max_oop_map_stack_offset", "JVMCIRuntime::max_oop_map_stack_offset", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
529 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
530 |
public final long safepointPollingAddress = getFieldValue("os::_polling_page", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
531 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
532 |
// G1 Collector Related Values. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
533 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
534 |
public int g1CardQueueIndexOffset() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
535 |
return javaThreadDirtyCardQueueOffset + dirtyCardQueueIndexOffset; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
536 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
537 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
538 |
public int g1CardQueueBufferOffset() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
539 |
return javaThreadDirtyCardQueueOffset + dirtyCardQueueBufferOffset; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
540 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
541 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
542 |
public int g1SATBQueueMarkingOffset() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
543 |
return javaThreadSatbMarkQueueOffset + satbMarkQueueActiveOffset; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
544 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
545 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
546 |
public int g1SATBQueueIndexOffset() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
547 |
return javaThreadSatbMarkQueueOffset + (isJDK8 ? dirtyCardQueueIndexOffset : satbMarkQueueIndexOffset); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
548 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
549 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
550 |
public int g1SATBQueueBufferOffset() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
551 |
return javaThreadSatbMarkQueueOffset + (isJDK8 ? dirtyCardQueueBufferOffset : satbMarkQueueBufferOffset); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
552 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
553 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
554 |
public final int klassOffset = getFieldValue("java_lang_Class::_klass_offset", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
555 |
public final int arrayKlassOffset = getFieldValue("java_lang_Class::_array_klass_offset", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
556 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
557 |
public final int basicLockSize = getTypeSize("BasicLock"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
558 |
public final int basicLockDisplacedHeaderOffset = getFieldOffset("BasicLock::_displaced_header", Integer.class, "markOop"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
559 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
560 |
public final int threadAllocatedBytesOffset = getFieldOffset("Thread::_allocated_bytes", Integer.class, "jlong"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
561 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
562 |
public final int tlabRefillWasteIncrement = getFlag("TLABWasteIncrement", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
563 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
564 |
private final int threadLocalAllocBufferStartOffset = getFieldOffset("ThreadLocalAllocBuffer::_start", Integer.class, "HeapWord*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
565 |
private final int threadLocalAllocBufferEndOffset = getFieldOffset("ThreadLocalAllocBuffer::_end", Integer.class, "HeapWord*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
566 |
private final int threadLocalAllocBufferTopOffset = getFieldOffset("ThreadLocalAllocBuffer::_top", Integer.class, "HeapWord*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
567 |
private final int threadLocalAllocBufferPfTopOffset = getFieldOffset("ThreadLocalAllocBuffer::_pf_top", Integer.class, "HeapWord*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
568 |
private final int threadLocalAllocBufferSlowAllocationsOffset = getFieldOffset("ThreadLocalAllocBuffer::_slow_allocations", Integer.class, "unsigned"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
569 |
private final int threadLocalAllocBufferFastRefillWasteOffset = getFieldOffset("ThreadLocalAllocBuffer::_fast_refill_waste", Integer.class, "unsigned"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
570 |
private final int threadLocalAllocBufferNumberOfRefillsOffset = getFieldOffset("ThreadLocalAllocBuffer::_number_of_refills", Integer.class, "unsigned"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
571 |
private final int threadLocalAllocBufferRefillWasteLimitOffset = getFieldOffset("ThreadLocalAllocBuffer::_refill_waste_limit", Integer.class, "size_t"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
572 |
private final int threadLocalAllocBufferDesiredSizeOffset = getFieldOffset("ThreadLocalAllocBuffer::_desired_size", Integer.class, "size_t"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
573 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
574 |
public int tlabSlowAllocationsOffset() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
575 |
return threadTlabOffset + threadLocalAllocBufferSlowAllocationsOffset; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
576 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
577 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
578 |
public int tlabFastRefillWasteOffset() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
579 |
return threadTlabOffset + threadLocalAllocBufferFastRefillWasteOffset; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
580 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
581 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
582 |
public int tlabNumberOfRefillsOffset() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
583 |
return threadTlabOffset + threadLocalAllocBufferNumberOfRefillsOffset; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
584 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
585 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
586 |
public int tlabRefillWasteLimitOffset() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
587 |
return threadTlabOffset + threadLocalAllocBufferRefillWasteLimitOffset; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
588 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
589 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
590 |
public int threadTlabSizeOffset() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
591 |
return threadTlabOffset + threadLocalAllocBufferDesiredSizeOffset; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
592 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
593 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
594 |
public int threadTlabStartOffset() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
595 |
return threadTlabOffset + threadLocalAllocBufferStartOffset; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
596 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
597 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
598 |
public int threadTlabEndOffset() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
599 |
return threadTlabOffset + threadLocalAllocBufferEndOffset; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
600 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
601 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
602 |
public int threadTlabTopOffset() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
603 |
return threadTlabOffset + threadLocalAllocBufferTopOffset; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
604 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
605 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
606 |
public int threadTlabPfTopOffset() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
607 |
return threadTlabOffset + threadLocalAllocBufferPfTopOffset; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
608 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
609 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
610 |
public final int tlabAlignmentReserve = getFieldValue("CompilerToVM::Data::ThreadLocalAllocBuffer_alignment_reserve", Integer.class, "size_t"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
611 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
612 |
public final boolean tlabStats = getFlag("TLABStats", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
613 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
614 |
// FIXME This is only temporary until the GC code is changed. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
615 |
public final boolean inlineContiguousAllocationSupported = getFieldValue("CompilerToVM::Data::_supports_inline_contig_alloc", Boolean.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
616 |
public final long heapEndAddress = getFieldValue("CompilerToVM::Data::_heap_end_addr", Long.class, "HeapWord**"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
617 |
public final long heapTopAddress = getFieldValue("CompilerToVM::Data::_heap_top_addr", Long.class, isJDK8 ? "HeapWord**" : "HeapWord* volatile*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
618 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
619 |
public final long inlineCacheMissStub = getFieldValue("CompilerToVM::Data::SharedRuntime_ic_miss_stub", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
620 |
public final long handleWrongMethodStub = getFieldValue("CompilerToVM::Data::SharedRuntime_handle_wrong_method_stub", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
621 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
622 |
public final long handleDeoptStub = getFieldValue("CompilerToVM::Data::SharedRuntime_deopt_blob_unpack", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
623 |
public final long uncommonTrapStub = getFieldValue("CompilerToVM::Data::SharedRuntime_deopt_blob_uncommon_trap", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
624 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
625 |
public final long codeCacheLowBound = getFieldValue(isJDK8 ? "CompilerToVM::Data::CodeCache_low_bound" : "CodeCache::_low_bound", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
626 |
public final long codeCacheHighBound = getFieldValue(isJDK8 ? "CompilerToVM::Data::CodeCache_high_bound" : "CodeCache::_high_bound", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
627 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
628 |
public final long aescryptEncryptBlockStub = getFieldValue("StubRoutines::_aescrypt_encryptBlock", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
629 |
public final long aescryptDecryptBlockStub = getFieldValue("StubRoutines::_aescrypt_decryptBlock", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
630 |
public final long cipherBlockChainingEncryptAESCryptStub = getFieldValue("StubRoutines::_cipherBlockChaining_encryptAESCrypt", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
631 |
public final long cipherBlockChainingDecryptAESCryptStub = getFieldValue("StubRoutines::_cipherBlockChaining_decryptAESCrypt", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
632 |
public final long updateBytesCRC32Stub = getFieldValue("StubRoutines::_updateBytesCRC32", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
633 |
public final long crcTableAddress = getFieldValue("StubRoutines::_crc_table_adr", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
634 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
635 |
public final long sha1ImplCompress = getFieldValue("StubRoutines::_sha1_implCompress", Long.class, "address", 0L); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
636 |
public final long sha1ImplCompressMB = getFieldValue("StubRoutines::_sha1_implCompressMB", Long.class, "address", 0L); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
637 |
public final long sha256ImplCompress = getFieldValue("StubRoutines::_sha256_implCompress", Long.class, "address", 0L); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
638 |
public final long sha256ImplCompressMB = getFieldValue("StubRoutines::_sha256_implCompressMB", Long.class, "address", 0L); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
639 |
public final long sha512ImplCompress = getFieldValue("StubRoutines::_sha512_implCompress", Long.class, "address", 0L); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
640 |
public final long sha512ImplCompressMB = getFieldValue("StubRoutines::_sha512_implCompressMB", Long.class, "address", 0L); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
641 |
public final long multiplyToLen = getFieldValue("StubRoutines::_multiplyToLen", Long.class, "address", 0L); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
642 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
643 |
public final long counterModeAESCrypt = getFieldValue("StubRoutines::_counterMode_AESCrypt", Long.class, "address", 0L); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
644 |
public final long ghashProcessBlocks = getFieldValue("StubRoutines::_ghash_processBlocks", Long.class, "address", 0L); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
645 |
public final long crc32cTableTddr = getFieldValue("StubRoutines::_crc32c_table_addr", Long.class, "address", 0L); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
646 |
public final long updateBytesCRC32C = getFieldValue("StubRoutines::_updateBytesCRC32C", Long.class, "address", 0L); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
647 |
public final long updateBytesAdler32 = getFieldValue("StubRoutines::_updateBytesAdler32", Long.class, "address", 0L); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
648 |
public final long squareToLen = getFieldValue("StubRoutines::_squareToLen", Long.class, "address", 0L); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
649 |
public final long mulAdd = getFieldValue("StubRoutines::_mulAdd", Long.class, "address", 0L); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
650 |
public final long montgomeryMultiply = getFieldValue("StubRoutines::_montgomeryMultiply", Long.class, "address", 0L); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
651 |
public final long montgomerySquare = getFieldValue("StubRoutines::_montgomerySquare", Long.class, "address", 0L); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
652 |
public final long vectorizedMismatch = getFieldValue("StubRoutines::_vectorizedMismatch", Long.class, "address", 0L); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
653 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
654 |
public final long throwDelayedStackOverflowErrorEntry = getFieldValue("StubRoutines::_throw_delayed_StackOverflowError_entry", Long.class, "address", longNotPresentInJDK8); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
655 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
656 |
public final long jbyteArraycopy = getFieldValue("StubRoutines::_jbyte_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
657 |
public final long jshortArraycopy = getFieldValue("StubRoutines::_jshort_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
658 |
public final long jintArraycopy = getFieldValue("StubRoutines::_jint_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
659 |
public final long jlongArraycopy = getFieldValue("StubRoutines::_jlong_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
660 |
public final long oopArraycopy = getFieldValue("StubRoutines::_oop_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
661 |
public final long oopArraycopyUninit = getFieldValue("StubRoutines::_oop_arraycopy_uninit", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
662 |
public final long jbyteDisjointArraycopy = getFieldValue("StubRoutines::_jbyte_disjoint_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
663 |
public final long jshortDisjointArraycopy = getFieldValue("StubRoutines::_jshort_disjoint_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
664 |
public final long jintDisjointArraycopy = getFieldValue("StubRoutines::_jint_disjoint_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
665 |
public final long jlongDisjointArraycopy = getFieldValue("StubRoutines::_jlong_disjoint_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
666 |
public final long oopDisjointArraycopy = getFieldValue("StubRoutines::_oop_disjoint_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
667 |
public final long oopDisjointArraycopyUninit = getFieldValue("StubRoutines::_oop_disjoint_arraycopy_uninit", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
668 |
public final long jbyteAlignedArraycopy = getFieldValue("StubRoutines::_arrayof_jbyte_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
669 |
public final long jshortAlignedArraycopy = getFieldValue("StubRoutines::_arrayof_jshort_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
670 |
public final long jintAlignedArraycopy = getFieldValue("StubRoutines::_arrayof_jint_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
671 |
public final long jlongAlignedArraycopy = getFieldValue("StubRoutines::_arrayof_jlong_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
672 |
public final long oopAlignedArraycopy = getFieldValue("StubRoutines::_arrayof_oop_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
673 |
public final long oopAlignedArraycopyUninit = getFieldValue("StubRoutines::_arrayof_oop_arraycopy_uninit", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
674 |
public final long jbyteAlignedDisjointArraycopy = getFieldValue("StubRoutines::_arrayof_jbyte_disjoint_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
675 |
public final long jshortAlignedDisjointArraycopy = getFieldValue("StubRoutines::_arrayof_jshort_disjoint_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
676 |
public final long jintAlignedDisjointArraycopy = getFieldValue("StubRoutines::_arrayof_jint_disjoint_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
677 |
public final long jlongAlignedDisjointArraycopy = getFieldValue("StubRoutines::_arrayof_jlong_disjoint_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
678 |
public final long oopAlignedDisjointArraycopy = getFieldValue("StubRoutines::_arrayof_oop_disjoint_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
679 |
public final long oopAlignedDisjointArraycopyUninit = getFieldValue("StubRoutines::_arrayof_oop_disjoint_arraycopy_uninit", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
680 |
public final long checkcastArraycopy = getFieldValue("StubRoutines::_checkcast_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
681 |
public final long checkcastArraycopyUninit = getFieldValue("StubRoutines::_checkcast_arraycopy_uninit", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
682 |
public final long unsafeArraycopy = getFieldValue("StubRoutines::_unsafe_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
683 |
public final long genericArraycopy = getFieldValue("StubRoutines::_generic_arraycopy", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
684 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
685 |
public final long newInstanceAddress = getAddress("JVMCIRuntime::new_instance"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
686 |
public final long newArrayAddress = getAddress("JVMCIRuntime::new_array"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
687 |
public final long newMultiArrayAddress = getAddress("JVMCIRuntime::new_multi_array"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
688 |
public final long dynamicNewArrayAddress = getAddress("JVMCIRuntime::dynamic_new_array"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
689 |
public final long dynamicNewInstanceAddress = getAddress("JVMCIRuntime::dynamic_new_instance"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
690 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
691 |
public final long threadIsInterruptedAddress = getAddress("JVMCIRuntime::thread_is_interrupted"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
692 |
public final long vmMessageAddress = getAddress("JVMCIRuntime::vm_message"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
693 |
public final long identityHashCodeAddress = getAddress("JVMCIRuntime::identity_hash_code"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
694 |
public final long exceptionHandlerForPcAddress = getAddress("JVMCIRuntime::exception_handler_for_pc"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
695 |
public final long monitorenterAddress = getAddress("JVMCIRuntime::monitorenter"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
696 |
public final long monitorexitAddress = getAddress("JVMCIRuntime::monitorexit"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
697 |
public final long throwAndPostJvmtiExceptionAddress = getAddress("JVMCIRuntime::throw_and_post_jvmti_exception"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
698 |
public final long throwKlassExternalNameExceptionAddress = getAddress("JVMCIRuntime::throw_klass_external_name_exception"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
699 |
public final long throwClassCastExceptionAddress = getAddress("JVMCIRuntime::throw_class_cast_exception"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
700 |
public final long logPrimitiveAddress = getAddress("JVMCIRuntime::log_primitive"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
701 |
public final long logObjectAddress = getAddress("JVMCIRuntime::log_object"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
702 |
public final long logPrintfAddress = getAddress("JVMCIRuntime::log_printf"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
703 |
public final long vmErrorAddress = getAddress("JVMCIRuntime::vm_error"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
704 |
public final long loadAndClearExceptionAddress = getAddress("JVMCIRuntime::load_and_clear_exception"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
705 |
public final long writeBarrierPreAddress = getAddress("JVMCIRuntime::write_barrier_pre"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
706 |
public final long writeBarrierPostAddress = getAddress("JVMCIRuntime::write_barrier_post"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
707 |
public final long validateObject = getAddress("JVMCIRuntime::validate_object"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
708 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
709 |
public final long testDeoptimizeCallInt = getAddress("JVMCIRuntime::test_deoptimize_call_int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
710 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
711 |
public final long registerFinalizerAddress = getAddress("SharedRuntime::register_finalizer"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
712 |
public final long exceptionHandlerForReturnAddressAddress = getAddress("SharedRuntime::exception_handler_for_return_address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
713 |
public final long osrMigrationEndAddress = getAddress("SharedRuntime::OSR_migration_end"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
714 |
public final long enableStackReservedZoneAddress = getAddress("SharedRuntime::enable_stack_reserved_zone", longNotPresentInJDK8); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
715 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
716 |
public final long javaTimeMillisAddress = getAddress("os::javaTimeMillis"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
717 |
public final long javaTimeNanosAddress = getAddress("os::javaTimeNanos"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
718 |
public final long arithmeticSinAddress = getFieldValue("CompilerToVM::Data::dsin", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
719 |
public final long arithmeticCosAddress = getFieldValue("CompilerToVM::Data::dcos", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
720 |
public final long arithmeticTanAddress = getFieldValue("CompilerToVM::Data::dtan", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
721 |
public final long arithmeticExpAddress = getFieldValue("CompilerToVM::Data::dexp", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
722 |
public final long arithmeticLogAddress = getFieldValue("CompilerToVM::Data::dlog", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
723 |
public final long arithmeticLog10Address = getFieldValue("CompilerToVM::Data::dlog10", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
724 |
public final long arithmeticPowAddress = getFieldValue("CompilerToVM::Data::dpow", Long.class, "address"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
725 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
726 |
public final long fremAddress = getAddress("SharedRuntime::frem"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
727 |
public final long dremAddress = getAddress("SharedRuntime::drem"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
728 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
729 |
public final int jvmciCountersSize = getFlag("JVMCICounterSize", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
730 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
731 |
public final long deoptimizationFetchUnrollInfo = getAddress("Deoptimization::fetch_unroll_info"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
732 |
public final long deoptimizationUncommonTrap = getAddress("Deoptimization::uncommon_trap"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
733 |
public final long deoptimizationUnpackFrames = getAddress("Deoptimization::unpack_frames"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
734 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
735 |
public final int deoptimizationUnpackDeopt = getConstant("Deoptimization::Unpack_deopt", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
736 |
public final int deoptimizationUnpackException = getConstant("Deoptimization::Unpack_exception", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
737 |
public final int deoptimizationUnpackUncommonTrap = getConstant("Deoptimization::Unpack_uncommon_trap", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
738 |
public final int deoptimizationUnpackReexecute = getConstant("Deoptimization::Unpack_reexecute", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
739 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
740 |
public final int deoptimizationUnrollBlockSizeOfDeoptimizedFrameOffset = getFieldOffset("Deoptimization::UnrollBlock::_size_of_deoptimized_frame", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
741 |
public final int deoptimizationUnrollBlockCallerAdjustmentOffset = getFieldOffset("Deoptimization::UnrollBlock::_caller_adjustment", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
742 |
public final int deoptimizationUnrollBlockNumberOfFramesOffset = getFieldOffset("Deoptimization::UnrollBlock::_number_of_frames", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
743 |
public final int deoptimizationUnrollBlockTotalFrameSizesOffset = getFieldOffset("Deoptimization::UnrollBlock::_total_frame_sizes", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
744 |
public final int deoptimizationUnrollBlockUnpackKindOffset = getFieldOffset("Deoptimization::UnrollBlock::_unpack_kind", Integer.class, "int"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
745 |
public final int deoptimizationUnrollBlockFrameSizesOffset = getFieldOffset("Deoptimization::UnrollBlock::_frame_sizes", Integer.class, "intptr_t*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
746 |
public final int deoptimizationUnrollBlockFramePcsOffset = getFieldOffset("Deoptimization::UnrollBlock::_frame_pcs", Integer.class, "address*"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
747 |
public final int deoptimizationUnrollBlockInitialInfoOffset = getFieldOffset("Deoptimization::UnrollBlock::_initial_info", Integer.class, "intptr_t"); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
748 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
749 |
// Checkstyle: stop |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
750 |
public final int MARKID_VERIFIED_ENTRY = getConstant("CodeInstaller::VERIFIED_ENTRY", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
751 |
public final int MARKID_UNVERIFIED_ENTRY = getConstant("CodeInstaller::UNVERIFIED_ENTRY", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
752 |
public final int MARKID_OSR_ENTRY = getConstant("CodeInstaller::OSR_ENTRY", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
753 |
public final int MARKID_EXCEPTION_HANDLER_ENTRY = getConstant("CodeInstaller::EXCEPTION_HANDLER_ENTRY", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
754 |
public final int MARKID_DEOPT_HANDLER_ENTRY = getConstant("CodeInstaller::DEOPT_HANDLER_ENTRY", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
755 |
public final int MARKID_INVOKEINTERFACE = getConstant("CodeInstaller::INVOKEINTERFACE", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
756 |
public final int MARKID_INVOKEVIRTUAL = getConstant("CodeInstaller::INVOKEVIRTUAL", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
757 |
public final int MARKID_INVOKESTATIC = getConstant("CodeInstaller::INVOKESTATIC", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
758 |
public final int MARKID_INVOKESPECIAL = getConstant("CodeInstaller::INVOKESPECIAL", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
759 |
public final int MARKID_INLINE_INVOKE = getConstant("CodeInstaller::INLINE_INVOKE", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
760 |
public final int MARKID_POLL_NEAR = getConstant("CodeInstaller::POLL_NEAR", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
761 |
public final int MARKID_POLL_RETURN_NEAR = getConstant("CodeInstaller::POLL_RETURN_NEAR", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
762 |
public final int MARKID_POLL_FAR = getConstant("CodeInstaller::POLL_FAR", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
763 |
public final int MARKID_POLL_RETURN_FAR = getConstant("CodeInstaller::POLL_RETURN_FAR", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
764 |
public final int MARKID_CARD_TABLE_SHIFT = getConstant("CodeInstaller::CARD_TABLE_SHIFT", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
765 |
public final int MARKID_CARD_TABLE_ADDRESS = getConstant("CodeInstaller::CARD_TABLE_ADDRESS", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
766 |
public final int MARKID_INVOKE_INVALID = getConstant("CodeInstaller::INVOKE_INVALID", Integer.class); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
767 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
768 |
/** |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
769 |
* The following constants are given default values here since they are missing in the native |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
770 |
* JVMCI-8 code but are still required for {@link GraalHotSpotVMConfigNode#canonical} to work in |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
771 |
* a JDK8 environment. |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
772 |
*/ |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
773 |
public final int MARKID_HEAP_TOP_ADDRESS = getConstant("CodeInstaller::HEAP_TOP_ADDRESS", Integer.class, 17); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
774 |
public final int MARKID_HEAP_END_ADDRESS = getConstant("CodeInstaller::HEAP_END_ADDRESS", Integer.class, 18); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
775 |
public final int MARKID_NARROW_KLASS_BASE_ADDRESS = getConstant("CodeInstaller::NARROW_KLASS_BASE_ADDRESS", Integer.class, 19); |
43435 | 776 |
public final int MARKID_NARROW_OOP_BASE_ADDRESS = getConstant("CodeInstaller::NARROW_OOP_BASE_ADDRESS", Integer.class, 20); |
777 |
public final int MARKID_CRC_TABLE_ADDRESS = getConstant("CodeInstaller::CRC_TABLE_ADDRESS", Integer.class, 21); |
|
778 |
public final int MARKID_LOG_OF_HEAP_REGION_GRAIN_BYTES = getConstant("CodeInstaller::LOG_OF_HEAP_REGION_GRAIN_BYTES", Integer.class, 22); |
|
779 |
public final int MARKID_INLINE_CONTIGUOUS_ALLOCATION_SUPPORTED = getConstant("CodeInstaller::INLINE_CONTIGUOUS_ALLOCATION_SUPPORTED", Integer.class, 23); |
|
42649
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
780 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
781 |
// Checkstyle: resume |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
782 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
783 |
private boolean check() { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
784 |
for (Field f : getClass().getDeclaredFields()) { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
785 |
int modifiers = f.getModifiers(); |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
786 |
if (Modifier.isPublic(modifiers) && !Modifier.isStatic(modifiers)) { |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
787 |
assert Modifier.isFinal(modifiers) : "field should be final: " + f; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
788 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
789 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
790 |
|
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
791 |
assert codeEntryAlignment > 0 : codeEntryAlignment; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
792 |
return true; |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
793 |
} |
28238583a459
8166417: Integrate Graal-core into JDK for AOT compiler
thomaswue
parents:
diff
changeset
|
794 |
} |