rframe.hpp revision 0
2362N/A * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved. 1941N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1941N/A * This code is free software; you can redistribute it and/or modify it 1941N/A * under the terms of the GNU General Public License version 2 only, as 1941N/A * published by the Free Software Foundation. 1941N/A * This code is distributed in the hope that it will be useful, but WITHOUT 1941N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1941N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1941N/A * version 2 for more details (a copy is included in the LICENSE file that 1941N/A * You should have received a copy of the GNU General Public License version 1941N/A * 2 along with this work; if not, write to the Free Software Foundation, 1941N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 2362N/A * CA 95054 USA or visit www.sun.com if you need additional information or 1941N/A// rframes ("recompiler frames") decorate stack frames with some extra information 1941N/A// needed by the recompiler. The recompiler views the stack (at the time of recompilation) 1941N/A const int _num;
// stack frame number (0 = most recent) 1941N/A // (i.e., how often was this frame called) 1941N/A int _distance;
// recompilation search "distance" (measured in # of interpreted frames) 1941N/A virtual void init() = 0;
// compute invocations, loopDepth, etc. 1941N/A virtual int cost()
const = 0;
// estimated inlining cost (size) 1941N/A// treat deoptimized frames as interpreted