stubRoutines_sparc.cpp revision 0
0N/A/*
0N/A * Copyright 1997-2007 Sun Microsystems, Inc. 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 *
0N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
0N/A * CA 95054 USA or visit www.sun.com if you need additional information or
0N/A * have any questions.
0N/A *
0N/A */
0N/A
0N/A#include "incls/_precompiled.incl"
0N/A#include "incls/_stubRoutines_sparc.cpp.incl"
0N/A
0N/A// Implementation of the platform-specific part of StubRoutines - for
0N/A// a description of how to extend it, see the stubRoutines.hpp file.
0N/A
0N/A
0N/Aextern "C" {
0N/A address _flush_reg_windows(); // in .s file.
0N/A // Flush registers to stack. In case of error we will need to stack walk.
0N/A address bootstrap_flush_windows(void) {
0N/A Thread* thread = ThreadLocalStorage::get_thread_slow();
0N/A // Very early in process there is no thread.
0N/A if (thread != NULL) {
0N/A guarantee(thread->is_Java_thread(), "Not a Java thread.");
0N/A JavaThread* jt = (JavaThread*)thread;
0N/A guarantee(!jt->has_last_Java_frame(), "Must be able to flush registers!");
0N/A }
0N/A return (address)_flush_reg_windows();
0N/A };
0N/A};
0N/A
0N/Aaddress StubRoutines::Sparc::_test_stop_entry = NULL;
0N/Aaddress StubRoutines::Sparc::_stop_subroutine_entry = NULL;
0N/Aaddress StubRoutines::Sparc::_flush_callers_register_windows_entry = CAST_FROM_FN_PTR(address, bootstrap_flush_windows);
0N/A
0N/Aaddress StubRoutines::Sparc::_partial_subtype_check = NULL;
0N/A
0N/Aint StubRoutines::Sparc::_atomic_memory_operation_lock = StubRoutines::Sparc::unlocked;
0N/A
0N/Aint StubRoutines::Sparc::_v8_oop_lock_cache[StubRoutines::Sparc::nof_v8_oop_lock_cache_entries];