summaryrefslogtreecommitdiffstats
path: root/src/tools/mkv8snapshot
Commit message (Collapse)AuthorAgeFilesLines
* Remove QtV8 library from QtBaseSimon Hausmann2012-01-091-39/+0
| | | | | | | | | | The QtV8 library is going to live in the qtjsbackend module. Change-Id: I72251316163829411dda998b9503ce6f75b3606a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Disable warnings when building mkv8snapshotBradley T. Hughes2011-12-141-0/+1
| | | | | | | | Like in commit 5341cf783102dfab9e1ee2c13aae063d1ab2e75b, do not enable warnings when building V8 code. Change-Id: I447db52d546b50aea1c3afc88db7ce6923a5e310 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
* Executing 'make install' did not build mkv8snapshotJyri Tahtela2011-12-061-0/+3
| | | | | | | | | During shadow-building it was noticed that executing make install did not actually build mkv8snapshot and therefore caused an error. Change-Id: I126cdbaffb85170e25412b93bc99af79ac6f4642 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com> Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
* Make v8 snapshots work in debug-and-release modeKent Hansen2011-11-241-0/+5
| | | | | | | | | | | | | 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-221-0/+30
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>