[masm] Simplify inline op registration code
authorSimon Hausmann <simon.hausmann@digia.com>
Tue, 4 Dec 2012 19:37:05 +0000 (20:37 +0100)
committerLars Knoll <lars.knoll@digia.com>
Tue, 4 Dec 2012 22:05:33 +0000 (23:05 +0100)
commitb40b5102aba7967a95ba39d6f59bb20458d50762
tree3dfc16f611d1dc4e90903f24bb17cb4e40e0f1ac
parent8a6402d494131242f80e1464f3f628cd770bea45
[masm] Simplify inline op registration code

Don't store pointers to the JSC::MacroAssembler functions directly in our
binops table but provide wrapper functions. Those can do operation specific
things, like in case of mul32 map from (imm, reg) to (imm, reg, reg) or
take care of overflow handling (needed for add/mul, but not shl/shr).

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