예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
 def fn():
     frame = rstack.stack_capture()
     return int(bool(frame))
예제 #4
0
 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
예제 #5
0
def ll_stack_capture():
    return rstack.stack_capture()