Any girl that works in a place with a highly skewed male to female ratio has to have a cut off. While working at a game company I let little jokes like this slide because I thought they were funny and they didn't offend me at all. Then it got a little worse and it eventually turned into "Oh alukima is grumpy today, her boyfriend must not have given her any dick last night" and when I told someone no, we couldn't do x "on your period?, I'll just take this up with [male supervisor]." I eventually quit.
I don't think it's like that in every unchecked environment but in the future I will speak up much earlier. I'll probably be called overly sensitive then and I'll probably agree with that. But it's worth to keep it from escalating.