-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Labels
Description
Main use case for JUMPF was being able to call a non-returning helper without the requirement to have equal stack height at each call site and without the need to POP extra items before calling.
In the current spec:
-
If such helper is implemented inside caller section (without
CALLF/JUMPF), it is allowed to call it from different stack heights. -
If such helper is in a separate section, we can make it work without the need for non-returning flag and
JUMPF: non-returning functions are declared with 0 outputs, and the requirement to notPOPextra items is achieved withCALLF STOPorCALLF INVALIDsequence.
The difference with JUMPF would be 4 bytes of code instead of 3 bytes and an item pushed into call stack at run-time.
Reactions are currently unavailable