X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fvm%2Fjit%2Fmips%2Fmd.h;h=67bb24cdc8100045f0c891c2028abf2dc3ddacd5;hb=2ab77f5d50859fe9849586d1be0382fb61856b8f;hp=100be5e306f3b2fa006624ca76270654f7d09028;hpb=7f461fba26d7241e160c580dbca9ba1c2656e572;p=cacao.git diff --git a/src/vm/jit/mips/md.h b/src/vm/jit/mips/md.h index 100be5e30..67bb24cdc 100644 --- a/src/vm/jit/mips/md.h +++ b/src/vm/jit/mips/md.h @@ -38,6 +38,21 @@ #include "vm/vm.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 MIPS we use 8-byte stackslots. + return code->stackframesize * 8; +} + + /* md_stacktrace_get_returnaddress ********************************************* Returns the return address of the current stackframe, specified by