[V8] Add support for QNX platform
authorSean Harmer <sean.harmer.qnx@kdab.com>
Fri, 13 Jan 2012 18:32:41 +0000 (18:32 +0000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 19 Mar 2012 13:07:04 +0000 (14:07 +0100)
commite4b7d4364ba3813655692a4f519658fbd2d7a9c4
treefbafc88290e3954e736fe1b23ecd42f621e0c769
parentc511fa8a6a631e45ee4075453bcb2eeb7f01ba63
[V8] Add support for QNX platform

This submission is based on code originally contributed by Jeff Rogers <jrogers@rim.com> with permission from Research in
Motion.

We have tried to make this change as unobtrusive as possible. For example in the atomic_ops.h header we have added a
conditional include for a qnx-specific atomicops_internals_arm_qnx.h as the existing atomicops_internals_arm_gcc.h is
actually Linux-specific despite the name of the file. In the longer term it would make sense to use an asm implementation
that is only dependent upon the CPU rather than OS-specific system calls. See qtbase/src/corelib/arch/qatomic_armv*.h
for a good reference.

Here we decided not to risk breaking existing platforms for the initial introduction of this new platform.

The QNX platform integration is built on top of the posix base.

Change-Id: Ic4758f8bc1cbdf5085278f79c9914f2f79b55148
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
src/3rdparty/v8/src/arm/cpu-arm.cc
src/3rdparty/v8/src/atomicops.h
src/3rdparty/v8/src/atomicops_internals_arm_qnx.h [new file with mode: 0644]
src/3rdparty/v8/src/platform-qnx.cc [new file with mode: 0644]
src/v8/v8.pri