aboutsummaryrefslogtreecommitdiffstats
path: root/csc/encoding.csc
diff options
context:
space:
mode:
Diffstat (limited to 'csc/encoding.csc')
-rw-r--r--csc/encoding.csc4
1 files changed, 4 insertions, 0 deletions
diff --git a/csc/encoding.csc b/csc/encoding.csc
index 1208993..9afa40f 100644
--- a/csc/encoding.csc
+++ b/csc/encoding.csc
@@ -171,6 +171,10 @@
(make-opcode w 14 (is-const? size) #f)
(arg->le-bytes w dest)
(arg->le-bytes w size))
+ (('typeof dest x)
+ (make-opcode w 15 (is-const? x) #f)
+ (arg->le-bytes w dest)
+ (arg->le-bytes w x))
(_ (error "invalid opcode" opcode))))