2008-10-17 Maciej Stachowiak <mjs@apple.com>
[WebKit.git] / JavaScriptCore / masm / X86Assembler.h
index 6112df88d6320ebf130bd5d489f40fda948458bb..dd08d38ef093aa69e8c14c030a4826ec72e9b878 100644 (file)
@@ -196,6 +196,7 @@ public:
         OP_POP_EAX                      = 0x58,
         PRE_OPERAND_SIZE                = 0x66,
         PRE_SSE_66                      = 0x66,
         OP_POP_EAX                      = 0x58,
         PRE_OPERAND_SIZE                = 0x66,
         PRE_SSE_66                      = 0x66,
+        OP_PUSH_Iz                      = 0x68,
         OP_IMUL_GvEvIz                  = 0x69,
         OP_GROUP1_EvIz                  = 0x81,
         OP_GROUP1_EvIb                  = 0x83,
         OP_IMUL_GvEvIz                  = 0x69,
         OP_GROUP1_EvIz                  = 0x81,
         OP_GROUP1_EvIb                  = 0x83,
@@ -292,6 +293,12 @@ public:
         m_buffer->putByte(OP_GROUP5_Ev);
         emitModRm_opm(GROUP5_OP_PUSH, base, offset);
     }
         m_buffer->putByte(OP_GROUP5_Ev);
         emitModRm_opm(GROUP5_OP_PUSH, base, offset);
     }
+
+    void pushl_i32(int imm)
+    {
+        m_buffer->putByte(OP_PUSH_Iz);
+        m_buffer->putInt(imm);
+    }
     
     void popl_r(RegisterID reg)
     {
     
     void popl_r(RegisterID reg)
     {