vframeArray.hpp revision 0
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 * 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 * 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 * 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 * 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// A vframeArray is an array used for momentarily storing off stack Java method activations 0N/A// during deoptimization. Essentially it is an array of vframes where each vframe 0N/A// data is stored off stack. This structure will never exist across a safepoint so 0N/A// there is no need to gc any oops that are stored in the structure. 0N/A// A vframeArrayElement is an element of a vframeArray. Each element 0N/A// represent an interpreter frame which will eventually be created. 0N/A int _bci;
// raw bci for this vframe 0N/A // Formerly part of deoptimizedVFrame 0N/A // Returns the on stack word size for this frame 0N/A // callee_parameters is the number of callee locals residing inside this frame 0N/A // Unpacks the element to skeletal interpreter frame 0N/A// this can be a ResourceObj if we don't save the last one... 0N/A// but it does make debugging easier even if we can't look 0N/A// at the data in each vframeElement 0N/A // Here is what a vframeArray looks like in memory 0N/A description of the original frame 0N/A _frames - number of vframes in this array 0N/A callee register save area 0N/A vframeArrayElement [ 0 ] 0N/A vframeArrayElement [_frames - 1] 0N/A int _frames;
// number of javavframes in the array (does not count any adapter) 0N/A // Tells whether index is within bounds. 0N/A // Accessores for instance variable 0N/A // Allocates a new vframe in the array and fills the array with vframe information in chunk 0N/A // Returns the owner of this vframeArray 0N/A // Accessors for next 0N/A // Accessors for unroll block 0N/A // Returns the size of the frame that got deoptimized 0N/A // Unpack the array on the stack passed in stack interval 0N/A // Deallocates monitor chunks allocated during deoptimization. 0N/A // This should be called when the array is not used anymore. 0N/A // Accessor for register map