Comment #2 on issue 49 by preston.bannister: v8 does not use correct
Integer types.
http://code.google.com/p/v8/issues/detail?id=49
I disagree with counting this as a bug.
Over the years I have written a lot of portable code - for 16-bit, 32-bit,
and 64-bit machines, different compilers, and different operating systems.
Quite a while back I found that use of over-specific numeric types, when
not needed, detracts from portability.
Note that numeric types different in size than "int" tend to generate
slightly less efficient code (varying with compiler and CPU). Note also
that checking errors is a little easier. Underflow in expressions generate
negative values, for which you can test with a simple assertion.
If the method returns a numeric value under 2 billion, using an "int" is
sufficient.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev