Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(271)

Delta Between Two Patch Sets: src/cmd/6g/cgen.c

Issue 7391045: code review 7391045: cmd/5g, cmd/6g: fix node dump formats (Closed)
Left Patch Set: Created 12 years ago
Right Patch Set: diff -r 577ba2d07b0b https://go.googlecode.com/hg/ Created 12 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/cmd/5g/cgen.c ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 #include <u.h> 5 #include <u.h>
6 #include <libc.h> 6 #include <libc.h>
7 #include "gg.h" 7 #include "gg.h"
8 8
9 /* 9 /*
10 * generate: 10 * generate:
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 regfree(&n2); 184 regfree(&n2);
185 } 185 }
186 sudoclean(); 186 sudoclean();
187 goto ret; 187 goto ret;
188 } 188 }
189 } 189 }
190 190
191 switch(n->op) { 191 switch(n->op) {
192 default: 192 default:
193 dump("cgen", n); 193 dump("cgen", n);
194 » » fatal("cgen: unknown op %N", n); 194 » » fatal("cgen: unknown op %+hN", n);
195 break; 195 break;
196 196
197 // these call bgen to get a bool value 197 // these call bgen to get a bool value
198 case OOROR: 198 case OOROR:
199 case OANDAND: 199 case OANDAND:
200 case OEQ: 200 case OEQ:
201 case ONE: 201 case ONE:
202 case OLT: 202 case OLT:
203 case OLE: 203 case OLE:
204 case OGE: 204 case OGE:
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 regfree(&n1); 813 regfree(&n1);
814 goto ret; 814 goto ret;
815 } 815 }
816 816
817 nl = n->left; 817 nl = n->left;
818 nr = n->right; 818 nr = n->right;
819 USED(nr); 819 USED(nr);
820 820
821 switch(n->op) { 821 switch(n->op) {
822 default: 822 default:
823 » » fatal("agen: unknown op %N", n); 823 » » fatal("agen: unknown op %+hN", n);
824 break; 824 break;
825 825
826 case OCALLMETH: 826 case OCALLMETH:
827 cgen_callmeth(n, 0); 827 cgen_callmeth(n, 0);
828 cgen_aret(n, res); 828 cgen_aret(n, res);
829 break; 829 break;
830 830
831 case OCALLINTER: 831 case OCALLINTER:
832 cgen_callinter(n, res, 0); 832 cgen_callinter(n, res, 0);
833 cgen_aret(n, res); 833 cgen_aret(n, res);
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
1664 regfree(&nodl); 1664 regfree(&nodl);
1665 return 0; 1665 return 0;
1666 1666
1667 yes: 1667 yes:
1668 if(freer) 1668 if(freer)
1669 regfree(&nodr); 1669 regfree(&nodr);
1670 if(freel) 1670 if(freel)
1671 regfree(&nodl); 1671 regfree(&nodl);
1672 return 1; 1672 return 1;
1673 } 1673 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b