aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2024-02-02 20:47:44 +0000
committerMichael Williamson <mike@zwobble.org>2024-02-02 20:47:44 +0000
commitb545f686714b26e117a071c73519c0906896c56e (patch)
tree62b204d61f01e8d199adfa45b3286618457717b3 /src/main/java
parent920fa1fdcb3eac4348591ebaba6b42df9d5f5ae9 (diff)
Remove alloc overload
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/shedlang/compiler/shidtopatio/ShidToPatioGc.java20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/main/java/org/shedlang/compiler/shidtopatio/ShidToPatioGc.java b/src/main/java/org/shedlang/compiler/shidtopatio/ShidToPatioGc.java
index e2c9242a..0deafa80 100644
--- a/src/main/java/org/shedlang/compiler/shidtopatio/ShidToPatioGc.java
+++ b/src/main/java/org/shedlang/compiler/shidtopatio/ShidToPatioGc.java
@@ -144,24 +144,10 @@ public class ShidToPatioGc {
Source source,
ShidToPatioContext context
) {
- return alloc(
- destination,
- runtimeType.layout(),
- runtimeType.gcChildrenOffset(),
- runtimeType.gcChildrenCount(),
- source,
- context
- );
- }
+ var layout = runtimeType.layout();
+ var childrenOffset = runtimeType.gcChildrenOffset();
+ var childrenCount = runtimeType.gcChildrenCount();
- public static ShidToPatioContext alloc(
- PatioLocalRef destination,
- PatioDataLayout layout,
- List<Integer> childrenOffset,
- int childrenCount,
- Source source,
- ShidToPatioContext context
- ) {
context = context.ensureCompilationUnitElement(ALLOC);
var size = new PatioIntConst(new PatioIntValueByteSizeOf(layout));