def __init__(self): # XXX what should be done with the stack_capture()d frames # when we are finished? what about moving GCs? frame = llmemory.cast_ptr_to_adr(stack_capture()) self.static_current = gcdata.static_root_start captured_frame_holder.address[0] = frame self.finished = False
def fn(): frame = rstack.stack_capture() return int(bool(frame))
def __init__(self): frame = llmemory.cast_ptr_to_adr(stack_capture()) self.static_current = gcdata.static_root_start index = len(gcdata.static_roots) self.static_roots_index = index gcdata.static_roots[index-1] = frame
def ll_stack_capture(): return rstack.stack_capture()