0N/A/*
1879N/A * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
0N/A * published by the Free Software Foundation.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A * or visit www.oracle.com if you need additional information or have any
1472N/A * questions.
0N/A *
0N/A */
0N/A
1879N/A#ifndef OS_CPU_LINUX_X86_VM_THREAD_LINUX_X86_HPP
1879N/A#define OS_CPU_LINUX_X86_VM_THREAD_LINUX_X86_HPP
1879N/A
0N/A private:
0N/A void pd_initialize() {
0N/A _anchor.clear();
0N/A }
0N/A
0N/A frame pd_last_frame() {
0N/A assert(has_last_Java_frame(), "must have last_Java_sp() when suspended");
0N/A if (_anchor.last_Java_pc() != NULL) {
0N/A return frame(_anchor.last_Java_sp(), _anchor.last_Java_fp(), _anchor.last_Java_pc());
0N/A } else {
0N/A // This will pick up pc from sp
0N/A return frame(_anchor.last_Java_sp(), _anchor.last_Java_fp());
0N/A }
0N/A }
0N/A
0N/A public:
0N/A // Mutators are highly dangerous....
0N/A intptr_t* last_Java_fp() { return _anchor.last_Java_fp(); }
0N/A void set_last_Java_fp(intptr_t* fp) { _anchor.set_last_Java_fp(fp); }
0N/A
0N/A void set_base_of_stack_pointer(intptr_t* base_sp) {
0N/A }
0N/A
0N/A static ByteSize last_Java_fp_offset() {
0N/A return byte_offset_of(JavaThread, _anchor) + JavaFrameAnchor::last_Java_fp_offset();
0N/A }
0N/A
0N/A intptr_t* base_of_stack_pointer() {
0N/A return NULL;
0N/A }
0N/A void record_base_of_stack_pointer() {
0N/A }
0N/A
0N/A bool pd_get_top_frame_for_signal_handler(frame* fr_addr, void* ucontext,
0N/A bool isInJava);
0N/A
4141N/A bool pd_get_top_frame_for_profiling(frame* fr_addr, void* ucontext, bool isInJava);
4141N/Aprivate:
4141N/A bool pd_get_top_frame(frame* fr_addr, void* ucontext, bool isInJava);
4141N/Apublic:
4141N/A
0N/A // These routines are only used on cpu architectures that
0N/A // have separate register stacks (Itanium).
0N/A static bool register_stack_overflow() { return false; }
0N/A static void enable_register_stack_guard() {}
0N/A static void disable_register_stack_guard() {}
1879N/A
1879N/A#endif // OS_CPU_LINUX_X86_VM_THREAD_LINUX_X86_HPP