comparison src/share/vm/adlc/formssel.cpp @ 475:284d0af00d53

6771309: debugging AD files is difficult without #line directives in generated code Summary: more and better #line and #define directives in the generated code; ADLC itself accepts #line directives Reviewed-by: never, kvn
author jrose
date Tue, 09 Dec 2008 12:41:26 -0800
parents a1980da045cc
children 3b5ac9e7e6ea
comparison
equal deleted inserted replaced
474:7a018855d2f0 475:284d0af00d53
1100 // no predicates means they are identical 1100 // no predicates means they are identical
1101 return true; 1101 return true;
1102 } 1102 }
1103 if( pred1 != NULL && pred2 != NULL ) { 1103 if( pred1 != NULL && pred2 != NULL ) {
1104 // compare the predicates 1104 // compare the predicates
1105 const char *str1 = pred1->_pred; 1105 if (ADLParser::equivalent_expressions(pred1->_pred, pred2->_pred)) {
1106 const char *str2 = pred2->_pred;
1107 if( (str1 == NULL && str2 == NULL)
1108 || (str1 != NULL && str2 != NULL && strcmp(str1,str2) == 0) ) {
1109 return true; 1106 return true;
1110 } 1107 }
1111 } 1108 }
1112 1109
1113 return false; 1110 return false;