Object-oriented virtual machine