aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2014-01-20 16:59:04 +0100
committerMike Pall <mike>2014-01-20 16:59:04 +0100
commitbcd27038fc59057213b7f844c7ae8621d3dff641 (patch)
treeb6ed85f6b47d57b41651a527a19e760ef2c1543a /src
parent4e78b9bb126a3c4a3d27770664452039419d339b (diff)
parent92475419e5cc5e61c5feb6a0fe549b1fc4a9d7cf (diff)
downloadluajit-bcd27038fc59057213b7f844c7ae8621d3dff641.tar.gz
luajit-bcd27038fc59057213b7f844c7ae8621d3dff641.tar.bz2
luajit-bcd27038fc59057213b7f844c7ae8621d3dff641.zip
Merge branch 'master' into v2.1
Diffstat (limited to 'src')
-rw-r--r--src/Makefile4
-rw-r--r--src/lib_string.c2
-rw-r--r--src/lj_cconv.h2
-rw-r--r--src/lj_record.c2
4 files changed, 6 insertions, 4 deletions
diff --git a/src/Makefile b/src/Makefile
index 6eed3b91..722efc33 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -292,7 +292,9 @@ ifeq (Darwin,$(TARGET_SYS))
292 endif 292 endif
293 TARGET_STRIP+= -x 293 TARGET_STRIP+= -x
294 TARGET_AR+= 2>/dev/null 294 TARGET_AR+= 2>/dev/null
295 TARGET_XCFLAGS+= -fno-stack-protector 295 ifeq (,$(shell $(TARGET_CC) -o /dev/null -c -x c /dev/null -fno-stack-protector 2>/dev/null || echo 1))
296 TARGET_XCFLAGS+= -fno-stack-protector
297 endif
296 TARGET_XSHLDFLAGS= -dynamiclib -single_module -undefined dynamic_lookup -fPIC 298 TARGET_XSHLDFLAGS= -dynamiclib -single_module -undefined dynamic_lookup -fPIC
297 TARGET_DYNXLDOPTS= 299 TARGET_DYNXLDOPTS=
298 TARGET_XSHLDFLAGS+= -install_name $(TARGET_DYLIBPATH) -compatibility_version $(MAJVER).$(MINVER) -current_version $(MAJVER).$(MINVER).$(RELVER) 300 TARGET_XSHLDFLAGS+= -install_name $(TARGET_DYLIBPATH) -compatibility_version $(MAJVER).$(MINVER) -current_version $(MAJVER).$(MINVER).$(RELVER)
diff --git a/src/lib_string.c b/src/lib_string.c
index feaa7697..6ca7a76b 100644
--- a/src/lib_string.c
+++ b/src/lib_string.c
@@ -65,7 +65,7 @@ LJLIB_ASM(string_byte) LJLIB_REC(string_range 0)
65LJLIB_ASM(string_char) LJLIB_REC(.) 65LJLIB_ASM(string_char) LJLIB_REC(.)
66{ 66{
67 int i, nargs = (int)(L->top - L->base); 67 int i, nargs = (int)(L->top - L->base);
68 char *buf = lj_buf_tmp(L, (size_t)nargs); 68 char *buf = lj_buf_tmp(L, (MSize)nargs);
69 for (i = 1; i <= nargs; i++) { 69 for (i = 1; i <= nargs; i++) {
70 int32_t k = lj_lib_checkint(L, i); 70 int32_t k = lj_lib_checkint(L, i);
71 if (!checku8(k)) 71 if (!checku8(k))
diff --git a/src/lj_cconv.h b/src/lj_cconv.h
index 9b96957c..17e0f050 100644
--- a/src/lj_cconv.h
+++ b/src/lj_cconv.h
@@ -29,7 +29,7 @@ static LJ_AINLINE uint32_t cconv_idx(CTInfo info)
29 uint32_t idx = ((info >> 26) & 15u); /* Dispatch bits. */ 29 uint32_t idx = ((info >> 26) & 15u); /* Dispatch bits. */
30 lua_assert(ctype_type(info) <= CT_MAYCONVERT); 30 lua_assert(ctype_type(info) <= CT_MAYCONVERT);
31#if LJ_64 31#if LJ_64
32 idx = ((U64x(f436fff5,fff7f021) >> 4*idx) & 15u); 32 idx = ((uint32_t)(U64x(f436fff5,fff7f021) >> 4*idx) & 15u);
33#else 33#else
34 idx = (((idx < 8 ? 0xfff7f021u : 0xf436fff5) >> 4*(idx & 7u)) & 15u); 34 idx = (((idx < 8 ? 0xfff7f021u : 0xf436fff5) >> 4*(idx & 7u)) & 15u);
35#endif 35#endif
diff --git a/src/lj_record.c b/src/lj_record.c
index 725b4aaf..650763fe 100644
--- a/src/lj_record.c
+++ b/src/lj_record.c
@@ -2305,7 +2305,7 @@ static const BCIns *rec_setup_root(jit_State *J)
2305 case BC_RET0: 2305 case BC_RET0:
2306 case BC_RET1: 2306 case BC_RET1:
2307 /* No bytecode range check for down-recursive root traces. */ 2307 /* No bytecode range check for down-recursive root traces. */
2308 J->maxslot = ra + bc_d(ins); 2308 J->maxslot = ra + bc_d(ins) - 1;
2309 break; 2309 break;
2310 case BC_FUNCF: 2310 case BC_FUNCF:
2311 /* No bytecode range check for root traces started by a hot call. */ 2311 /* No bytecode range check for root traces started by a hot call. */