Skip to content
  • Ondřej Zajíček's avatar
    a2527ee5
    Filter: Improve handling of stack frames in filter bytecode · a2527ee5
    Ondřej Zajíček authored and Ondřej Zajíček's avatar Ondřej Zajíček committed
    When f_line is done, we have to pop the stack frame. The old code just
    removed nominal number of args/vars. Change it to use stored ventry value
    modified by number of returned values. This allows to allocate variables
    on a stack frame during execution of f_lines instead of just at start.
    
    But we need to know the number of returned values for a f_line. It is 1
    for term, 0 for cmd. Store that to f_line during linearization.
    a2527ee5
    Filter: Improve handling of stack frames in filter bytecode
    Ondřej Zajíček authored and Ondřej Zajíček's avatar Ondřej Zajíček committed
    When f_line is done, we have to pop the stack frame. The old code just
    removed nominal number of args/vars. Change it to use stored ventry value
    modified by number of returned values. This allows to allocate variables
    on a stack frame during execution of f_lines instead of just at start.
    
    But we need to know the number of returned values for a f_line. It is 1
    for term, 0 for cmd. Store that to f_line during linearization.
Loading