about summary refs log tree commit diff
path: root/pkg/lang/vm/text/decompiler.go
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-07-11 11:07:51 +0200
committerMel <einebeere@gmail.com>2022-07-11 11:07:51 +0200
commit74dd678dfd1aae9e655fd13cb65278ea9ba307e2 (patch)
tree6dc757259edb4f7163e0563c9acec2a239f56d80 /pkg/lang/vm/text/decompiler.go
parent7a60e91c8c45663127cfa3aa31a14c930f717aeb (diff)
downloadjinx-74dd678dfd1aae9e655fd13cb65278ea9ba307e2.tar.zst
jinx-74dd678dfd1aae9e655fd13cb65278ea9ba307e2.zip
Reimplement argument counts
Diffstat (limited to 'pkg/lang/vm/text/decompiler.go')
-rw-r--r--pkg/lang/vm/text/decompiler.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/lang/vm/text/decompiler.go b/pkg/lang/vm/text/decompiler.go
index bef066b..aca024c 100644
--- a/pkg/lang/vm/text/decompiler.go
+++ b/pkg/lang/vm/text/decompiler.go
@@ -75,6 +75,7 @@ func (d *Decompiler) decompileInstruction(bc code.Raw) (string, code.Raw) {
 		code.OpGetEnv,
 		code.OpSetEnv,
 		code.OpAddToEnv,
+		code.OpSetArgCount,
 		code.OpCall:
 		i, rest := d.decompileInt(bc[1:])
 		return fmt.Sprintf("%s %s", opString, i), rest