CACAO
exceptiontable.hpp
Go to the documentation of this file.
1 /* src/vm/jit/exceptiontable.hpp - method exception table
2 
3  Copyright (C) 2007
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 EXCEPTIONTABLE_HPP_
27 #define EXCEPTIONTABLE_HPP_ 1
28 
29 #include "config.h"
30 
31 #include <stdint.h>
32 
33 #include "vm/references.hpp"
34 
35 struct jitdata;
36 struct codeinfo;
37 
38 /* forward typedefs ***********************************************************/
39 
40 struct exceptiontable_t;
42 
43 
44 /* exceptiontable_t ***********************************************************/
45 
47  int32_t length;
49 };
50 
51 
52 /* exceptiontable_entry_t *****************************************************/
53 
55  void *endpc;
56  void *startpc;
57  void *handlerpc;
59 };
60 
61 
62 /* function prototypes ********************************************************/
63 
65 void exceptiontable_free(codeinfo *code);
66 
67 #if !defined(NDEBUG)
68 void exceptiontable_print(codeinfo *code);
69 #endif
70 
71 #endif // EXCEPTIONTABLE_HPP_
72 
73 
74 /*
75  * These are local overrides for various environment variables in Emacs.
76  * Please do not remove this and leave it at the end of the file, where
77  * Emacs will automagically detect them.
78  * ---------------------------------------------------------------------
79  * Local variables:
80  * mode: c++
81  * indent-tabs-mode: t
82  * c-basic-offset: 4
83  * tab-width: 4
84  * End:
85  * vim:noexpandtab:sw=4:ts=4:
86  */
Definition: jit.hpp:126
void * handlerpc
void * startpc
void exceptiontable_free(codeinfo *code)
void * endpc
void exceptiontable_print(codeinfo *code)
void exceptiontable_create(jitdata *jd)
classref_or_classinfo catchtype
exceptiontable_entry_t * entries