Left: | ||
Right: |
LEFT | RIGHT |
---|---|
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 Loading... | |
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 } |
LEFT | RIGHT |