icode: add IAllocateInstance, ICheckInstance and IInitAttributes
[nit.git] / src / analysis / icode_dump.nit
index 2b31da6..e93d866 100644 (file)
@@ -265,6 +265,13 @@ redef class ICall
        end
 end
 
+redef class IAllocateInstance
+       redef fun dump_intern(icd)
+       do
+               return "ALLOCATE NEW_{stype}"
+       end
+end
+
 redef class IStaticCall
        redef fun dump_intern(icd)
        do
@@ -272,6 +279,20 @@ redef class IStaticCall
        end
 end
 
+redef class ICheckInstance
+       redef fun dump_intern(icd)
+       do
+               return "CHECK_INSTANCE CHECKNEW_{stype}({icd.register(expr)})"
+       end
+end
+
+redef class IInitAttributes
+       redef fun dump_intern(icd)
+       do
+               return "INIT_ATTRIBUTES INIT_ATTRIBUTES_{stype}({icd.register(expr)})"
+       end
+end
+
 redef class IClosCall
        redef fun dump_intern(icd)
        do