Mercurial > hg > truffle
comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/ci/CiTargetMethod.java @ 5501:d89b20486d87
Renaming CiConstant => RiConstant.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Thu, 07 Jun 2012 17:07:05 +0200 |
parents | 12c63380e7ff |
children | dc71b06d09f8 |
comparison
equal
deleted
inserted
replaced
5500:d2f2dede7c1a | 5501:d89b20486d87 |
---|---|
132 /** | 132 /** |
133 * Represents a reference to data from the code. The associated data can be any constant. | 133 * Represents a reference to data from the code. The associated data can be any constant. |
134 */ | 134 */ |
135 public static final class DataPatch extends Site { | 135 public static final class DataPatch extends Site { |
136 private static final long serialVersionUID = 5771730331604867476L; | 136 private static final long serialVersionUID = 5771730331604867476L; |
137 public final CiConstant constant; | 137 public final RiConstant constant; |
138 public final int alignment; | 138 public final int alignment; |
139 | 139 |
140 DataPatch(int pcOffset, CiConstant data, int alignment) { | 140 DataPatch(int pcOffset, RiConstant data, int alignment) { |
141 super(pcOffset); | 141 super(pcOffset); |
142 this.constant = data; | 142 this.constant = data; |
143 this.alignment = alignment; | 143 this.alignment = alignment; |
144 } | 144 } |
145 | 145 |
392 * | 392 * |
393 * @param codePos the position in the code where the data reference occurs | 393 * @param codePos the position in the code where the data reference occurs |
394 * @param data the data that is referenced | 394 * @param data the data that is referenced |
395 * @param alignment the alignment requirement of the data or 0 if there is no alignment requirement | 395 * @param alignment the alignment requirement of the data or 0 if there is no alignment requirement |
396 */ | 396 */ |
397 public void recordDataReference(int codePos, CiConstant data, int alignment) { | 397 public void recordDataReference(int codePos, RiConstant data, int alignment) { |
398 assert codePos >= 0 && data != null; | 398 assert codePos >= 0 && data != null; |
399 dataReferences.add(new DataPatch(codePos, data, alignment)); | 399 dataReferences.add(new DataPatch(codePos, data, alignment)); |
400 } | 400 } |
401 | 401 |
402 /** | 402 /** |