Added an iterative version of factorial as a (performance) test.

Change-Id: I2c64b84d060792c0a1b111b854495cafcf24db33
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Move the Param struct out of the Instr union.

The parameter struct was accidentally put in the instruction union. As
it is not an instruction, it should not be part of that union.

Change-Id: Id70619fed50ae606f43f2c1701f28aea0a0baed7
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Make some clone methods statically accessible.

Change-Id: I5943c30d239a26869fefec608cb8e4a27a31aaaa
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Add utility conversion methods for use in the JIT.

Change-Id: Iec3eeb849df924919662e8d2ca6593d66c70e3eb
Reviewed-by: Lars Knoll <lars.knoll@digia.com>