mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 931486 - SpiderMonkey: Misc x86 assembler spew fixes. r=sstangl
This commit is contained in:
parent
5e360131de
commit
f394f89c9c
@ -522,7 +522,8 @@ public:
|
||||
|
||||
void addl_rm(RegisterID src, int offset, RegisterID base)
|
||||
{
|
||||
FIXME_INSN_PRINTING;
|
||||
spew("addl %s, %s0x%x(%s)",
|
||||
nameIReg(4,src), PRETTY_PRINT_OFFSET(offset), nameIReg(base));
|
||||
m_formatter.oneByteOp(OP_ADD_EvGv, src, base, offset);
|
||||
}
|
||||
|
||||
@ -638,7 +639,8 @@ public:
|
||||
|
||||
void andl_rm(RegisterID src, int offset, RegisterID base)
|
||||
{
|
||||
FIXME_INSN_PRINTING;
|
||||
spew("andl %s, %s0x%x(%s)",
|
||||
nameIReg(4,src), PRETTY_PRINT_OFFSET(offset), nameIReg(base));
|
||||
m_formatter.oneByteOp(OP_AND_EvGv, src, base, offset);
|
||||
}
|
||||
|
||||
@ -780,13 +782,15 @@ public:
|
||||
|
||||
void orl_mr(int offset, RegisterID base, RegisterID dst)
|
||||
{
|
||||
FIXME_INSN_PRINTING;
|
||||
spew("orl %s0x%x(%s), %s",
|
||||
PRETTY_PRINT_OFFSET(offset), nameIReg(base), nameIReg(4,dst));
|
||||
m_formatter.oneByteOp(OP_OR_GvEv, dst, base, offset);
|
||||
}
|
||||
|
||||
void orl_rm(RegisterID src, int offset, RegisterID base)
|
||||
{
|
||||
FIXME_INSN_PRINTING;
|
||||
spew("orl %s, %s0x%x(%s)",
|
||||
nameIReg(4,src), PRETTY_PRINT_OFFSET(offset), nameIReg(base));
|
||||
m_formatter.oneByteOp(OP_OR_EvGv, src, base, offset);
|
||||
}
|
||||
|
||||
@ -876,7 +880,8 @@ public:
|
||||
|
||||
void subl_rm(RegisterID src, int offset, RegisterID base)
|
||||
{
|
||||
FIXME_INSN_PRINTING;
|
||||
spew("subl %s, %s0x%x(%s)",
|
||||
nameIReg(4,src), PRETTY_PRINT_OFFSET(offset), nameIReg(base));
|
||||
m_formatter.oneByteOp(OP_SUB_EvGv, src, base, offset);
|
||||
}
|
||||
|
||||
@ -961,13 +966,15 @@ public:
|
||||
|
||||
void xorl_mr(int offset, RegisterID base, RegisterID dst)
|
||||
{
|
||||
FIXME_INSN_PRINTING;
|
||||
spew("xorl %s0x%x(%s), %s",
|
||||
PRETTY_PRINT_OFFSET(offset), nameIReg(base), nameIReg(4,dst));
|
||||
m_formatter.oneByteOp(OP_XOR_GvEv, dst, base, offset);
|
||||
}
|
||||
|
||||
void xorl_rm(RegisterID src, int offset, RegisterID base)
|
||||
{
|
||||
FIXME_INSN_PRINTING;
|
||||
spew("xorl %s, %s0x%x(%s)",
|
||||
nameIReg(4,src), PRETTY_PRINT_OFFSET(offset), nameIReg(base));
|
||||
m_formatter.oneByteOp(OP_XOR_EvGv, src, base, offset);
|
||||
}
|
||||
|
||||
@ -1594,7 +1601,8 @@ public:
|
||||
|
||||
void movl_rm_disp32(RegisterID src, int offset, RegisterID base)
|
||||
{
|
||||
FIXME_INSN_PRINTING;
|
||||
spew("movl %s, %s0x%x(%s)",
|
||||
nameIReg(4,src), PRETTY_PRINT_OFFSET(offset), nameIReg(base));
|
||||
m_formatter.oneByteOp_disp32(OP_MOV_EvGv, src, base, offset);
|
||||
}
|
||||
|
||||
@ -1625,7 +1633,8 @@ public:
|
||||
|
||||
void movl_mr_disp32(int offset, RegisterID base, RegisterID dst)
|
||||
{
|
||||
FIXME_INSN_PRINTING;
|
||||
spew("movl %s0x%x(%s), %s",
|
||||
PRETTY_PRINT_OFFSET(offset), nameIReg(base), nameIReg(4,dst));
|
||||
m_formatter.oneByteOp_disp32(OP_MOV_GvEv, dst, base, offset);
|
||||
}
|
||||
|
||||
@ -1756,12 +1765,14 @@ public:
|
||||
|
||||
void movq_rm(RegisterID src, const void* addr)
|
||||
{
|
||||
if (src == X86Registers::eax) {
|
||||
movq_EAXm(addr);
|
||||
return;
|
||||
}
|
||||
|
||||
spew("movq %s, %p",
|
||||
nameIReg(8, src), addr);
|
||||
if (src == X86Registers::eax)
|
||||
movq_EAXm(addr);
|
||||
else
|
||||
m_formatter.oneByteOp64(OP_MOV_EvGv, src, addr);
|
||||
m_formatter.oneByteOp64(OP_MOV_EvGv, src, addr);
|
||||
}
|
||||
|
||||
void movq_mEAX(const void* addr)
|
||||
@ -1800,12 +1811,14 @@ public:
|
||||
|
||||
void movq_mr(const void* addr, RegisterID dst)
|
||||
{
|
||||
if (dst == X86Registers::eax) {
|
||||
movq_mEAX(addr);
|
||||
return;
|
||||
}
|
||||
|
||||
spew("movq %p, %s",
|
||||
addr, nameIReg(8, dst));
|
||||
if (dst == X86Registers::eax)
|
||||
movq_mEAX(addr);
|
||||
else
|
||||
m_formatter.oneByteOp64(OP_MOV_GvEv, dst, addr);
|
||||
m_formatter.oneByteOp64(OP_MOV_GvEv, dst, addr);
|
||||
}
|
||||
|
||||
void leaq_mr(int offset, RegisterID base, RegisterID index, int scale, RegisterID dst)
|
||||
|
Loading…
Reference in New Issue
Block a user