X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fvm%2Fjit%2Fpowerpc64%2Fmd.h;h=85c46b109598fa1b569f34fe01644c713c2bc8bb;hb=2ab77f5d50859fe9849586d1be0382fb61856b8f;hp=b70509f86130e849b1ef14677104dc89303e045c;hpb=7f461fba26d7241e160c580dbca9ba1c2656e572;p=cacao.git diff --git a/src/vm/jit/powerpc64/md.h b/src/vm/jit/powerpc64/md.h index b70509f86..85c46b109 100644 --- a/src/vm/jit/powerpc64/md.h +++ b/src/vm/jit/powerpc64/md.h @@ -40,6 +40,21 @@ #include "vm/jit/jit.hpp" +/** + * Returns the size (in bytes) of the current stackframe, specified by + * the passed codeinfo structure. + */ +inline static int32_t md_stacktrace_get_framesize(codeinfo* code) +{ + // Check for the asm_vm_call_method special case. + if (code == NULL) + return 0; + + // On PowerPC64 we use 8-byte stackslots. + return code->stackframesize * 8; +} + + /* md_stacktrace_get_returnaddress ********************************************* Returns the return address of the current stackframe, specified by