Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/xir/CiXirAssembler.java @ 5538:e18ba36bfebc
Renamed RiConstant => Constant.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Fri, 08 Jun 2012 23:41:02 +0200 |
parents | 426c605c9d3c |
children | bc647d8b0080 |
comparison
equal
deleted
inserted
replaced
5537:80371cc2256d | 5538:e18ba36bfebc |
---|---|
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 RiConstant value; | 227 public final Constant value; |
228 | 228 |
229 XirConstant(CiXirAssembler asm, RiConstant value) { | 229 XirConstant(CiXirAssembler asm, Constant 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, RiKind kind) { | 818 public XirConstantParameter createConstantInputParameter(String name, RiKind 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(RiConstant constant) { | 823 public XirConstant createConstant(Constant 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(RiConstant.forInt(v)); | 871 return createConstant(Constant.forInt(v)); |
872 } | 872 } |
873 | 873 |
874 public XirConstant l(long v) { | 874 public XirConstant l(long v) { |
875 return createConstant(RiConstant.forLong(v)); | 875 return createConstant(Constant.forLong(v)); |
876 } | 876 } |
877 | 877 |
878 public XirConstant b(boolean v) { | 878 public XirConstant b(boolean v) { |
879 return createConstant(RiConstant.forBoolean(v)); | 879 return createConstant(Constant.forBoolean(v)); |
880 } | 880 } |
881 | 881 |
882 public XirConstant o(Object obj) { | 882 public XirConstant o(Object obj) { |
883 return createConstant(RiConstant.forObject(obj)); | 883 return createConstant(Constant.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 } |