[Scripting][vm] Added some macros.