Mercurial > hg > truffle
comparison src/cpu/x86/vm/frame_x86.cpp @ 3336:2e038ad0c1d0
7009361: JSR 292 Invalid value on stack on solaris-sparc with -Xcomp
Reviewed-by: kvn, twisti
author | never |
---|---|
date | Mon, 02 May 2011 18:53:37 -0700 |
parents | f95d63e2154a |
children | 167b70ff3abc |
comparison
equal
deleted
inserted
replaced
3335:49d67a090fe2 | 3336:2e038ad0c1d0 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
667 | 667 |
668 intptr_t* frame::interpreter_frame_tos_at(jint offset) const { | 668 intptr_t* frame::interpreter_frame_tos_at(jint offset) const { |
669 int index = (Interpreter::expr_offset_in_bytes(offset)/wordSize); | 669 int index = (Interpreter::expr_offset_in_bytes(offset)/wordSize); |
670 return &interpreter_frame_tos_address()[index]; | 670 return &interpreter_frame_tos_address()[index]; |
671 } | 671 } |
672 | |
673 #ifdef ASSERT | |
674 | |
675 #define DESCRIBE_FP_OFFSET(name) \ | |
676 values.describe(-1, fp() + frame::name##_offset, #name) | |
677 | |
678 void frame::describe_pd(FrameValues& values, int frame_no) { | |
679 if (is_interpreted_frame()) { | |
680 DESCRIBE_FP_OFFSET(interpreter_frame_sender_sp); | |
681 DESCRIBE_FP_OFFSET(interpreter_frame_last_sp); | |
682 DESCRIBE_FP_OFFSET(interpreter_frame_method); | |
683 DESCRIBE_FP_OFFSET(interpreter_frame_mdx); | |
684 DESCRIBE_FP_OFFSET(interpreter_frame_cache); | |
685 DESCRIBE_FP_OFFSET(interpreter_frame_locals); | |
686 DESCRIBE_FP_OFFSET(interpreter_frame_bcx); | |
687 DESCRIBE_FP_OFFSET(interpreter_frame_initial_sp); | |
688 } | |
689 | |
690 } | |
691 #endif |