Mercurial > hg > graal-jvmci-8
diff src/share/vm/runtime/sharedRuntime.cpp @ 10390:28e5aed7f3a6
8009981: nashorn tests fail with -XX:+VerifyStack
Summary: nmethod::preserve_callee_argument_oops() must take appendix into account.
Reviewed-by: kvn, twisti
author | roland |
---|---|
date | Fri, 31 May 2013 14:40:26 +0200 |
parents | f0bc60565ba8 |
children | 836a62f43af9 ef57c43512d6 b5c8a61d7fa0 |
line wrap: on
line diff
--- a/src/share/vm/runtime/sharedRuntime.cpp Thu May 30 08:37:08 2013 -0700 +++ b/src/share/vm/runtime/sharedRuntime.cpp Fri May 31 14:40:26 2013 +0200 @@ -2726,7 +2726,7 @@ return regs.first(); } -VMRegPair *SharedRuntime::find_callee_arguments(Symbol* sig, bool has_receiver, int* arg_size) { +VMRegPair *SharedRuntime::find_callee_arguments(Symbol* sig, bool has_receiver, bool has_appendix, int* arg_size) { // This method is returning a data structure allocating as a // ResourceObject, so do not put any ResourceMarks in here. char *s = sig->as_C_string(); @@ -2770,6 +2770,11 @@ default : ShouldNotReachHere(); } } + + if (has_appendix) { + sig_bt[cnt++] = T_OBJECT; + } + assert( cnt < 256, "grow table size" ); int comp_args_on_stack;