diff options
| author | Rose Hogenson <rhogenson@posteo.net> | 2022-07-30 13:30:34 -0700 |
|---|---|---|
| committer | Rose Hogenson <rhogenson@posteo.net> | 2022-07-30 13:30:34 -0700 |
| commit | 0632650d0e4250e08a76982ab2713a34e3531b33 (patch) | |
| tree | 1017fad6236661e2ec4b84ed2f005fa66e0ea554 /csc/encoding.csc | |
| parent | 3f79dd1c6a34b7f6746ace3b4a9592ebb83eb15f (diff) | |
| download | chromatopelma-0632650d0e4250e08a76982ab2713a34e3531b33.tar.zst | |
Add the typeof opcode.
Diffstat (limited to 'csc/encoding.csc')
| -rw-r--r-- | csc/encoding.csc | 4 |
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)))) |
