|
68 | 68 | import com.oracle.graal.pointsto.heap.SharedLayerSnapshotCapnProtoSchemaHolder.PersistedConstant;
|
69 | 69 | import com.oracle.graal.pointsto.heap.SharedLayerSnapshotCapnProtoSchemaHolder.PersistedConstant.Object.Relinking.EnumConstant;
|
70 | 70 | import com.oracle.graal.pointsto.heap.SharedLayerSnapshotCapnProtoSchemaHolder.PersistedConstant.Object.Relinking.StringConstant;
|
| 71 | +import com.oracle.graal.pointsto.heap.SharedLayerSnapshotCapnProtoSchemaHolder.PrimitiveArray; |
| 72 | +import com.oracle.graal.pointsto.heap.SharedLayerSnapshotCapnProtoSchemaHolder.PrimitiveValue; |
71 | 73 | import com.oracle.graal.pointsto.heap.SharedLayerSnapshotCapnProtoSchemaHolder.SharedLayerSnapshot;
|
72 | 74 | import com.oracle.graal.pointsto.heap.value.ValueSupplier;
|
73 | 75 | import com.oracle.graal.pointsto.infrastructure.ResolvedSignature;
|
@@ -944,7 +946,7 @@ protected void injectIdentityHashCode(Object object, Integer identityHashCode) {
|
944 | 946 | /* The hash code can only be injected in the SVM context. */
|
945 | 947 | }
|
946 | 948 |
|
947 |
| - private static Object getArray(PersistedConstant.PrimitiveData.Reader reader) { |
| 949 | + protected static Object getArray(PrimitiveArray.Reader reader) { |
948 | 950 | return switch (reader.which()) {
|
949 | 951 | case Z -> getBooleans(reader.getZ());
|
950 | 952 | case B -> toArray(reader.getB(), r -> IntStream.range(0, r.size()).collect(() -> new byte[r.size()], (a, i) -> a[i] = r.get(i), combineUnsupported()));
|
@@ -1011,7 +1013,7 @@ private Object[] getReferencedValues(ImageHeapConstant parentConstant, StructLis
|
1011 | 1013 | throw AnalysisError.shouldNotReachHere("This constant was not materialized in the base image.");
|
1012 | 1014 | });
|
1013 | 1015 | case PRIMITIVE_VALUE -> {
|
1014 |
| - ConstantReference.PrimitiveValue.Reader pv = constantData.getPrimitiveValue(); |
| 1016 | + PrimitiveValue.Reader pv = constantData.getPrimitiveValue(); |
1015 | 1017 | yield JavaConstant.forPrimitive((char) pv.getTypeChar(), pv.getRawValue());
|
1016 | 1018 | }
|
1017 | 1019 | default -> throw GraalError.shouldNotReachHere("Unexpected constant reference: " + constantData.which());
|
|
0 commit comments