diff options
Diffstat (limited to 'output/ex31.vapor')
-rw-r--r-- | output/ex31.vapor | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/output/ex31.vapor b/output/ex31.vapor new file mode 100644 index 0000000..127792e --- /dev/null +++ b/output/ex31.vapor @@ -0,0 +1,25 @@ +func Main() + t.4 = HeapAllocZ(8) + [t.4+0] = :functable_A + t.3 = t.4 + ret + +const functable_A + :A_foo + :A_bar + +func A_foo(this ) + t.0 = 22 + ret t.0 + +func A_bar(this ) + t.0 = 42 + ret t.0 + +func AllocArray(size) + bytes = MulS(size 4) + bytes = Add(bytes 4) + v = HeapAllocZ(bytes) + [v] = size + ret v + |