1
0
mirror of https://github.com/janet-lang/janet synced 2025-05-21 16:54:11 +00:00
Calvin Rose db63d352a2 Add specialization for 3 argument get.
This can be inlined with jmpnn instruction (jump if not nil) to
skip over the default value.

(get a b c)

can be exanded statically to

asm start:
    (get $0 $1 $2)
    (jmpnn $0 :label)
    ... Instructions to load default value to $0 - often a load.
    :label
asm end.
2020-06-28 15:03:01 -05:00
..
2020-06-27 16:51:20 -05:00