OSDN Git Service

VisualStudioでの警告抑制とコメント付加
[heavyosecpu/HeavyOSECPU.git] / jitc.h
1 #ifndef _HDLOAD_JITC
2 #define _HDLOAD_JITC 1
3
4 /* JITCのフラグ群 */
5 #define JITC_LV_SLOWEST         0       /* デバッグ支援は何でもやる */
6 #define JITC_LV_SLOWER          1       /* エラーモジュールはレポートできるが、行番号は分からない、テストは過剰 */
7 #define JITC_LV_SAFE            2       /* とにかく止まる、場所は不明、テストは必要最小限 */
8 #define JITC_LV_FASTER          4       /* 情報は生成するがチェックをしない */
9 #define JITC_LV_FASTEST         5       /* 情報すら生成しない */
10 #define JITC_PHASE1                     0x0001
11 #define JITC_SKIPCHECK          0x0002  /* セキュリティチェックを省略する(高速危険モード) */
12 #define JITC_NOSTARTUP          0x0004
13 #define JITC_MAXLABELS          4096
14 #define PTRCTRLSIZ                      4096
15
16
17 int jitc0(unsigned char **qq, unsigned char *q1, const unsigned char *p0, const unsigned char *p1, int level, struct LabelTable *label);
18 int jitCompiler(unsigned char *dst, unsigned char *dst1, const unsigned char *src, const unsigned char *src1, const unsigned char *src0, struct LabelTable *label, int maxLabels, int level, int debugInfo1, int flags);
19 unsigned char *jitCompCallFunc(unsigned char *dst, void *func);
20 unsigned char *jitCompInit(unsigned char *dst);
21 void errorHandler(struct Regs *r);
22
23 #endif