diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-07-20 14:13:50 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-07-20 14:17:03 +0100 |
| commit | 36540510fff921b46642c6a01b0e566d540b4076 (patch) | |
| tree | 6909806e14ff11740207272ed8d3527f20d579eb /src/test/java | |
| parent | 557198d9f3718e2be26b793dc32e76912f2c5bcc (diff) | |
Allocate memory for closure
Diffstat (limited to 'src/test/java')
| -rw-r--r-- | src/test/java/org/shedlang/compiler/patio/PatioSerializerTests.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/org/shedlang/compiler/patio/PatioSerializerTests.java b/src/test/java/org/shedlang/compiler/patio/PatioSerializerTests.java index 364a0862..123748b8 100644 --- a/src/test/java/org/shedlang/compiler/patio/PatioSerializerTests.java +++ b/src/test/java/org/shedlang/compiler/patio/PatioSerializerTests.java @@ -37,7 +37,7 @@ public class PatioSerializerTests { public void canSerializeAlloc() { var instruction = Patio.alloc( "x", - PatioTypes.struct(List.of(PatioTypes.INT, PatioTypes.INT, PatioTypes.DATA_POINTER)) + PatioTypes.structFlat(List.of(PatioTypes.INT, PatioTypes.INT, PatioTypes.DATA_POINTER)) ); var string = PatioTesting.serializeInstruction(instruction); @@ -90,7 +90,7 @@ public class PatioSerializerTests { var instruction = Patio.memoryLoad( "target", "pointer", - PatioTypes.struct(List.of(PatioTypes.INT, PatioTypes.INT, PatioTypes.DATA_POINTER)), + PatioTypes.structFlat(List.of(PatioTypes.INT, PatioTypes.INT, PatioTypes.DATA_POINTER)), 1 ); @@ -111,7 +111,7 @@ public class PatioSerializerTests { public void canSerializeMemoryStore() { var instruction = Patio.memoryStore( "pointer", - PatioTypes.struct(List.of(PatioTypes.INT, PatioTypes.INT, PatioTypes.DATA_POINTER)), + PatioTypes.structFlat(List.of(PatioTypes.INT, PatioTypes.INT, PatioTypes.DATA_POINTER)), 1, "value" ); @@ -180,7 +180,7 @@ public class PatioSerializerTests { @Test public void canSerializeStruct() { - var layout = PatioTypes.struct(List.of(PatioTypes.INT, PatioTypes.INT, PatioTypes.DATA_POINTER)); + var layout = PatioTypes.structFlat(List.of(PatioTypes.INT, PatioTypes.INT, PatioTypes.DATA_POINTER)); var string = PatioTesting.serializeDataLayout(layout); |
