KOS_OP_RETURN_FAST
Style: FASTVAR. Arg = fast slot index.
Stack:
[...] → [...](no stack effect). AsKOS_OP_RETURN_VAR, with the value read from the fast slot; an empty slot raisesNameErrorasKOS_OP_FASTwould.Compiler form: Post-compile only: the
convert_fastlowering ofKOS_OP_RETURN_VARwhen the name has a fast slot.See also: KOS_OP_RETURN_VAR;
koskari/lib/opcode/RETURN_FAST.c.Covered by:
tests/lib/opcode/test_control_operand.py,tests/compile/test_fuse_feeders.py
Example: (def f [a] a): the body returns its parameter.
index |
opcode |
arg |
arg view |
comment |
|---|---|---|---|---|
0 |
RETURN_FAST |
0 |
0 |
return slot 0 ( |