Skip to content

Commit 741396f

Browse files
Sync with final ch21
1 parent 9fff7d0 commit 741396f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

seaofnodes/src/main/java/com/compilerprogramming/ezlang/compiler/sontypes/SONTypeFunPtr.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public SONTypeFunPtr(byte nil, SONTypeTuple sig, SONType ret, long fidxs) {
4444
// public static SONTypeFunPtr TEST = make((byte)2, SONTypeTuple.TEST, SONTypeInteger.BOT,1);
4545
// public static SONTypeFunPtr TEST0 = make((byte)3, SONTypeTuple.TEST, SONTypeInteger.BOT,3);
4646
public static SONTypeFunPtr MAIN = make((byte)3, SONTypeTuple.MAIN, SONTypeInteger.BOT,-1);
47+
public static SONTypeFunPtr CALLOC= make((byte)3,SONTypeTuple.CALLOC,SONTypeMemPtr.BOT,-1);
4748
public static void gather(ArrayList<SONType> ts) { /* ts.add(TEST); ts.add(TEST0); */ ts.add(BOT); ts.add(MAIN); }
4849

4950
@Override

seaofnodes/src/main/java/com/compilerprogramming/ezlang/compiler/sontypes/SONTypeTuple.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public class SONTypeTuple extends SONType {
1717
public static final SONTypeTuple START= make(SONType.CONTROL, SONTypeMem.TOP, SONTypeInteger.BOT);
1818
public static final SONTypeTuple MAIN = make(SONTypeInteger.BOT);
1919
public static final SONTypeTuple RET = make(SONType.CONTROL, SONTypeMem.BOT, SONType.BOTTOM);
20+
public static final SONTypeTuple CALLOC = make(SONTypeInteger.BOT,SONTypeInteger.BOT);
2021

2122
public static final SONTypeTuple IF_BOTH = make(new SONType[]{SONType. CONTROL, SONType. CONTROL});
2223
public static final SONTypeTuple IF_NEITHER = make(new SONType[]{SONType.XCONTROL, SONType.XCONTROL});

0 commit comments

Comments
 (0)