comparison src/share/vm/adlc/archDesc.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 c1345e85f901
children 0fbdb4381b99 dbbe28fc66b5
comparison
equal deleted inserted replaced
474:7a018855d2f0 475:284d0af00d53
138 if ((res == _resultStr) || (res && _resultStr && !strcmp(res, _resultStr))) { 138 if ((res == _resultStr) || (res && _resultStr && !strcmp(res, _resultStr))) {
139 if ((lch == _lchild) || (lch && _lchild && !strcmp(lch, _lchild))) { 139 if ((lch == _lchild) || (lch && _lchild && !strcmp(lch, _lchild))) {
140 if ((rch == _rchild) || (rch && _rchild && !strcmp(rch, _rchild))) { 140 if ((rch == _rchild) || (rch && _rchild && !strcmp(rch, _rchild))) {
141 char * predStr = get_pred(); 141 char * predStr = get_pred();
142 char * prStr = pr?pr->_pred:NULL; 142 char * prStr = pr?pr->_pred:NULL;
143 if ((prStr == predStr) || (prStr && predStr && !strcmp(prStr, predStr))) { 143 if (ADLParser::equivalent_expressions(prStr, predStr)) {
144 return true; 144 return true;
145 } 145 }
146 } 146 }
147 } 147 }
148 } 148 }