* src/vm/jit/trap.c: New file.
[cacao.git] / src / vm / exceptions.h
index 933eb2c33b99989bcde574052f2d63bc1cd9105b..1aea660408cd7c400337435b3106a30d2aa823c7 100644 (file)
 #ifndef _EXCEPTIONS_H
 #define _EXCEPTIONS_H
 
-/* forward typedefs ***********************************************************/
-
 #include "config.h"
 #include "vm/types.h"
 
 #include "vm/global.h"
 
-#include "vm/jit/stacktrace.h"
-
 #include "vmcore/references.h"
 #include "vmcore/method.h"
 
 
-/* hardware-exception defines **************************************************
-
-   These defines define an internal number for the various hardware
-   exceptions.
-
-   ATTENTION: These values are also used as load-displacements on some
-   architectures. Thus, these values must NOT be aligned to 4 or
-   8-byte boundaries, since normal loads could have such offsets with
-   a base of NULL which should result in a NullPointerException.
-
-   NOTE: In exceptions_init() we have a check whether the offset of
-   java_arrayheader.data[0] is greater than the largest displacement
-   defined below.  Otherwise normal array loads/stores could trigger
-   an exception.
-
-*******************************************************************************/
-
-#define EXCEPTION_HARDWARE_NULLPOINTER              0
-#define EXCEPTION_HARDWARE_ARITHMETIC               1
-#define EXCEPTION_HARDWARE_ARRAYINDEXOUTOFBOUNDS    2
-#define EXCEPTION_HARDWARE_ARRAYSTORE               3
-
-#define EXCEPTION_HARDWARE_CLASSCAST                5
-#define EXCEPTION_HARDWARE_EXCEPTION                6
-#define EXCEPTION_HARDWARE_PATCHER                  7
-
-#define EXCEPTION_HARDWARE_COMPILER                 9
-
-#define EXCEPTION_HARDWARE_LARGEST                  9
-
-
 /* function prototypes ********************************************************/
 
-void           exceptions_init(void);
-
 java_handle_t *exceptions_get_exception(void);
 void           exceptions_set_exception(java_handle_t *o);
 void           exceptions_clear_exception(void);