diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-05 17:16:37 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-10-06 08:16:40 (GMT) |
commit | 37bd7a5711e57ea8c45ae75102ddee3ab905a0e5 (patch) | |
tree | 62ad5ea444763c07caca7206bf488d3f65f8547e /tests/auto/q3dns/q3dns.pro | |
parent | 39dc3026d1da03d5fcf8e5c516fadd7e4ea8a861 (diff) | |
download | Qt-37bd7a5711e57ea8c45ae75102ddee3ab905a0e5.zip Qt-37bd7a5711e57ea8c45ae75102ddee3ab905a0e5.tar.gz Qt-37bd7a5711e57ea8c45ae75102ddee3ab905a0e5.tar.bz2 |
QScript: do not crash on PowerPC
There is no 'this' register in the global context.
The computation of the this register for the global context
gives the 'codeBlock' register in the frame header.
On Intel processor, a JSValue() is 0x0 when converted to a pointer,
but this is not the case on PowerPC (it is 0xfffffff9) so it just
crash later when acessing the code block.
Solution: special condition for the global context when getting the
'this' object
Reviewed-by: Kent Hansen
Diffstat (limited to 'tests/auto/q3dns/q3dns.pro')
0 files changed, 0 insertions, 0 deletions