Mercurial > hg > graal-jvmci-8
comparison src/share/vm/adlc/output_h.cpp @ 9078:705ef39fcaa9
8006016: Memory leak at hotspot/src/share/vm/adlc/output_c.cpp
Reviewed-by: kvn, roland
Contributed-by: niclas.adlertz@oracle.com
author | neliasso |
---|---|
date | Fri, 05 Apr 2013 11:09:43 +0200 |
parents | d336b3173277 |
children | c9ccd7b85f20 7373e44fa207 |
comparison
equal
deleted
inserted
replaced
9055:dcdeb150988c | 9078:705ef39fcaa9 |
---|---|
2067 void declaration() { } | 2067 void declaration() { } |
2068 void definition() { fprintf(_cpp, "enum MachOperands {\n"); } | 2068 void definition() { fprintf(_cpp, "enum MachOperands {\n"); } |
2069 void closing() { fprintf(_cpp, " _LAST_MACH_OPER\n"); | 2069 void closing() { fprintf(_cpp, " _LAST_MACH_OPER\n"); |
2070 OutputMap::closing(); | 2070 OutputMap::closing(); |
2071 } | 2071 } |
2072 void map(OpClassForm &opc) { fprintf(_cpp, " %s", _AD.machOperEnum(opc._ident) ); } | 2072 void map(OpClassForm &opc) { |
2073 void map(OperandForm &oper) { fprintf(_cpp, " %s", _AD.machOperEnum(oper._ident) ); } | 2073 const char* opc_ident_to_upper = _AD.machOperEnum(opc._ident); |
2074 void map(char *name) { fprintf(_cpp, " %s", _AD.machOperEnum(name)); } | 2074 fprintf(_cpp, " %s", opc_ident_to_upper); |
2075 delete[] opc_ident_to_upper; | |
2076 } | |
2077 void map(OperandForm &oper) { | |
2078 const char* oper_ident_to_upper = _AD.machOperEnum(oper._ident); | |
2079 fprintf(_cpp, " %s", oper_ident_to_upper); | |
2080 delete[] oper_ident_to_upper; | |
2081 } | |
2082 void map(char *name) { | |
2083 const char* name_to_upper = _AD.machOperEnum(name); | |
2084 fprintf(_cpp, " %s", name_to_upper); | |
2085 delete[] name_to_upper; | |
2086 } | |
2075 | 2087 |
2076 bool do_instructions() { return false; } | 2088 bool do_instructions() { return false; } |
2077 void map(InstructForm &inst){ assert( false, "ShouldNotCallThis()"); } | 2089 void map(InstructForm &inst){ assert( false, "ShouldNotCallThis()"); } |
2078 }; | 2090 }; |
2079 | 2091 |