diff options
author | Mike Pall <mike> | 2014-11-28 20:21:35 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2014-11-28 20:21:35 +0100 |
commit | 8cc89332ffa3b65a43f6e730df18e282bb66ea41 (patch) | |
tree | 47c2d8110c12739e338542e4d4b984ccb0fd4453 /src | |
parent | 42ed4e53a525cdd763b3707f6c41d5bd9ec92689 (diff) | |
parent | c75c62b489ebd0b4f9eb35af3b7d5a071939721e (diff) | |
download | luajit-8cc89332ffa3b65a43f6e730df18e282bb66ea41.tar.gz luajit-8cc89332ffa3b65a43f6e730df18e282bb66ea41.tar.bz2 luajit-8cc89332ffa3b65a43f6e730df18e282bb66ea41.zip |
Merge branch 'master' into v2.1
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_asm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c index 71d9a881..0b6738da 100644 --- a/src/lj_asm.c +++ b/src/lj_asm.c | |||
@@ -1721,6 +1721,11 @@ static void asm_head_side(ASMState *as) | |||
1721 | int pass3 = 0; | 1721 | int pass3 = 0; |
1722 | IRRef i; | 1722 | IRRef i; |
1723 | 1723 | ||
1724 | if (as->snapno && as->topslot > as->parent->topslot) { | ||
1725 | /* Force snap #0 alloc to prevent register overwrite in stack check. */ | ||
1726 | as->snapno = 0; | ||
1727 | asm_snap_alloc(as); | ||
1728 | } | ||
1724 | allow = asm_head_side_base(as, irp, allow); | 1729 | allow = asm_head_side_base(as, irp, allow); |
1725 | 1730 | ||
1726 | /* Scan all parent SLOADs and collect register dependencies. */ | 1731 | /* Scan all parent SLOADs and collect register dependencies. */ |