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

Delta Between Two Patch Sets: src/cmd/gc/print.c

Issue 4634073: code review 4634073: gc: Escape analysis. (Closed)
Left Patch Set: diff -r 2afebca6d967 https://go.googlecode.com/hg/ Created 13 years, 8 months ago
Right Patch Set: diff -r adfa9f5cca40 https://go.googlecode.com/hg/ Created 13 years, 7 months 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/gc/lex.c ('k') | src/cmd/gc/reflect.c » ('j') | 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 "go.h" 5 #include "go.h"
6 6
7 enum 7 enum
8 { 8 {
9 PFIXME = 0, 9 PFIXME = 0,
10 }; 10 };
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 switch(n->op) { 132 switch(n->op) {
133 default: 133 default:
134 bad: 134 bad:
135 fmtprint(f, "(node %O)", n->op); 135 fmtprint(f, "(node %O)", n->op);
136 break; 136 break;
137 137
138 case OPAREN: 138 case OPAREN:
139 fmtprint(f, "(%#N)", n->left); 139 fmtprint(f, "(%#N)", n->left);
140 break; 140 break;
141 141
142 case ODDDARG:
143 fmtprint(f, "... argument");
144 break;
145
142 case OREGISTER: 146 case OREGISTER:
143 fmtprint(f, "%R", n->val.u.reg); 147 fmtprint(f, "%R", n->val.u.reg);
144 break; 148 break;
145 149
146 case OLITERAL: 150 case OLITERAL:
147 if(n->sym != S) { 151 if(n->sym != S) {
148 fmtprint(f, "%S", n->sym); 152 fmtprint(f, "%S", n->sym);
149 break; 153 break;
150 } 154 }
151 switch(n->val.ctype) { 155 switch(n->val.ctype) {
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 break; 475 break;
472 476
473 case ODEFER: 477 case ODEFER:
474 fmtprint(f, "defer %#N", n->left); 478 fmtprint(f, "defer %#N", n->left);
475 break; 479 break;
476 } 480 }
477 481
478 if(prec > nprec) 482 if(prec > nprec)
479 fmtprint(f, ")"); 483 fmtprint(f, ")");
480 } 484 }
LEFTRIGHT

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