1 /* vm/jit/replace.h - on-stack replacement of methods
3 Copyright (C) 1996-2005, 2006 R. Grafl, A. Krall, C. Kruegel,
4 C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5 E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6 J. Wenninger, Institut f. Computersprachen - TU Wien
8 This file is part of CACAO.
10 This program is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public License as
12 published by the Free Software Foundation; either version 2, or (at
13 your option) any later version.
15 This program is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25 Contact: cacao@cacaojvm.org
27 Authors: Edwin Steiner
36 /* An `rplpoint` represents a replacement point in a compiled method */
43 #include "vm/method.h"
46 void *pc; /* machine code PC of this point */
47 rplpoint *hashlink; /* chain to next rplpoint in hash */
48 codeinfo *code; /* codeinfo this point belongs to */
49 rplpoint *target; /* target of the replacement */
51 u1 regalloc[1]; /* VARIABLE LENGTH! */
54 /* An `executionsstate` represents the state of a thread as it reached */
55 /* an replacement point or is about to enter one. */
57 #define MD_EXCSTATE_NREGS 32
58 #define MD_EXCSTATE_NCALLEESAVED 8
60 struct executionstate {
62 u8 regs[MD_EXCSTATE_NREGS];
63 u8 savedregs[MD_EXCSTATE_NCALLEESAVED]; /* or read from frame */
67 java_objectheader *locked; /* XXX maybe just leave it in frame? */
70 /* `sourcestate` will probably only be used for debugging */
83 * These are local overrides for various environment variables in Emacs.
84 * Please do not remove this and leave it at the end of the file, where
85 * Emacs will automagically detect them.
86 * ---------------------------------------------------------------------
93 * vim:noexpandtab:sw=4:ts=4: