@classmethod
def from_traceback(cls, tb):
    """ Construct a Bytecode from the given traceback """
    while tb.tb_next:
        tb = tb.tb_next
    return cls(tb.tb_frame.f_code, current_offset=tb.tb_lasti)
