Added mock version of 'VM_GetConstantPtr'.
Added mock stack operations.