VM: refactoring, new function get_thread_pc() and simpler logic in exception_handler()
VM: refactoring, new function get_thread_pc() and simpler logic in exception_handler()

tgunr/factor,mrjbq7/factor,factor/factor,tgunr/factor,nicolas-p/factor,slavapestov/factor,AlexIljin/factor,tgunr/factor,nicolas-p/factor,slavapestov/factor,nicolas-p/factor,bpollack/factor,bjourne/factor,mrjbq7/factor,bjourne/factor,bjourne/factor,tgunr/factor,bpollack/factor,nicolas-p/factor,factor/factor,AlexIljin/factor,factor/factor,mrjbq7/factor,bpollack/factor,AlexIljin/factor,bjourne/factor,nicolas-p/factor,nicolas-p/factor,slavapestov/factor,bjourne/factor,slavapestov/factor,nicolas-p/factor,factor/factor,factor/factor,AlexIljin/factor,slavapestov/factor,bpollack/factor,tgunr/factor,mrjbq7/factor,AlexIljin/factor,slavapestov/factor,factor/factor,bjourne/factor,bpollack/factor,mrjbq7/factor,bpollack/factor,AlexIljin/factor,mrjbq7/factor,tgunr/factor,slavapestov/factor,bpollack/factor,AlexIljin/factor,bjourne/factor