CACAO
show.hpp
Go to the documentation of this file.
1 /* src/vm/jit/show.hpp - showing the intermediate representation
2 
3  Copyright (C) 1996-2005, 2006, 2008
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 _SHOW_HPP
27 #define _SHOW_HPP
28 
29 #include "config.h" // for ENABLE_DEBUG_FILTER
30 #include "vm/types.hpp" // for s4
31 
32 struct basicblock;
33 struct instruction;
34 struct jitdata;
35 struct methodinfo;
36 
37 /* compiler stage defines *****************************************************/
38 
39 #define SHOW_INSTRUCTIONS 0
40 #define SHOW_PARSE 1
41 #define SHOW_STACK 2
42 #define SHOW_CFG 3
43 #define SHOW_REGS 4
44 #define SHOW_CODE 5
45 
46 
47 /* function prototypes ********************************************************/
48 
49 #if !defined(NDEBUG)
50 extern const char *show_jit_type_names[];
51 extern const char show_jit_type_letters[];
52 
53 bool show_init(void);
54 
55 void show_method(jitdata *jd, int stage);
56 void show_basicblock(jitdata *jd, basicblock *bptr, int stage);
57 void show_icmd(jitdata *jd, instruction *iptr, bool deadcode, int stage);
58 void show_variable(jitdata *jd, s4 index, int stage);
59 void show_variable_array(jitdata *jd, s4 *vars, int n, int stage);
60 void show_javalocals_array(jitdata *jd, s4 *vars, int n, int stage);
61 void show_allocation(s4 type, s4 flags, s4 regoff);
62 #endif /* !defined(NDEBUG) */
63 
64 /* Debug output filtering */
65 
66 #if defined(ENABLE_DEBUG_FILTER)
67 void show_filters_init(void);
68 #define SHOW_FILTER_FLAG_VERBOSECALL_INCLUDE 0x01
69 #define SHOW_FILTER_FLAG_VERBOSECALL_EXCLUDE 0x02
70 #define SHOW_FILTER_FLAG_SHOW_METHOD 0x04
74 #endif
75 
76 #endif // _SHOW_HPP
77 
78 
79 /*
80  * These are local overrides for various environment variables in Emacs.
81  * Please do not remove this and leave it at the end of the file, where
82  * Emacs will automagically detect them.
83  * ---------------------------------------------------------------------
84  * Local variables:
85  * mode: c++
86  * indent-tabs-mode: t
87  * c-basic-offset: 4
88  * tab-width: 4
89  * End:
90  * vim:noexpandtab:sw=4:ts=4:
91  */
void show_javalocals_array(jitdata *jd, s4 *vars, int n, int stage)
Definition: show.cpp:912
std::size_t index
Definition: jit.hpp:126
#define show_method(...)
Definition: ssa2.cpp:41
bool show_init(void)
Definition: show.cpp:91
void show_basicblock(jitdata *jd, basicblock *bptr, int stage)
Definition: show.cpp:449
int show_filters_test_verbosecall_exit(methodinfo *m)
Definition: show.cpp:1597
const char * show_jit_type_names[]
Definition: show.cpp:105
void show_filters_init(void)
Definition: show.cpp:1469
int32_t s4
Definition: types.hpp:45
void show_variable_array(jitdata *jd, s4 *vars, int n, int stage)
Definition: show.cpp:907
void show_icmd(jitdata *jd, instruction *iptr, bool deadcode, int stage)
Definition: show.cpp:917
int show_filters_test_verbosecall_enter(methodinfo *m)
Definition: show.cpp:1572
void show_variable(jitdata *jd, s4 index, int stage)
Definition: show.cpp:808
void show_filters_apply(methodinfo *m)
Definition: show.cpp:1525
void show_allocation(s4 type, s4 flags, s4 regoff)
Definition: show.cpp:760
s4 flags
Definition: method.hpp:70
const char show_jit_type_letters[]
Definition: show.cpp:117