index 67abe236f652824352f3311ed9b27b50bbfe1fca..00c3e50757a2d58a1628dc49110182193c11b899 100644 (file)
enum gen_storage
{
JVM_STORAGE_UNKNOWN,
enum gen_storage
{
JVM_STORAGE_UNKNOWN,
+ /* Обыкновенные Java-переменные */
JVM_STORAGE_REGISTER,
JVM_STORAGE_STATIC,
JVM_STORAGE_REGISTER,
JVM_STORAGE_STATIC,
- JVM_STORAGE_FIELD
+ JVM_STORAGE_FIELD,
+ JVM_STORAGE_PARAM,
+ /* Переменные на которые можно делать указатели без кеширования */
+ JVM_STORAGE_REGISTER_VAR,
+ JVM_STORAGE_STATIC_VAR,
+ JVM_STORAGE_FIELD_VAR,
+ JVM_STORAGE_PARAM_VAR,
+ JVM_STORAGE_PARAM_VARPTR,
+ /* Локальные переменные доступные локальным функциям */
+ JVM_STORAGE_FRAME,
+ JVM_STORAGE_FRAME_VAR,
+ JVM_STORAGE_FRAME_PARAM,
+ JVM_STORAGE_FRAME_PARAM_VAR,
+ JVM_STORAGE_FRAME_PARAM_VARPTR
};
struct gen_proc_t
{
};
struct gen_proc_t
{
+ char * full_name;
int label_id;
struct gen_register_file * rf;
struct gen_stack * stack;
struct gen_class * class;
int label_id;
struct gen_register_file * rf;
struct gen_stack * stack;
struct gen_class * class;
+
+ int level;
+ int max_frames;
+ int * reg_frame;
+ gen_var_t * frame_v;
};
struct gen_type_t
{
int rec_id;
struct gen_class * class;
};
struct gen_type_t
{
int rec_id;
struct gen_class * class;
+
+ bool wide;
+ char prefix;
+ char postfix;
+ char * desc;
+ int cell_size;
};
struct gen_var_t
{
enum gen_storage storage;
};
struct gen_var_t
{
enum gen_storage storage;
+ gen_type_t * type;
int reg;
int reg;
+ int level;
+
+ char * name;
char * full_name;
char * full_name;
- char * desc;
+ gen_proc_t * p;
+ struct gen_class * class;
};
struct gen_context_t
};
struct gen_context_t
struct gen_class * class;
int rec_id;
};
struct gen_class * class;
int rec_id;
};
+
+struct gen_label_t
+{
+ int id;
+};