Lines Matching defs:componentType
40 @NodeInfo(nameTemplate = "VirtualArray {p#componentType/s}[{p#length}]")
44 protected final ResolvedJavaType componentType;
47 public VirtualArrayNode(ResolvedJavaType componentType, int length) {
48 this(TYPE, componentType, length);
51 protected VirtualArrayNode(NodeClass<? extends VirtualObjectNode> c, ResolvedJavaType componentType, int length) {
52 super(c, componentType.getArrayClass(), true);
53 this.componentType = componentType;
59 return componentType.getArrayClass();
62 public ResolvedJavaType componentType() {
63 return componentType;
79 return super.toString(Verbosity.Name) + " " + componentType.getName() + "[" + length + "]";
92 return entryIndexForOffset(constantOffset, expectedEntryKind, componentType, length);
95 public static int entryIndexForOffset(long constantOffset, JavaKind expectedEntryKind, ResolvedJavaType componentType, int length) {
98 switch (componentType.getJavaKind()) {
139 if (ByteOrder.nativeOrder() == ByteOrder.BIG_ENDIAN && componentType.isPrimitive()) {
141 offset = constantOffset - (componentType.getJavaKind().getByteCount() - Math.min(componentType.getJavaKind().getByteCount(), 4 + expectedEntryKind.getByteCount()));
159 return componentType.getJavaKind();
164 return new VirtualArrayNode(componentType, length);