move method enter/exit hook invocation to VM
simplify stack reads with stack.read function