pass thread pointer, cfp, call_info pointer
implement getlocal and setlocal