CACAO
patcher.hpp
Go to the documentation of this file.
1 /* src/vm/jit/i386/patcher.hpp - architecture specific code patching stuff
2 
3  Copyright (C) 1996-2017
4  CACAOVM - Verein zur Foerderung der freien virtuellen Maschine CACAO
5 
6  This file is part of CACAO.
7 
8  This program is free software; you can redistribute it and/or
9  modify it under the terms of the GNU General Public License as
10  published by the Free Software Foundation; either version 2, or (at
11  your option) any later version.
12 
13  This program is distributed in the hope that it will be useful, but
14  WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program; if not, write to the Free Software
20  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21  02110-1301, USA.
22 
23 */
24 
25 
26 #ifndef _PATCHER_HPP
27 #define _PATCHER_HPP
28 
30 
31 /* function prototypes ********************************************************/
32 
33 
35 #define PATCHER_getfield (functionptr) patcher_getfield
36 
38 #define PATCHER_putfield (functionptr) patcher_putfield
39 
41 #define PATCHER_putfieldconst (functionptr) patcher_putfieldconst
42 
43 bool patcher_aconst(patchref_t *pr);
44 #define PATCHER_aconst (functionptr) patcher_aconst
45 
47 #define PATCHER_builtin_multianewarray (functionptr) patcher_builtin_multianewarray
48 
50 #define PATCHER_builtin_arraycheckcast (functionptr) patcher_builtin_arraycheckcast
51 
53 #define PATCHER_checkcast_instanceof_flags (functionptr) patcher_checkcast_instanceof_flags
54 
56 #define PATCHER_checkcast_class (functionptr) patcher_checkcast_class
57 
59 #define PATCHER_instanceof_class (functionptr) patcher_instanceof_class
60 
61 #endif // _PATCHER_HPP
62 
63 
64 /*
65  * These are local overrides for various environment variables in Emacs.
66  * Please do not remove this and leave it at the end of the file, where
67  * Emacs will automagically detect them.
68  * ---------------------------------------------------------------------
69  * Local variables:
70  * mode: c++
71  * indent-tabs-mode: t
72  * c-basic-offset: 4
73  * tab-width: 4
74  * End:
75  * vim:noexpandtab:sw=4:ts=4:
76  */
bool patcher_instanceof_class(patchref_t *pr)
Definition: patcher.cpp:693
bool patcher_putfield(patchref_t *pr)
Definition: patcher.cpp:177
bool patcher_aconst(patchref_t *pr)
Definition: patcher.cpp:281
bool patcher_putfieldconst(patchref_t *pr)
Definition: patcher.cpp:229
bool patcher_checkcast_instanceof_flags(patchref_t *pr)
Definition: patcher.cpp:528
bool patcher_builtin_arraycheckcast(patchref_t *pr)
Definition: patcher.cpp:363
bool patcher_builtin_multianewarray(patchref_t *pr)
Definition: patcher.cpp:324
bool patcher_getfield(patchref_t *pr)
Definition: patcher.cpp:131
bool patcher_checkcast_class(patchref_t *pr)
Definition: patcher.cpp:656