Switch CTI runtime calls to the fastcall calling convention
[WebKit-https.git] / JavaScriptCore / masm / X86Assembler.h
index 441810d..c5c1fc5 100644 (file)
@@ -1055,11 +1055,25 @@ public:
 
     void emitRestoreArgumentReference()
     {
+#if USE(FAST_CALL_CTI_ARGUMENT)
+        movl_rr(X86::esp, X86::ecx);
+#else
         movl_rm(X86::esp, 0, X86::esp);
+#endif
+    }
+
+    void emitRestoreArgumentReferenceForTrampoline()
+    {
+#if USE(FAST_CALL_CTI_ARGUMENT)
+        movl_rr(X86::esp, X86::ecx);
+        addl_i32r(4, X86::ecx);
+#else
+#endif
     }
 #else
     void emitConvertToFastCall() {};
     void emitRestoreArgumentReference() {};
+    void emitRestoreArgumentReferenceForTrampoline() {};
 #endif
 
 private: