Devs rarely make $1 million a year, startup or big company. Now if you are 10x better than the average Google/Facebook engineer and can prove it, I think you could negotiate that kind of compensation package as a principal engineer.
This is a special case, but its possible for developers who specialise in High Frequency Trading (HFT) algorithms to make that, in the case of getting into a bidding war between rival HFT investment banks.