comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotVMConfig.java @ 1437:9e5e83ca2259

Enabled -C1X:OPTIONS when running HotSpot/C1X. Enabled checkstyle for the HotSpotVM Java project.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Mon, 25 Oct 2010 16:47:52 +0200
parents 72cfb36c6bb2
children 8cfe3537a0d3
comparison
equal deleted inserted replaced
1436:9dae1aae168a 1437:9e5e83ca2259
1 /* 1 /*
2 * Copyright (c) 2010 Sun Microsystems, Inc. All rights reserved. 2 * Copyright (c) 2010 Sun Microsystems, Inc. All rights reserved.
3 * 3 *
4 * Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product that is 4 * Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product
5 * described in this document. In particular, and without limitation, these intellectual property rights may include one 5 * that is described in this document. In particular, and without limitation, these intellectual property
6 * or more of the U.S. patents listed at http://www.sun.com/patents and one or more additional patents or pending patent 6 * rights may include one or more of the U.S. patents listed at http://www.sun.com/patents and one or
7 * applications in the U.S. and in other countries. 7 * more additional patents or pending patent applications in the U.S. and in other countries.
8 * 8 *
9 * U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard 9 * U.S. Government Rights - Commercial software. Government users are subject to the Sun
10 * license agreement and applicable provisions of the FAR and its supplements. 10 * Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its
11 * supplements.
11 * 12 *
12 * Use is subject to license terms. Sun, Sun Microsystems, the Sun logo, Java and Solaris are trademarks or registered 13 * Use is subject to license terms. Sun, Sun Microsystems, the Sun logo, Java and Solaris are trademarks or
13 * trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks are used under license and 14 * registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks
14 * are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries. 15 * are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the
16 * U.S. and other countries.
15 * 17 *
16 * UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd. 18 * UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open
19 * Company, Ltd.
17 */ 20 */
18 package com.sun.hotspot.c1x; 21 package com.sun.hotspot.c1x;
19 22
20 import com.sun.cri.ci.*; 23 import com.sun.cri.ci.*;
21 24
78 public int getArrayOffset(CiKind kind) { 81 public int getArrayOffset(CiKind kind) {
79 return arrayOffsets[getKindNumber(kind)]; 82 return arrayOffsets[getKindNumber(kind)];
80 } 83 }
81 84
82 private int getKindNumber(CiKind kind) { 85 private int getKindNumber(CiKind kind) {
83 if (kind == CiKind.Boolean) 86 if (kind == CiKind.Boolean) {
84 return 0; 87 return 0;
85 else if (kind == CiKind.Byte) 88 } else if (kind == CiKind.Byte) {
86 return 1; 89 return 1;
87 else if (kind == CiKind.Short) 90 } else if (kind == CiKind.Short) {
88 return 2; 91 return 2;
89 else if (kind == CiKind.Char) 92 } else if (kind == CiKind.Char) {
90 return 3; 93 return 3;
91 else if (kind == CiKind.Int) 94 } else if (kind == CiKind.Int) {
92 return 4; 95 return 4;
93 else if (kind == CiKind.Float) 96 } else if (kind == CiKind.Float) {
94 return 5; 97 return 5;
95 else if (kind == CiKind.Long) 98 } else if (kind == CiKind.Long) {
96 return 6; 99 return 6;
97 else if (kind == CiKind.Double) 100 } else if (kind == CiKind.Double) {
98 return 7; 101 return 7;
99 else if (kind == CiKind.Object) 102 } else if (kind == CiKind.Object) {
100 return 8; 103 return 8;
101 else 104 } else {
102 throw new RuntimeException(kind + " is not a Java kind"); 105 throw new RuntimeException(kind + " is not a Java kind");
106 }
103 } 107 }
104
105 } 108 }