* src/vm/jit/i386/md-abi.c (regs): Renamed to
authortwisti <none@none>
Mon, 12 Feb 2007 00:34:51 +0000 (00:34 +0000)
committertwisti <none@none>
Mon, 12 Feb 2007 00:34:51 +0000 (00:34 +0000)
abi_registers_integer_name.
(md_param_alloc_native): New function.

src/vm/jit/i386/md-abi.c

index 1c6f5976885988cfac20f285c42e4c8b567df9f6..1355a26c49b6917e38e8258a77ff892d108c9c43 100644 (file)
@@ -22,7 +22,7 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   $Id: md-abi.c 7255 2007-01-29 21:39:38Z twisti $
+   $Id: md-abi.c 7334 2007-02-12 00:34:51Z twisti $
 
 */
 
@@ -46,12 +46,11 @@ s4 nregdescint[] = {
     REG_END
 };
 
-char *regs[] = {
+const char *abi_registers_integer_name[] = {
        "eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi"
 };
 
 
-
 s4 nregdescfloat[] = {
  /* rounding problems with callee saved registers */
  /* REG_SAV, REG_SAV, REG_SAV, REG_SAV, REG_TMP, REG_TMP, REG_RES, REG_RES, */
@@ -99,6 +98,21 @@ void md_param_alloc(methoddesc *md)
 }
 
 
+/* md_param_alloc_native *******************************************************
+
+   Pre-allocate arguments according the native ABI.
+
+*******************************************************************************/
+
+void md_param_alloc_native(methoddesc *md)
+{
+       /* On i386 we use the same ABI for JIT method calls as for native
+          method calls. */
+
+       md_param_alloc(md);
+}
+
+
 /* md_return_alloc *************************************************************
 
    No straight forward precoloring of the Java Stackelement containing