Mercurial > hg > graal-jvmci-8
comparison src/cpu/sparc/vm/frame_sparc.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 | 3cfb240033d1 |
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. |
804 // Lesp pointer is one word lower than the top item on the stack. | 804 // Lesp pointer is one word lower than the top item on the stack. |
805 intptr_t* frame::interpreter_frame_tos_at(jint offset) const { | 805 intptr_t* frame::interpreter_frame_tos_at(jint offset) const { |
806 int index = (Interpreter::expr_offset_in_bytes(offset)/wordSize) - 1; | 806 int index = (Interpreter::expr_offset_in_bytes(offset)/wordSize) - 1; |
807 return &interpreter_frame_tos_address()[index]; | 807 return &interpreter_frame_tos_address()[index]; |
808 } | 808 } |
809 | |
810 | |
811 #ifdef ASSERT | |
812 | |
813 #define DESCRIBE_FP_OFFSET(name) \ | |
814 values.describe(-1, fp() + frame::name##_offset, #name) | |
815 | |
816 void frame::describe_pd(FrameValues& values, int frame_no) { | |
817 for (int w = 0; w < frame::register_save_words; w++) { | |
818 values.describe(frame_no, sp() + w, err_msg("register save area word %d", w), 1); | |
819 } | |
820 | |
821 if (is_interpreted_frame()) { | |
822 DESCRIBE_FP_OFFSET(interpreter_frame_d_scratch_fp); | |
823 DESCRIBE_FP_OFFSET(interpreter_frame_l_scratch_fp); | |
824 DESCRIBE_FP_OFFSET(interpreter_frame_padding); | |
825 DESCRIBE_FP_OFFSET(interpreter_frame_oop_temp); | |
826 } | |
827 | |
828 if (!is_compiled_frame()) { | |
829 if (frame::callee_aggregate_return_pointer_words != 0) { | |
830 values.describe(frame_no, sp() + frame::callee_aggregate_return_pointer_sp_offset, "callee_aggregate_return_pointer_word"); | |
831 } | |
832 for (int w = 0; w < frame::callee_register_argument_save_area_words; w++) { | |
833 values.describe(frame_no, sp() + frame::callee_register_argument_save_area_sp_offset + w, | |
834 err_msg("callee_register_argument_save_area_words %d", w)); | |
835 } | |
836 } | |
837 } | |
838 | |
839 #endif |