twisti@1572: /* twisti@1572: * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved. twisti@1572: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. twisti@1572: * twisti@1572: * This code is free software; you can redistribute it and/or modify it twisti@1572: * under the terms of the GNU General Public License version 2 only, as twisti@1572: * published by the Free Software Foundation. twisti@1572: * twisti@1572: * This code is distributed in the hope that it will be useful, but WITHOUT twisti@1572: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or twisti@1572: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License twisti@1572: * version 2 for more details (a copy is included in the LICENSE file that twisti@1572: * accompanied this code). twisti@1572: * twisti@1572: * You should have received a copy of the GNU General Public License version twisti@1572: * 2 along with this work; if not, write to the Free Software Foundation, twisti@1572: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. twisti@1572: * twisti@1572: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, twisti@1572: * CA 95054 USA or visit www.sun.com if you need additional information or twisti@1572: * have any questions. twisti@1572: * twisti@1572: */ twisti@1572: twisti@1572: #include "incls/_precompiled.incl" twisti@1572: #include "incls/_ciCPCache.cpp.incl" twisti@1572: twisti@1572: // ciCPCache twisti@1572: twisti@1572: // ------------------------------------------------------------------ twisti@1572: // ciCPCache::get_f1_offset twisti@1572: size_t ciCPCache::get_f1_offset(int index) { twisti@1572: // Calculate the offset from the constantPoolCacheOop to the f1 twisti@1572: // field. twisti@1572: ByteSize f1_offset = twisti@1572: constantPoolCacheOopDesc::entry_offset(index) + twisti@1572: ConstantPoolCacheEntry::f1_offset(); twisti@1572: twisti@1572: return in_bytes(f1_offset); twisti@1572: } twisti@1572: twisti@1573: twisti@1572: // ------------------------------------------------------------------ twisti@1572: // ciCPCache::print twisti@1572: // twisti@1572: // Print debugging information about the cache. twisti@1572: void ciCPCache::print() { twisti@1572: Unimplemented(); twisti@1572: }