comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/ci/CiTarget.java @ 5503:438ab53efdd0

Renaming CiKind => RiKind.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 07 Jun 2012 17:08:33 +0200
parents aaac4894175c
children 452f91ebdb54
comparison
equal deleted inserted replaced
5502:13aee5aba8cc 5503:438ab53efdd0
51 public final int wordSize; 51 public final int wordSize;
52 52
53 /** 53 /**
54 * The CiKind to be used for representing raw pointers and CPU registers. 54 * The CiKind to be used for representing raw pointers and CPU registers.
55 */ 55 */
56 public final CiKind wordKind; 56 public final RiKind wordKind;
57 57
58 /** 58 /**
59 * The stack alignment requirement of the platform. For example, 59 * The stack alignment requirement of the platform. For example,
60 * from Appendix D of <a href="http://www.intel.com/Assets/PDF/manual/248966.pdf">Intel 64 and IA-32 Architectures Optimization Reference Manual</a>: 60 * from Appendix D of <a href="http://www.intel.com/Assets/PDF/manual/248966.pdf">Intel 64 and IA-32 Architectures Optimization Reference Manual</a>:
61 * <pre> 61 * <pre>
106 this.arch = arch; 106 this.arch = arch;
107 this.pageSize = pageSize; 107 this.pageSize = pageSize;
108 this.isMP = isMP; 108 this.isMP = isMP;
109 this.wordSize = arch.wordSize; 109 this.wordSize = arch.wordSize;
110 if (wordSize == 8) { 110 if (wordSize == 8) {
111 this.wordKind = CiKind.Long; 111 this.wordKind = RiKind.Long;
112 } else { 112 } else {
113 this.wordKind = CiKind.Int; 113 this.wordKind = RiKind.Int;
114 } 114 }
115 this.stackAlignment = stackAlignment; 115 this.stackAlignment = stackAlignment;
116 this.stackBias = 0; // TODO: configure with param once SPARC port exists 116 this.stackBias = 0; // TODO: configure with param once SPARC port exists
117 this.cacheAlignment = cacheAlignment; 117 this.cacheAlignment = cacheAlignment;
118 this.inlineObjects = inlineObjects; 118 this.inlineObjects = inlineObjects;
124 * Gets the size in bytes of the specified kind for this target. 124 * Gets the size in bytes of the specified kind for this target.
125 * 125 *
126 * @param kind the kind for which to get the size 126 * @param kind the kind for which to get the size
127 * @return the size in bytes of {@code kind} 127 * @return the size in bytes of {@code kind}
128 */ 128 */
129 public int sizeInBytes(CiKind kind) { 129 public int sizeInBytes(RiKind kind) {
130 // Checkstyle: stop 130 // Checkstyle: stop
131 switch (kind) { 131 switch (kind) {
132 case Boolean: return 1; 132 case Boolean: return 1;
133 case Byte: return 1; 133 case Byte: return 1;
134 case Char: return 2; 134 case Char: return 2;