diff options
Diffstat (limited to 'src/lj_opt_loop.c')
-rw-r--r-- | src/lj_opt_loop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lj_opt_loop.c b/src/lj_opt_loop.c index 1fbc8091..f2950fe9 100644 --- a/src/lj_opt_loop.c +++ b/src/lj_opt_loop.c | |||
@@ -170,7 +170,7 @@ static void loop_unroll(jit_State *J) | |||
170 | uint32_t nphi = 0; | 170 | uint32_t nphi = 0; |
171 | IRRef1 *subst; | 171 | IRRef1 *subst; |
172 | SnapShot *osnap, *snap; | 172 | SnapShot *osnap, *snap; |
173 | IRRef2 *loopmap; | 173 | SnapEntry *loopmap; |
174 | BCReg loopslots; | 174 | BCReg loopslots; |
175 | MSize nsnap, nsnapmap; | 175 | MSize nsnap, nsnapmap; |
176 | IRRef ins, invar, osnapref; | 176 | IRRef ins, invar, osnapref; |
@@ -198,9 +198,9 @@ static void loop_unroll(jit_State *J) | |||
198 | } | 198 | } |
199 | nsnapmap = J->cur.nsnapmap; /* Use temp. copy to avoid undo. */ | 199 | nsnapmap = J->cur.nsnapmap; /* Use temp. copy to avoid undo. */ |
200 | if (LJ_UNLIKELY(nsnapmap*2 > J->sizesnapmap)) { | 200 | if (LJ_UNLIKELY(nsnapmap*2 > J->sizesnapmap)) { |
201 | J->snapmapbuf = (IRRef2 *)lj_mem_realloc(J->L, J->snapmapbuf, | 201 | J->snapmapbuf = (SnapEntry *)lj_mem_realloc(J->L, J->snapmapbuf, |
202 | J->sizesnapmap*sizeof(IRRef2), | 202 | J->sizesnapmap*sizeof(SnapEntry), |
203 | 2*J->sizesnapmap*sizeof(IRRef2)); | 203 | 2*J->sizesnapmap*sizeof(SnapEntry)); |
204 | J->cur.snapmap = J->snapmapbuf; | 204 | J->cur.snapmap = J->snapmapbuf; |
205 | J->sizesnapmap *= 2; | 205 | J->sizesnapmap *= 2; |
206 | } | 206 | } |
@@ -223,7 +223,7 @@ static void loop_unroll(jit_State *J) | |||
223 | 223 | ||
224 | /* Copy-substitute snapshot. */ | 224 | /* Copy-substitute snapshot. */ |
225 | if (ins >= osnapref) { | 225 | if (ins >= osnapref) { |
226 | IRRef2 *nmap, *omap = &J->cur.snapmap[osnap->mapofs]; | 226 | SnapEntry *nmap, *omap = &J->cur.snapmap[osnap->mapofs]; |
227 | BCReg s, nslots; | 227 | BCReg s, nslots; |
228 | uint32_t nmapofs, nframelinks; | 228 | uint32_t nmapofs, nframelinks; |
229 | if (irt_isguard(J->guardemit)) { /* Guard inbetween? */ | 229 | if (irt_isguard(J->guardemit)) { /* Guard inbetween? */ |