src/share/vm/adlc/formssel.cpp

Print this page
rev 7060 : 8058880: Introduce identifier TEMP_DEF for effects in adl.

*** 1814,1832 **** fprintf(fp,"\n"); } //------------------------------Effect----------------------------------------- static int effect_lookup(const char *name) { ! if(!strcmp(name, "USE")) return Component::USE; ! if(!strcmp(name, "DEF")) return Component::DEF; ! if(!strcmp(name, "USE_DEF")) return Component::USE_DEF; ! if(!strcmp(name, "KILL")) return Component::KILL; ! if(!strcmp(name, "USE_KILL")) return Component::USE_KILL; ! if(!strcmp(name, "TEMP")) return Component::TEMP; ! if(!strcmp(name, "INVALID")) return Component::INVALID; ! if(!strcmp(name, "CALL")) return Component::CALL; ! assert( false,"Invalid effect name specified\n"); return Component::INVALID; } const char *Component::getUsedefName() { switch (_usedef) { --- 1814,1833 ---- fprintf(fp,"\n"); } //------------------------------Effect----------------------------------------- static int effect_lookup(const char *name) { ! if (!strcmp(name, "USE")) return Component::USE; ! if (!strcmp(name, "DEF")) return Component::DEF; ! if (!strcmp(name, "USE_DEF")) return Component::USE_DEF; ! if (!strcmp(name, "KILL")) return Component::KILL; ! if (!strcmp(name, "USE_KILL")) return Component::USE_KILL; ! if (!strcmp(name, "TEMP")) return Component::TEMP; ! if (!strcmp(name, "TEMP_DEF")) return Component::TEMP_DEF; ! if (!strcmp(name, "INVALID")) return Component::INVALID; ! if (!strcmp(name, "CALL")) return Component::CALL; ! assert(false,"Invalid effect name specified\n"); return Component::INVALID; } const char *Component::getUsedefName() { switch (_usedef) {
*** 1834,1843 **** --- 1835,1845 ---- case Component::USE: return "USE"; break; case Component::USE_DEF: return "USE_DEF"; break; case Component::USE_KILL: return "USE_KILL"; break; case Component::KILL: return "KILL"; break; case Component::TEMP: return "TEMP"; break; + case Component::TEMP_DEF: return "TEMP_DEF"; break; case Component::DEF: return "DEF"; break; case Component::CALL: return "CALL"; break; default: assert(false, "unknown effect"); } return "Undefined Use/Def info";