Bug 700517 - Add "ret imm16" instruction for x86 and x86_64; r=dvander a=not-libxul

This commit is contained in:
Nicolas Pierron 2011-12-13 14:17:57 +00:00
parent f9989fa0ef
commit c37b2e0523

View File

@ -226,6 +226,7 @@ private:
OP_MOV_OvEAX = 0xA3,
OP_MOV_EAXIv = 0xB8,
OP_GROUP2_EvIb = 0xC1,
OP_RET_Iz = 0xC2,
OP_RET = 0xC3,
OP_GROUP11_EvIb = 0xC6,
OP_GROUP11_EvIz = 0xC7,
@ -2302,6 +2303,15 @@ public:
m_formatter.oneByteOp(OP_RET);
}
void ret(int imm)
{
js::JaegerSpew(js::JSpew_Insns,
IPFX "ret %d\n", MAYBE_PAD,
imm);
m_formatter.oneByteOp(OP_RET_Iz);
m_formatter.immediate16(imm);
}
void predictNotTaken()
{
FIXME_INSN_PRINTING;