[jit] Allocate the thunks area next to the method code if the backend can compute...
[mono.git] / mono / mini / seq-points.h
index f01d8be5e4754d3f98908d6c95803ba29c1cdd39..3c0677a61c709a0f6ceec68e793dd288f40efaa3 100644 (file)
@@ -5,42 +5,7 @@
 #ifndef __MONO_SEQ_POINTS_H__
 #define __MONO_SEQ_POINTS_H__
 
-#define MONO_SEQ_POINT_FLAG_NONEMPTY_STACK 1
-
-/* IL offsets used to mark the sequence points belonging to method entry/exit events */
-#define METHOD_ENTRY_IL_OFFSET -1
-#define METHOD_EXIT_IL_OFFSET -2
-
-/* Native offset used to mark seq points in dead code */
-#define SEQ_POINT_NATIVE_OFFSET_DEAD_CODE -1
-
-typedef struct {
-       int il_offset, native_offset, flags;
-       /* Offset of indexes of successor sequence points on the compressed buffer */
-       int next_offset;
-       /* Number of entries in next */
-       int next_len;
-} SeqPoint;
-
-typedef struct MonoSeqPointInfo{
-       GByteArray* array;
-       GByteArray* next_array;
-       /* When has_debug_data is set to false only il and native deltas are saved */
-       gboolean has_debug_data;
-       /* true when the array data allocation/deallocation is managed by this structure 
-        * when this is false the arrays are read only
-        */
-       gboolean alloc_arrays;
-} MonoSeqPointInfo;
-
-typedef struct {
-       SeqPoint seq_point;
-       guint8* ptr;
-       MonoSeqPointInfo* info;
-} SeqPointIterator;
-
-void
-seq_point_info_free (gpointer info);
+#include <mono/metadata/seq-points-data.h>
 
 void
 mono_save_seq_point_info (MonoCompile *cfg);
@@ -57,22 +22,10 @@ find_prev_seq_point_for_native_offset (MonoDomain *domain, MonoMethod *method, g
 gboolean
 find_seq_point (MonoDomain *domain, MonoMethod *method, gint32 il_offset, MonoSeqPointInfo **info, SeqPoint *seq_point);
 
-gboolean
-seq_point_iterator_next (SeqPointIterator* it);
-
 void
-seq_point_iterator_init (SeqPointIterator* it, MonoSeqPointInfo* info);
+bb_deduplicate_op_il_seq_points (MonoCompile *cfg, MonoBasicBlock *bb);
 
 void
-seq_point_init_next (MonoSeqPointInfo* info, SeqPoint sp, SeqPoint* next);
-
-int
-seq_point_info_write (MonoSeqPointInfo* info, guint8* buffer);
-
-int
-seq_point_info_read (MonoSeqPointInfo** info, guint8* buffer, gboolean copy);
-
-int
-seq_point_info_write_size (MonoSeqPointInfo* info);
+mono_image_get_aot_seq_point_path (MonoImage *image, char **str);
 
 #endif /* __MONO_SEQ_POINTS_H__ */
\ No newline at end of file