aboutsummaryrefslogtreecommitdiff
path: root/pkg/lang/vm/code
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-05-20 00:05:20 +0200
committerMel <einebeere@gmail.com>2022-05-20 00:05:20 +0200
commit360f092fe693f66219891581417026a3cffd2709 (patch)
tree61370560419450ce0b306a68d20e85ce2c9f69a5 /pkg/lang/vm/code
parentfe93d5c015e8e2c883d2c1e74f2e5ce071256cb5 (diff)
downloadjinx-360f092fe693f66219891581417026a3cffd2709.tar.zst
jinx-360f092fe693f66219891581417026a3cffd2709.zip
More VM operations needed for Fib
Diffstat (limited to 'pkg/lang/vm/code')
-rw-r--r--pkg/lang/vm/code/op.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkg/lang/vm/code/op.go b/pkg/lang/vm/code/op.go
index ae37603..cb2811a 100644
--- a/pkg/lang/vm/code/op.go
+++ b/pkg/lang/vm/code/op.go
@@ -16,19 +16,28 @@ const (
OpPushFunction
OpPushObject
+ OpDrop
+
OpGetGlobal
OpGetLocal
OpGetMember
+ OpGetMethod
OpGetArg
OpGetEnv
OpAdd
OpSub
OpIndex
+ OpLte
OpCall
OpJmp
- OpJez
+ OpJt
+ OpJf
OpRet
+
+ // Temporary operations, which will be removed with the advent of methods.
+ OpTempArrLen
+ OpTempArrPush
)