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

Delta Between Two Patch Sets: src/cmd/8g/ggen.c

Issue 4528116: code review 4528116: gc: typecheck the whole tree before walking. preparati... (Closed)
Left Patch Set: diff -r de48d4bcd09d https://go.googlecode.com/hg/ Created 13 years, 10 months ago
Right Patch Set: diff -r c04039685c35 https://go.googlecode.com/hg/ Created 13 years, 10 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/cmd/8g/Makefile ('k') | src/cmd/gc/dcl.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
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 #undef EXTERN 5 #undef EXTERN
6 #define EXTERN 6 #define EXTERN
7 #include "gg.h" 7 #include "gg.h"
8 #include "opt.h" 8 #include "opt.h"
9 9
10 void 10 void
11 defframe(Prog *ptxt) { 11 defframe(Prog *ptxt)
rsc 2011/06/02 16:25:29 brace on next line
lvd 2011/06/02 16:30:51 gaaa done
12 {
12 // fill in argument size 13 // fill in argument size
13 ptxt->to.offset2 = rnd(curfn->type->argwid, widthptr); 14 ptxt->to.offset2 = rnd(curfn->type->argwid, widthptr);
14 15
15 // fill in final stack size 16 // fill in final stack size
16 if(stksize > maxstksize) 17 if(stksize > maxstksize)
17 maxstksize = stksize; 18 maxstksize = stksize;
18 ptxt->to.offset = rnd(maxstksize+maxarg, widthptr); 19 ptxt->to.offset = rnd(maxstksize+maxarg, widthptr);
19 maxstksize = 0; 20 maxstksize = 0;
20 } 21 }
21 22
(...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 } 1054 }
1054 1055
1055 if(!sleasy(res)) { 1056 if(!sleasy(res)) {
1056 cgen(&nres, res); 1057 cgen(&nres, res);
1057 } 1058 }
1058 return 1; 1059 return 1;
1059 1060
1060 no: 1061 no:
1061 return 0; 1062 return 0;
1062 } 1063 }
LEFTRIGHT

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