DEADSOFTWARE

JVM: Реализованы VAR-параметры
[dsw-obn.git] / src / backends / jvm / generator-jvm.h
index 67abe236f652824352f3311ed9b27b50bbfe1fca..242aa70b10f8f2b17b21926b06de0e9192b7021c 100644 (file)
@@ -30,7 +30,9 @@ enum gen_storage
        JVM_STORAGE_UNKNOWN,
        JVM_STORAGE_REGISTER,
        JVM_STORAGE_STATIC,
-       JVM_STORAGE_FIELD
+       JVM_STORAGE_FIELD,
+       JVM_STORAGE_LOCAL,
+       JVM_STORAGE_VARPTR
 };
 
 
@@ -46,14 +48,20 @@ 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;
+       gen_type_t * type;
        int reg;
        char * full_name;
-       char * desc;
 };
 
 struct gen_context_t
@@ -66,3 +74,8 @@ struct gen_module_t
        struct gen_class * class;
        int rec_id;
 };
+
+struct gen_label_t
+{
+       int id;
+};