Rarely, if you join as a senior engineer at AmaGooFaceSoftApple you won't make 200k base salary. This will be mostly stocks.
Salary is much more straightforward, and more predictable.
The hot new thing is to do continuous vesting with annual refreshes. That way you're constantly accruing and the only time you can't exit is during company blackouts.