diff options
author | Mike Pall <mike> | 2011-04-10 18:00:08 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2011-04-10 18:00:08 +0200 |
commit | d85b7e636e076f10ce7a4ad9a7d2cf00d760956e (patch) | |
tree | 9ba8f06c855139d7bbdeb6db1b500555fadcbeff /src | |
parent | f69524f7f1cf7a78ce81790d4058c4350a136eb4 (diff) | |
download | luajit-d85b7e636e076f10ce7a4ad9a7d2cf00d760956e.tar.gz luajit-d85b7e636e076f10ce7a4ad9a7d2cf00d760956e.tar.bz2 luajit-d85b7e636e076f10ce7a4ad9a7d2cf00d760956e.zip |
Fix recording of JLOOP with higher maxslot.
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_record.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_record.c b/src/lj_record.c index 15152b96..c89c51be 100644 --- a/src/lj_record.c +++ b/src/lj_record.c | |||
@@ -483,7 +483,7 @@ static LoopEvent rec_iterl(jit_State *J, const BCIns iterins) | |||
483 | /* Record LOOP/JLOOP. Now, that was easy. */ | 483 | /* Record LOOP/JLOOP. Now, that was easy. */ |
484 | static LoopEvent rec_loop(jit_State *J, BCReg ra) | 484 | static LoopEvent rec_loop(jit_State *J, BCReg ra) |
485 | { | 485 | { |
486 | J->maxslot = ra; | 486 | if (ra < J->maxslot) J->maxslot = ra; |
487 | J->pc++; | 487 | J->pc++; |
488 | return LOOPEV_ENTER; | 488 | return LOOPEV_ENTER; |
489 | } | 489 | } |