Cleanup: Reduce cpu specific #ifdefs in common masm code
authorSimon Hausmann <simon.hausmann@digia.com>
Tue, 12 Feb 2013 14:55:44 +0000 (15:55 +0100)
committerLars Knoll <lars.knoll@digia.com>
Tue, 12 Feb 2013 21:50:22 +0000 (22:50 +0100)
commitff5a76e229a024ff44414f7523d4dba8a1d6862f
treeb9141c805b4db885bd44674bcefc1594fe4f282a
parentbeda28a8561258188ae8c4473db2a8b5c01d96ed
Cleanup: Reduce cpu specific #ifdefs in common masm code

Centralize the callee save register handling as well as potentially cpu
specific stack frame enter/leave code (like ARM doesn't automatically save the
link register) inside bigger cpu specific #ifdefs instead of sprinkling them
throughout the code. That should make it easier in the future to port to
new calling conventions and architectures.

Change-Id: I92fed7cc3d0f7eb4da86843b7ad59581a64f635f
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/v4/qv4isel_masm.cpp
src/v4/qv4isel_masm_p.h