summaryrefslogtreecommitdiff
path: root/src/lj_asm.c
diff options
context:
space:
mode:
authorMike Pall <mike>2012-07-11 16:48:52 +0200
committerMike Pall <mike>2012-07-11 16:48:52 +0200
commit53e28d7678c1c97bf3bae280abf3fce82f935e92 (patch)
tree4c29be991e9cd10a1d6085a1fb72f64800bdd788 /src/lj_asm.c
parent24fa85760cb29c68ff726c97c1ab67a3c0e1bd68 (diff)
downloadluajit-53e28d7678c1c97bf3bae280abf3fce82f935e92.tar.gz
luajit-53e28d7678c1c97bf3bae280abf3fce82f935e92.tar.bz2
luajit-53e28d7678c1c97bf3bae280abf3fce82f935e92.zip
Limit number of parent links handled by backend.
Diffstat (limited to '')
-rw-r--r--src/lj_asm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c
index 5ad14003..2e6b1745 100644
--- a/src/lj_asm.c
+++ b/src/lj_asm.c
@@ -1576,6 +1576,8 @@ static void asm_setup_regsp(ASMState *as)
1576 if (as->parent) { 1576 if (as->parent) {
1577 uint16_t *p; 1577 uint16_t *p;
1578 lastir = lj_snap_regspmap(as->parent, as->J->exitno, ir); 1578 lastir = lj_snap_regspmap(as->parent, as->J->exitno, ir);
1579 if (lastir - ir > LJ_MAX_JSLOTS)
1580 lj_trace_err(as->J, LJ_TRERR_NYICOAL);
1579 as->stopins = (IRRef)((lastir-1) - as->ir); 1581 as->stopins = (IRRef)((lastir-1) - as->ir);
1580 for (p = as->parentmap; ir < lastir; ir++) { 1582 for (p = as->parentmap; ir < lastir; ir++) {
1581 RegSP rs = ir->prev; 1583 RegSP rs = ir->prev;