OSDN Git Service

Refactor PUSH/POP in ARM assemblers.
authorKarl Schimpf <kschimpf@google.com>
Mon, 11 Jan 2016 17:59:19 +0000 (09:59 -0800)
committerKarl Schimpf <kschimpf@google.com>
Mon, 11 Jan 2016 17:59:19 +0000 (09:59 -0800)
commitc411dbf1c868911d4d300c6bf1ca6caa62592a1c
tree428faf4fc0d1dfe9bc6d45813103c6b659317fd8
parentd8777b0d1ca05ce4c69b224f04b17b6c0cb5f103
Refactor PUSH/POP in ARM assemblers.

Refactors methods emit() and emitIAS() of InstARM32Push and InstARM32Pop
to separate out the selection of assembler instructions from instruction
emission, using template methods.

Template method assemble() provides a single implementation for emit() and emitIAS(). This method calls template functions in the assembler to generate textual and binary forms of the instruction.

BUG= None
R=jpp@chromium.org, stichnot@chromium.org

Review URL: https://codereview.chromium.org/1535233002 .
src/IceAssemblerARM32.cpp
src/IceAssemblerARM32.h
src/IceInstARM32.cpp
src/IceInstARM32.h
src/IceRegistersARM32.h