Don't exceed SMI bounds
authorAaron Kennedy <aaron.kennedy@nokia.com>
Mon, 4 Jul 2011 01:57:47 +0000 (11:57 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 4 Jul 2011 05:27:00 +0000 (07:27 +0200)
commit8371e37e47967848ec470a4b34f46b1c8591c3c1
tree23550c49f20f41ac4b1bf8e37e7bbc231774b304
parent0fd993ac57dd35a286fb83c97196d3d27d1d3622
Don't exceed SMI bounds

If we use an integer that is greater than the maximum SMI value on
32-bit systems (like ARM), v8 allocates the integer as a HeapNumber
which is unbelievably slower.

Change-Id: I518b5947627631a2621344b656afa0dde002fe82
Reviewed-on: http://codereview.qt.nokia.com/1025
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
src/declarative/qml/v8/qv8qobjectwrapper.cpp