stl.returnΒΆ
Returns to the calling function (gets the return-address from the top of the stack).
note: jumps to the last-callβs pop_ret_address (which this macro counts as time, but not space, complexity).
@Assumes: matched by a prior stl.call (stack non-empty).
@Assumes: matched by a prior stl.call (stack non-empty)
SignatureΒΆ
def return < hex.pointers.sp { ... }
Defined in ptrlib.fj β lines 70β72 (view on GitHub).
ComplexityΒΆ
Time:
w(2@+7) + 9@+23Space:
w(2.375@+34) + 5@+67
See the complexity glossary for what @, w, dw, dbit, n mean.
Requires initΒΆ
The following must be initialised before this macro is invoked:
the stack_init.
SourceΒΆ
Click to view the macro body
def return < hex.pointers.sp {
hex.ptr_jump hex.pointers.sp
}
Depends onΒΆ
β Previous: stl.call/2
Next: stl.get_sp β