summaryrefslogtreecommitdiffstats
path: root/src/v8
Commit message (Collapse)AuthorAgeFilesLines
* v8: Build V8 for FreeBSDHolger Hans Peter Freyther2011-12-231-0/+5
| | | | | | | | | | | | | | | | | | | | | | | For FreeBSD the libexecinfo port needs to be installed and linked to, all tests execute and pass. %uname -a FreeBSD qt-ppa 8.2-STABLE FreeBSD 8.2-STABLE #4: Sun Oct 30 20:43:37 UTC 2011 ich@freebsd:/usr/obj/usr/src/sys/GENERIC amd64 %./tst_v8 ********* Start testing of tst_v8 ********* Config: Using QTest library 5.0.0, Qt 5.0.0 PASS : tst_v8::initTestCase() PASS : tst_v8::eval() PASS : tst_v8::evalwithinwith() PASS : tst_v8::userobjectcompare() PASS : tst_v8::externalteardown() PASS : tst_v8::globalcall() PASS : tst_v8::cleanupTestCase() Totals: 7 passed, 0 failed, 0 skipped ********* Finished testing of tst_v8 ********* Change-Id: Ia8198128126c2931807c7fb872c15baad47022e1 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* v8: Change the selection of Operating SystemHolger Hans Peter Freyther2011-12-231-6/+4
| | | | | | | | | | | | Instead of doing "I want Linux and do it by selecting Unix and discarding everything not implementing the Linux ABI". Select the other operating system first and have a catch all Linux/Unix anchor. !symbian is left inside as it does not hurt right now but could probably be removed before Qt 5.0.0. Change-Id: I731d8349e4f9c0ac33d547523f0a0f422e994e54 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Update V8Aurindam Jana2011-12-1413-39/+106
| | | | | | | | | Update V8 with fix for Issue 1853 (http://code.google.com/p/v8/issues/detail?id=1853) Change-Id: I10f652228ab1421b280b433eb2a59aeb83a7699f Reviewed-by: Kai Koehne <kai.koehne@nokia.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* v8: give sensible error message if v8 sources are not checked outRohan McGovern2011-12-121-0/+5
| | | | | | | | | | | A common error for developers attempting to build qtbase for the first time is to miss cloning the v8 submodule. Let qmake check for existence of the sources so we get a sensible error at qmake time, rather than a relatively inscrutable error at make time. Change-Id: I70b478e63c962263dac4f2ddccb377b4c9777ceb Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* v8: Introduce MIPS code for the QML codeHolger Hans Peter Freyther2011-12-051-1/+136
| | | | | | | | Copy and paste the ARM code into the MIPS dir, there is no lithium support in MIPS right now. Change-Id: I21491d36da2a4ac4cb6898c47b0e5bd37a733b41 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* v8: Attempt to fix a typo in the commit messageHolger Hans Peter Freyther2011-12-051-1/+1
| | | | | | | is resolve -> is resolved Change-Id: I95a6072be63e353bafdafccc404e90d331a01894 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* mips: Really build the MIPS V8 codeHolger Hans Peter Freyther2011-12-051-3/+1
| | | | | | | | 2008d2d40ed10baf94acb9103b85f3bf6e2f655a was not rebased properly and should have used the V8_TARGET_ARCH to add the MIPS code to the build. Change-Id: Idf0c183fca63da0fa9f9aa8d091a764b88c888f5 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* v8: Be able to build V8 for MIPSHolger Hans Peter Freyther2011-12-011-0/+22
| | | | | | | | Add mips to the list in configure and the v8.pri, build the existing MIPS files. The result has not been verified to work. Change-Id: I0f4fd29cd9752d32b6d87e0df0e888822f40ac0a Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* V8/arm: Add relevant float definesKent Hansen2011-11-291-0/+1
| | | | | | | | | | | CAN_USE_VFP_INSTRUCTIONS implies arm7. This is the only arm configuration we currently support. These defines also ensure that a suitable snapshot is generated when cross-compiling (i.e., when using the arm simulator). Change-Id: I3a8a4224b9127a549b3987bcf5651ed1ffb8079a Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Make v8 snapshots work in debug-and-release modeKent Hansen2011-11-241-1/+1
| | | | | | | | | | | | | Debug snapshots and release snapshots aren't compatible. Both a debug version and release version of the mkv8snapshot tool must be built, and the corresponding executable selected when building v8. Adopt the library naming convention for naming the mkv8snapshot executable ("mkv8snapshot" in release, "mkv8snapshot_debug" in debug on Mac, "mkv8snapshotd" in debug on Windows). Change-Id: I7a94b09e7db7ed8bbaa293637c092a1d1d1dbaba Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Add V8 snapshot supportKent Hansen2011-11-222-23/+33
| | | | | | | | | | | | | | | | | | | | | | | | | A V8 snapshot is a serialized representation of the JavaScript heap. Using a snapshot can vastly speed up V8 initialization. This commit introduces a new tool, mkv8snapshot. mkv8snapshot is automatically invoked as part of building QtV8, and generates a .cpp file which is compiled into the QtV8 library. Because mkv8snapshot itself needs to initialize the V8 environment the non-snapshot way (i.e., by evaluating thousands of lines of JavaScript), it needs to build all of V8. This means that V8 is effectively built twice when snapshots are enabled. When cross-compiling, only host=i386 and target=arm is supported, since that's the only relevant case for which V8 currently supports a simulator. mkv8snapshot is built and run as a host tool (using the simulator), and generates a snapshot that will be used on the target. Task-number: QTBUG-21152 Change-Id: I9270652f129505508f78db8b0a39fbf57dc8b86d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* V8: Fix linking with MinGW.Friedemann Kleint2011-11-211-1/+1
| | | | | | | | Change linker flags to work with MSVC (stub.lib) and MinGW (stub.a). Change-Id: I9319972a133e2d3abfe046e87e2b76590608044b Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Update V8Kai Koehne2011-11-1712-77/+381
| | | | | Change-Id: Ie6157e0baa55271707b3e00ed80b67ab79f4f570 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Make V8 build on Windows againKent Hansen2011-11-151-1/+2
| | | | | | | | Forgot to add a Windows-specific source file to the project when the new V8 version was imported. Change-Id: Id20dcba132bf2609338845e8a769fcc8c1cbc562 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Update V8Kent Hansen2011-11-1411-26/+30
| | | | | | | | | Fixes a bug in one of our patches that caused hydrogen to optimize incorrectly. Task-number: QTBUG-22679 Change-Id: I008088cd2b878f22e6a2ba4e002aeba9a3c70a22 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Update V8Aaron Kennedy2011-11-1019-2807/+1796
| | | | | Change-Id: Ic239ef1e55bed06260e4a04cc2199f64c2d30059 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Disable warnings while building QtV8Bradley T. Hughes2011-11-021-0/+1
| | | | | | | | | | | This is a 3rd-party submodule that we do not directly modify. Warnings from this code is of no value to people diagnosing and fixing warnings in Qt code itself. Change-Id: If17d9ce6509abb7d7aa1f00daf7e771fc6231993 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Revert "Update V8"Kent Hansen2011-10-2019-1504/+2702
| | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 1c4a5fcab76d1b769a4c0369d40dd0dd7c0e7495 Several of the qtdeclarative tests and examples are dying randomly with messages like this: > > # > # Fatal error in ../3rdparty/v8/src/objects-inl.h, line 2169 > # CHECK(object->IsJSFunction()) failed > # > > > ==== Stack trace ============================================ > > > ==== Details ================================================ > > ==== Key ============================================ > > ===================== > > Aborted (core dumped) Change-Id: Iebaa2497a6f6ef616ef4c3576c217d2a8a2c1ea5 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Update V8Aaron Kennedy2011-10-1919-2702/+1504
| | | | | Change-Id: I7a9da7dbb2116a441788407d60ed10155cded941 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Update V8Aaron Kennedy2011-10-1116-15/+76
| | | | | | | | Change-Id: I359ec3f57a120ebd02d03c56d0944397b5407ed8 Reviewed-on: http://codereview.qt-project.org/6386 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com> Sanity-Review: Aaron Kennedy <aaron.kennedy@nokia.com> Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* Merge branch 'refactor'Gunnar Sletta2011-09-131-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: mkspecs/qws/linux-lsb-g++/qmake.conf src/gui/image/qpixmap_mac.cpp src/gui/painting/qpaintengine_x11.cpp src/gui/painting/qtessellator.cpp src/gui/text/qfontengine_qws.cpp src/gui/text/qfontengine_x11.cpp src/gui/widgets/qlinecontrol.cpp src/opengl/qgl.h src/opengl/qgl_x11egl.cpp src/plugins/plugins.pro Change-Id: If52dcd55cd55f2983a756c2f843967702b60a310
| * Merge branch 'master' into refactorGunnar Sletta2011-09-1217-640/+716
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/3rdparty/v8 src/gui/text/qfont_qpa.cpp src/gui/widgets/qlinecontrol.cpp src/plugins/platforms/fontdatabases/fontconfig/qfontconfigdatabase.cpp tests/auto/gui.pro tests/auto/network.pro tests/auto/qstring/tst_qstring.cpp Change-Id: Id118c172645303ccf06a207050d5bf1462ff57fe
| * \ Merge remote branch 'gerrit/master' into HEADSamuel Rødal2011-09-0617-29/+140
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.exe src/corelib/global/qglobal.h src/gui/kernel/qplatformnativeinterface_qpa.h src/gui/widgets/qlinecontrol.cpp src/gui/widgets/qmenu_mac.mm src/gui/widgets/qmenu_p.h src/gui/widgets/qmenubar.cpp src/gui/widgets/qmenubar_p.h src/gui/widgets/widgets.pri src/plugins/platforms/wayland/qwaylandnativeinterface.cpp src/plugins/platforms/wayland/qwaylandnativeinterface.h src/src.pro tests/auto/qdir/tst_qdir.cpp tests/auto/qfileinfo/tst_qfileinfo.cpp tests/auto/qsslsocket/tst_qsslsocket.cpp tests/auto/qstring/tst_qstring.cpp Change-Id: I64cf2cefa532ba87a92f632e3595ce6914183e9b
| * | | Compile with host architecture armv5telEskil Abrahamsen Blomfeldt2011-08-311-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ied7ef4052e192d1585d7eed7a100b01f79f9773d Reviewed-on: http://codereview.qt.nokia.com/3962 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* | | | Fixed unstable v8 compile failure in debug-and-release buildsRohan McGovern2011-09-121-1/+4
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In debug-and-release builds, the generated sources from the debug and the release build would race with each other. This could cause the source to be truncated during compilation, resulting in build failures referring to undefined symbols. Change-Id: Ib9eca2551d1e6c055a29be33ba46eab92f5b1861 Reviewed-on: http://codereview.qt-project.org/4626 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Sarah Jane Smith <sarah.j.smith@nokia.com>
* | | Update V8Aaron Kennedy2011-09-0915-14/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a "NativeMode" to V8 script compilation. Change-Id: I73b087c9787ca7f961c2af89f45de2b8813ce1a5 Task-number: QTBUG-20344 Reviewed-on: http://codereview.qt-project.org/4500 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* | | Update V8Aaron Kennedy2011-09-0716-640/+670
| |/ |/| | | | | | | | | | | | | | | This fixes a few bugs in QML mode name resolution and simplifies our V8 patchset a little by folding some patches together. Change-Id: Ia528a43ac8ccad95ac81bcdff5d05aaeab4b48b2 Reviewed-on: http://codereview.qt.nokia.com/4294 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* | Update our V8Kent Hansen2011-09-0216-29/+133
| | | | | | | | | | | | | | Change-Id: I8925815c068d697999955c45de9f0736ad31ed56 Reviewed-on: http://codereview.qt.nokia.com/3880 Reviewed-by: Kent Hansen <kent.hansen@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* | Try to ensure that QT_ARCH is always set when configuring v8Kent Hansen2011-09-011-0/+7
|/ | | | | | | | | | | | | | | | | | This is a workaround for QTBUG-21224. For v8 we want to use QT_ARCH as the primary variable for detecting the target platform. Unfortunately, QT_ARCH isn't set when v8.pro is parsed using fromfile() from within another .pro file (namely src/src.pro). qt_config seems to be the bare minimum that's needed to get qconfig.pri (which sets QT_ARCH and friends) loaded. Change-Id: Ideb713724b98dd100560eaf6d7be39df9a22a71e Reviewed-on: http://codereview.qt.nokia.com/4094 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
* Add QtV8 library to QtBaseKent Hansen2011-08-2917-0/+5260
This adds Aaron's copy of V8 to src/3rdparty/v8 (as a git submodule), and builds it as a "normal" Qt library (without any dependencies on Qt itself). The library can be added to a project with QT += v8-private V8 API headers are available as private includes, e.g. #include <private/v8.h> The API is private because we're exposing a third-party API directly, and we don't want to (and cannot) make source or binary compatibility guarantees for it. Since we want the V8 public API headers to be private headers in Qt, syncqt and sync.profile were extended to understand a new configuration option, the @allmoduleheadersprivate array, that tells syncqt whether all the library headers should be treated as private even though they don't follow the _p.h Qt convention. The V8 project files, patches and autotests are copied from the QtDeclarative repository. The next step after this commit is to remove QtDeclarative's copy of V8 and link with QtV8 instead. Task-number: QTBUG-20963 Change-Id: Ib8820362cdbc8fa662a5e97db841656cf38d1b62 Reviewed-on: http://codereview.qt.nokia.com/3092 Reviewed-by: Kent Hansen <kent.hansen@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>