OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |