* Merged in twisti-branch.
[cacao.git] / src / vm / jit / powerpc64 / linux / md-abi.c
index 57da21e518ceb64300f452f2a4273a3d870e1b11..de93995d94d6ed3b0d755a332c7a5ec55805d78a 100644 (file)
@@ -22,7 +22,7 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   $Id: md-abi.c 7311 2007-02-09 13:20:27Z twisti $
+   $Id: md-abi.c 7452 2007-03-04 23:32:24Z twisti $
 
 */
 
@@ -41,6 +41,7 @@
 
 #include "vmcore/descriptor.h"
 
+
 #define CACAO_ALIGN(a)    do { if ((a) & 1) (a)++; } while (0)
 
 
@@ -62,7 +63,7 @@ s4 nregdescint[] = {
        REG_END
 };
 
-char *regs[] = {
+const char *abi_registers_integer_name[] = {
        "r0",  "r1",  "r2",  "r3",  "r4",  "r5",  "r6",  "r7",
        "r8",  "r9",  "r10", "r11", "r12", "r13", "r14", "r15",
        "r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23",
@@ -179,6 +180,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 PowerPC64 we use the same ABI for JIT method calls as for
+          native method calls. */
+
+       md_param_alloc(md);
+}
+
+
 /* md_return_alloc *************************************************************
 
    Precolor the Java Stackelement containing the Return Value, if