Don't use switch statements to dispatch instructions: use lookup tables. 4x speedup on both Chrome and FF