convert qv8workerscript to v4

Change-Id: Ifc204f53a46c857a2a7caaa4f6900d4300163dbb
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Fix a bug in V4V8Object::put()

When a fallback handler returns an empty value it is not
intercepting the call, and thus the put() method of the base
obejct should get called.

Fixes most issues with worker threads.

Change-Id: I88f0fcb6349cc818163248d456e3fb916188f48f
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Properly initialize regexp objects created from QRegExp's

Change-Id: Id6c9abe7e20bf91c37a6bd335117266a8e8aa8fd
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Fix a bug in the creation of JS Array's from variant and string lists

Correctly set the arrayDataLen or V4 assumes the array is empty.

Change-Id: I6b7454b2e7a2b459b1e41e6d6234f89460013107
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Comment out two lines that cause assertions

The subcontext code is only used to add debugging info
through the V8 API.

Change-Id: Ibcb3284180aca1568b44d9d387d96bfae715283d
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Rename QV8Worker to QV4::Serialize

The class is only being used in WorkerScript, but in itself
only does serialization of JS Values.

Change-Id: Ibf1b06acf5abcfcc00cada9cc8cad9a833bd7ea3
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Fix some parts of workerscript and convert to v4

Add some try/catch blocks around calls to v4, fixing
some crashes in the worker script auto test.

Change-Id: I591a25facc8afd5c6f99ffb7b75530c890318280
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Move QQmlJavascriptExression::evaluate over to v4

Change-Id: Ic4093dc5413f43af55a74a0e0f8c316ac1c6d974
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>