[masm] Clean up binop code generation
authorSimon Hausmann <simon.hausmann@digia.com>
Sun, 2 Dec 2012 18:04:57 +0000 (19:04 +0100)
committerLars Knoll <lars.knoll@digia.com>
Sun, 2 Dec 2012 18:14:30 +0000 (19:14 +0100)
commit11c4b283e45c08dee5b29391617486ef9f891fda
treea7ed3714cdc5d33baa55a3a256442d17353a1e60
parent5d2f12ee03d942e5bd37df2b976b90525f51a1e4
[masm] Clean up binop code generation

Instead of a gigantic switch and that duplicated across regular binop
and in-place binop, let's use one table where we can store all sorts
of meta-information about various aspects of the op implementations.
Then we can centralize the code for generating the inline operation
as well as the call to the fallback in one helper function.

Change-Id: I13b6dae7fd2a1490ae315689fa5f813eee83dd7b
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
qv4ir_p.h
qv4isel_masm.cpp
qv4isel_masm_p.h