Hmmm... delicious bitmasking. That's when you know the author is serious about squeezing performance out of a JS VM: forcing 32 bit integer optimizations.
Nice!
But still: you did port it from C++, and consciously or not, that optimization still applies.