< prev index next >

src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot.amd64/src/jdk/vm/ci/hotspot/amd64/AMD64HotSpotVMConfig.java

Print this page




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 package jdk.vm.ci.hotspot.amd64;
  24 
  25 import jdk.vm.ci.hotspot.HotSpotVMConfigAccess;
  26 import jdk.vm.ci.hotspot.HotSpotVMConfigStore;
  27 
  28 class AMD64HotSpotVMConfig extends HotSpotVMConfigAccess {
  29 
  30     AMD64HotSpotVMConfig(HotSpotVMConfigStore config) {
  31         super(config);
  32     }
  33 
  34     /**
  35      * Maximum allowed size of allocated area for a frame.
  36      */
  37     final int maxFrameSize = 16 * 1024;
  38 
  39     final boolean windowsOs = System.getProperty("os.name", "").startsWith("Windows");
  40 
  41     final boolean useCountLeadingZerosInstruction = getFlag("UseCountLeadingZerosInstruction", Boolean.class);
  42     final boolean useCountTrailingZerosInstruction = getFlag("UseCountTrailingZerosInstruction", Boolean.class);
  43     final boolean useCompressedOops = getFlag("UseCompressedOops", Boolean.class);
  44 
  45     // CPU capabilities
  46     final int useSSE = getFlag("UseSSE", Integer.class);
  47     final int useAVX = getFlag("UseAVX", Integer.class);
  48 
  49     final long vmVersionFeatures = getFieldValue("Abstract_VM_Version::_features", Long.class, "uint64_t");
  50 
  51     // CPU feature flags
  52     final long amd64CX8 = getConstant("VM_Version::CPU_CX8", Long.class);
  53     final long amd64CMOV = getConstant("VM_Version::CPU_CMOV", Long.class);
  54     final long amd64FXSR = getConstant("VM_Version::CPU_FXSR", Long.class);
  55     final long amd64HT = getConstant("VM_Version::CPU_HT", Long.class);
  56     final long amd64MMX = getConstant("VM_Version::CPU_MMX", Long.class);
  57     final long amd643DNOWPREFETCH = getConstant("VM_Version::CPU_3DNOW_PREFETCH", Long.class);
  58     final long amd64SSE = getConstant("VM_Version::CPU_SSE", Long.class);




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 package jdk.vm.ci.hotspot.amd64;
  24 
  25 import jdk.vm.ci.hotspot.HotSpotVMConfigAccess;
  26 import jdk.vm.ci.hotspot.HotSpotVMConfigStore;
  27 
  28 class AMD64HotSpotVMConfig extends HotSpotVMConfigAccess {
  29 
  30     AMD64HotSpotVMConfig(HotSpotVMConfigStore config) {
  31         super(config);
  32     }
  33 





  34     final boolean windowsOs = System.getProperty("os.name", "").startsWith("Windows");
  35 
  36     final boolean useCountLeadingZerosInstruction = getFlag("UseCountLeadingZerosInstruction", Boolean.class);
  37     final boolean useCountTrailingZerosInstruction = getFlag("UseCountTrailingZerosInstruction", Boolean.class);
  38     final boolean useCompressedOops = getFlag("UseCompressedOops", Boolean.class);
  39 
  40     // CPU capabilities
  41     final int useSSE = getFlag("UseSSE", Integer.class);
  42     final int useAVX = getFlag("UseAVX", Integer.class);
  43 
  44     final long vmVersionFeatures = getFieldValue("Abstract_VM_Version::_features", Long.class, "uint64_t");
  45 
  46     // CPU feature flags
  47     final long amd64CX8 = getConstant("VM_Version::CPU_CX8", Long.class);
  48     final long amd64CMOV = getConstant("VM_Version::CPU_CMOV", Long.class);
  49     final long amd64FXSR = getConstant("VM_Version::CPU_FXSR", Long.class);
  50     final long amd64HT = getConstant("VM_Version::CPU_HT", Long.class);
  51     final long amd64MMX = getConstant("VM_Version::CPU_MMX", Long.class);
  52     final long amd643DNOWPREFETCH = getConstant("VM_Version::CPU_3DNOW_PREFETCH", Long.class);
  53     final long amd64SSE = getConstant("VM_Version::CPU_SSE", Long.class);


< prev index next >