From 52ef2ee57fd75640aebdb7578aefb5303547dcc7 Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Fri, 18 Nov 2011 09:48:54 +0100 Subject: Add V8 snapshot support 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 Reviewed-by: Lars Knoll --- .gitignore | 1 + 1 file changed, 1 insertion(+) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index 6cc7f6d836..03883f652e 100644 --- a/.gitignore +++ b/.gitignore @@ -64,6 +64,7 @@ bin/linguist* bin/lrelease* bin/lupdate* bin/lconvert* +bin/mkv8snapshot* bin/moc* bin/makeqpf* bin/pixeltool* -- cgit v1.2.3