[mono/mono] 762d5fb7: [jit] Add a comment.

"Zoltan Varga ([email protected])" <[email protected]> Sat, 2 Nov 2013 22:55:02 +0000
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <000001421b06d861-444756cf-b7bd-4ede-8ff6-abe327a58b5e-000000@email.amazonses.com>
   Branch: refs/heads/master
     Home: https://github.com/mono/mono
  Compare: https://github.com/mono/mono/compare/45ce641f284f...762d5fb72b4a

   Commit: 762d5fb72b4a144efa28937b1fa26d63cb4f53b2
   Author: Zoltan Varga <[email protected]> (vargaz)
     Date: 2013-11-02 22:53:47 GMT
      URL: https://github.com/mono/mono/commit/762d5fb72b4a144efa28937b1fa26d63cb4f53b2

[jit] Add a comment.

Changed paths:
  M mono/mini/mini-x86.c

Modified: mono/mini/mini-x86.c
===================================================================
@@ -712,6 +712,10 @@ static const guint32 *callconv_param_regs(MonoMethodSignature *sig)
 
 	c1 = get_call_info (NULL, NULL, caller_sig);
 	c2 = get_call_info (NULL, NULL, callee_sig);
+	/*
+	 * Tail calls with more callee stack usage than the caller cannot be supported, since
+	 * the extra stack space would be left on the stack after the tail call.
+	 */
 	res = c1->stack_usage >= c2->stack_usage;
 	callee_ret = callee_sig->ret;
 	if (callee_ret && MONO_TYPE_ISSTRUCT (callee_ret) && c2->ret.storage != ArgValuetypeInReg)


_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches