Mercurial > hg > graal-jvmci-8
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/adlc/archDesc.cpp Mon Dec 08 17:15:02 2008 -0800 +++ b/src/share/vm/adlc/archDesc.cpp Tue Dec 09 12:41:26 2008 -0800 @@ -140,7 +140,7 @@ if ((rch == _rchild) || (rch && _rchild && !strcmp(rch, _rchild))) { char * predStr = get_pred(); char * prStr = pr?pr->_pred:NULL; - if ((prStr == predStr) || (prStr && predStr && !strcmp(prStr, predStr))) { + if (ADLParser::equivalent_expressions(prStr, predStr)) { return true; } }