[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>
Thu, 26 Apr 2012 06:57:10 +0000 (08:57 +0200)
commit86231b7c3801afcb86bc8327ac764ecccfaf3188
treeb25973c52523ae69f2fde7cbd65aa2769062b915
parentfd7735cffab93d2721c7bbecada87175d9e8e679
[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: I2ba25c227401c540c52067c31898e81a1f25855d
Reviewed-by: Kent Hansen <kent.hansen@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]