implements PR-05.5

This commit is contained in:
2026-03-24 13:42:30 +00:00
parent 6a7cd6a40a
commit 48ce448203
12 changed files with 196 additions and 13 deletions
@@ -77,10 +77,15 @@ public record IRReservedMetadata(
String sourceMethodName,
String canonicalName,
long canonicalVersion,
int argSlots,
int retSlots,
Span span) {
public IntrinsicSurface {
sourceMethodName = Objects.requireNonNull(sourceMethodName, "sourceMethodName");
canonicalName = Objects.requireNonNull(canonicalName, "canonicalName");
if (argSlots < 0 || retSlots < 0) {
throw new IllegalArgumentException("intrinsic slot counts must be non-negative");
}
span = Objects.requireNonNull(span, "span");
}
}