comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/xir/CiXirAssembler.java @ 5501:d89b20486d87

Renaming CiConstant => RiConstant.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 07 Jun 2012 17:07:05 +0200
parents 678f31e9724e
children 438ab53efdd0
comparison
equal deleted inserted replaced
5500:d2f2dede7c1a 5501:d89b20486d87
222 super(asm, name, kind, canBeConstant); 222 super(asm, name, kind, canBeConstant);
223 } 223 }
224 } 224 }
225 225
226 public static class XirConstant extends XirOperand implements XirConstantOperand { 226 public static class XirConstant extends XirOperand implements XirConstantOperand {
227 public final CiConstant value; 227 public final RiConstant value;
228 228
229 XirConstant(CiXirAssembler asm, CiConstant value) { 229 XirConstant(CiXirAssembler asm, RiConstant value) {
230 super(asm, value, value.kind); 230 super(asm, value, value.kind);
231 this.value = value; 231 this.value = value;
232 } 232 }
233 233
234 public int getIndex() { 234 public int getIndex() {
818 public XirConstantParameter createConstantInputParameter(String name, CiKind kind) { 818 public XirConstantParameter createConstantInputParameter(String name, CiKind kind) {
819 assert !finished; 819 assert !finished;
820 return new XirConstantParameter(this, name, kind); 820 return new XirConstantParameter(this, name, kind);
821 } 821 }
822 822
823 public XirConstant createConstant(CiConstant constant) { 823 public XirConstant createConstant(RiConstant constant) {
824 assert !finished; 824 assert !finished;
825 XirConstant temp = new XirConstant(this, constant); 825 XirConstant temp = new XirConstant(this, constant);
826 constants.add(temp); 826 constants.add(temp);
827 return temp; 827 return temp;
828 } 828 }
866 } 866 }
867 throw new IllegalArgumentException("no temp: " + name); 867 throw new IllegalArgumentException("no temp: " + name);
868 } 868 }
869 869
870 public XirConstant i(int v) { 870 public XirConstant i(int v) {
871 return createConstant(CiConstant.forInt(v)); 871 return createConstant(RiConstant.forInt(v));
872 } 872 }
873 873
874 public XirConstant l(long v) { 874 public XirConstant l(long v) {
875 return createConstant(CiConstant.forLong(v)); 875 return createConstant(RiConstant.forLong(v));
876 } 876 }
877 877
878 public XirConstant b(boolean v) { 878 public XirConstant b(boolean v) {
879 return createConstant(CiConstant.forBoolean(v)); 879 return createConstant(RiConstant.forBoolean(v));
880 } 880 }
881 881
882 public XirConstant o(Object obj) { 882 public XirConstant o(Object obj) {
883 return createConstant(CiConstant.forObject(obj)); 883 return createConstant(RiConstant.forObject(obj));
884 } 884 }
885 885
886 public void reserveOutgoingStack(int size) { 886 public void reserveOutgoingStack(int size) {
887 outgoingStackSize = Math.max(outgoingStackSize, size); 887 outgoingStackSize = Math.max(outgoingStackSize, size);
888 } 888 }