-/* vm/jit/powerpc/asmpart.S - Java-C interface functions for powerpc
+/* src/vm/jit/powerpc/asmpart.S - Java-C interface functions for PowerPC
Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
Authors: Andreas Krall
Reinhard Grafl
+ Stefan Ring
- $Id: asmpart.S 2007 2005-03-06 23:10:47Z stefan $
+ Changes: Christian Thalinger
+
+ $Id: asmpart.S 2176 2005-04-01 13:00:34Z twisti $
*/
/* internal defines ***********************************************************/
#define asm_calljavafunction _asm_calljavafunction
+#define asm_calljavafunction_int _asm_calljavafunction_int
+
#define asm_calljavafunction2 _asm_calljavafunction2
#define asm_calljavafunction2int _asm_calljavafunction2int
#define asm_calljavafunction2long _asm_calljavafunction2long
#define builtin_throw_exception _builtin_throw_exception
#define builtin_trace_exception _builtin_trace_exception
#define class_init _class_init
-#define class_link _class_link
-#define class_load _class_load
+#define link_class _link_class
+#define load_class_bootstrap _load_class_bootstrap
#define jit_compile _jit_compile
#define new_arithmeticexception _new_arithmeticexception
#define new_arrayindexoutofboundsexception _new_arrayindexoutofboundsexception
.globl __exceptionptr
#endif
+#endif /* defined(__DARWIN__) */
+
+#if defined(__DARWIN__)
+
#define fr0 f0
#define fr1 f1
#define fr2 f2
#define fr30 f30
#define fr31 f31
-#endif /* __DARWIN__ */
+#endif /* defined(__DARWIN__) */
.text
.align 2
.globl asm_calljavafunction
+ .globl asm_calljavafunction_int
.globl asm_calljavafunction2
.globl asm_calljavafunction2int
.long 0 /* padding */
asm_calljavafunction:
+asm_calljavafunction_int:
mflr r0
stw r31,-4(r1)
/* stw r30,-8(r1)*/
stw r7,13*4(r1)
mr r3,r7 /* arg1 = exceptionclass */
- bl class_load
+ bl load_class_bootstrap
lwz r3,7*4(r1)
lwz r4,8*4(r1)
stw xptr,12*4(r1)
mr r3,r7 /* arg1 = exceptionclass */
- bl class_link
+ bl link_class
lwz r3,7*4(r1)
lwz r4,8*4(r1)