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

Side by Side Diff: src/cmd/8g/peep.c

Issue 11406044: code review 11406044: runtime: use funcdata to supply garbage collection info... (Closed)
Patch Set: diff -r beabb2116694 https://code.google.com/p/go/ Created 11 years, 8 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:
View unified diff | Download patch
« no previous file with comments | « src/cmd/8c/reg.c ('k') | src/cmd/8g/reg.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Derived from Inferno utils/6c/peep.c 1 // Derived from Inferno utils/6c/peep.c
2 // http://code.google.com/p/inferno-os/source/browse/utils/6c/peep.c 2 // http://code.google.com/p/inferno-os/source/browse/utils/6c/peep.c
3 // 3 //
4 // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. 4 // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved.
5 // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) 5 // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net)
6 // Portions Copyright © 1997-1999 Vita Nuova Limited 6 // Portions Copyright © 1997-1999 Vita Nuova Limited
7 // Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuov a.com) 7 // Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuov a.com)
8 // Portions Copyright © 2004,2006 Bruce Ellis 8 // Portions Copyright © 2004,2006 Bruce Ellis
9 // Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net) 9 // Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net)
10 // Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others 10 // Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 r2->s1 = r1; 119 r2->s1 = r1;
120 r1->p1 = r2; 120 r1->p1 = r2;
121 121
122 r = r2; 122 r = r2;
123 t++; 123 t++;
124 124
125 case ADATA: 125 case ADATA:
126 case AGLOBL: 126 case AGLOBL:
127 case ANAME: 127 case ANAME:
128 case ASIGNAME: 128 case ASIGNAME:
129 case ALOCALS:
130 case ATYPE: 129 case ATYPE:
131 case ANPTRS:
132 case APTRS:
133 p = p->link; 130 p = p->link;
134 } 131 }
135 } 132 }
136 133
137 // byte, word arithmetic elimination. 134 // byte, word arithmetic elimination.
138 elimshortmov(r); 135 elimshortmov(r);
139 136
140 // constant propagation 137 // constant propagation
141 // find MOV $con,R followed by 138 // find MOV $con,R followed by
142 // another MOV $con,R without 139 // another MOV $con,R without
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 if(p->from.offset == p0->from.offset) 1026 if(p->from.offset == p0->from.offset)
1030 if(p->from.scale == p0->from.scale) 1027 if(p->from.scale == p0->from.scale)
1031 if(p->from.u.vval == p0->from.u.vval) 1028 if(p->from.u.vval == p0->from.u.vval)
1032 if(p->from.index == p0->from.index) { 1029 if(p->from.index == p0->from.index) {
1033 excise(r); 1030 excise(r);
1034 goto loop; 1031 goto loop;
1035 } 1032 }
1036 break; 1033 break;
1037 } 1034 }
1038 } 1035 }
OLDNEW
« no previous file with comments | « src/cmd/8c/reg.c ('k') | src/cmd/8g/reg.c » ('j') | no next file with comments »

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