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

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

Issue 160200044: [dev.power64] code review 160200044: build: merge default into dev.power64 (Closed)
Patch Set: diff -r be0c14f62257b42485019e9e1db23cf40d2e249f https://code.google.com/p/go Created 10 years, 4 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/8g/peep.c ('k') | src/cmd/8l/asm.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/reg.c 1 // Derived from Inferno utils/6c/reg.c
2 // http://code.google.com/p/inferno-os/source/browse/utils/6c/reg.c 2 // http://code.google.com/p/inferno-os/source/browse/utils/6c/reg.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 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1161 break; 1161 break;
1162 if(!(r->refbehind.b[z] & bb)) 1162 if(!(r->refbehind.b[z] & bb))
1163 break; 1163 break;
1164 } 1164 }
1165 } 1165 }
1166 1166
1167 void 1167 void
1168 addreg(Adr *a, int rn) 1168 addreg(Adr *a, int rn)
1169 { 1169 {
1170 a->sym = nil; 1170 a->sym = nil;
1171 a->node = nil;
1171 a->offset = 0; 1172 a->offset = 0;
1172 a->type = rn; 1173 a->type = rn;
1173 1174
1174 ostats.ncvtreg++; 1175 ostats.ncvtreg++;
1175 } 1176 }
1176 1177
1177 int32 1178 int32
1178 RtoB(int r) 1179 RtoB(int r)
1179 { 1180 {
1180 1181
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 } 1275 }
1275 // r1 = r->s1; 1276 // r1 = r->s1;
1276 // if(r1 != nil) { 1277 // if(r1 != nil) {
1277 // print(" succ:"); 1278 // print(" succ:");
1278 // for(; r1 != R; r1 = r1->s1) 1279 // for(; r1 != R; r1 = r1->s1)
1279 // print(" %.4ud", (int)r1->prog->pc); 1280 // print(" %.4ud", (int)r1->prog->pc);
1280 // print("\n"); 1281 // print("\n");
1281 // } 1282 // }
1282 } 1283 }
1283 } 1284 }
OLDNEW
« no previous file with comments | « src/cmd/8g/peep.c ('k') | src/cmd/8l/asm.c » ('j') | no next file with comments »

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