1 /* src/vm/jit/patcher.h - code patching functions
3 Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
4 R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
5 C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
6 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., 59 Temple Place - Suite 330, Boston, MA
25 Contact: cacao@complang.tuwien.ac.at
27 Authors: Christian Thalinger
31 $Id: patcher.h 2373 2005-04-25 14:10:56Z twisti $
39 #include "vm/global.h"
42 /* function prototypes ********************************************************/
44 bool patcher_get_putstatic(u1 *sp);
45 #define PATCHER_get_putstatic (functionptr) patcher_get_putstatic
49 bool patcher_getfield(u1 *sp);
50 #define PATCHER_getfield (functionptr) patcher_getfield
52 bool patcher_putfield(u1 *sp);
53 #define PATCHER_putfield (functionptr) patcher_putfield
57 bool patcher_get_putfield(u1 *sp);
58 #define PATCHER_get_putfield (functionptr) patcher_get_putfield
60 #endif /* defined(__I386__) */
62 bool patcher_builtin_new(u1 *sp);
63 #define PATCHER_builtin_new (functionptr) patcher_builtin_new
65 bool patcher_builtin_newarray(u1 *sp);
66 #define PATCHER_builtin_newarray (functionptr) patcher_builtin_newarray
68 bool patcher_builtin_multianewarray(u1 *sp);
69 #define PATCHER_builtin_multianewarray (functionptr) patcher_builtin_multianewarray
71 bool patcher_builtin_checkarraycast(u1 *sp);
72 #define PATCHER_builtin_checkarraycast (functionptr) patcher_builtin_checkarraycast
74 bool patcher_builtin_arrayinstanceof(u1 *sp);
75 #define PATCHER_builtin_arrayinstanceof (functionptr) patcher_builtin_arrayinstanceof
77 bool patcher_invokestatic_special(u1 *sp);
78 #define PATCHER_invokestatic_special (functionptr) patcher_invokestatic_special
80 bool patcher_invokevirtual(u1 *sp);
81 #define PATCHER_invokevirtual (functionptr) patcher_invokevirtual
83 bool patcher_invokeinterface(u1 *sp);
84 #define PATCHER_invokeinterface (functionptr) patcher_invokeinterface
86 bool patcher_checkcast_instanceof_flags(u1 *sp);
87 #define PATCHER_checkcast_instanceof_flags (functionptr) patcher_checkcast_instanceof_flags
89 bool patcher_checkcast_instanceof_interface(u1 *sp);
90 #define PATCHER_checkcast_instanceof_interface (functionptr) patcher_checkcast_instanceof_interface
92 bool patcher_checkcast_class(u1 *sp);
93 #define PATCHER_checkcast_class (functionptr) patcher_checkcast_class
95 bool patcher_instanceof_class(u1 *sp);
96 #define PATCHER_instanceof_class (functionptr) patcher_instanceof_class
98 bool patcher_clinit(u1 *sp);
99 #define PATCHER_clinit (functionptr) patcher_clinit
101 #endif /* _PATCHER_H */
105 * These are local overrides for various environment variables in Emacs.
106 * Please do not remove this and leave it at the end of the file, where
107 * Emacs will automagically detect them.
108 * ---------------------------------------------------------------------
111 * indent-tabs-mode: t
115 * vim:noexpandtab:sw=4:ts=4: