summaryrefslogtreecommitdiff
path: root/src/lj_dispatch.c
diff options
context:
space:
mode:
authorMike Pall <mike>2011-05-09 18:16:39 +0200
committerMike Pall <mike>2011-05-09 20:46:58 +0200
commit67d3ac9b19caba68069e83d1e3e9de14994d66cd (patch)
treead1b075e255dcaabebfea8b6e5e70aa4a3eb63d2 /src/lj_dispatch.c
parent28e87d33e931661e8118a25b293213938a9e0af4 (diff)
downloadluajit-67d3ac9b19caba68069e83d1e3e9de14994d66cd.tar.gz
luajit-67d3ac9b19caba68069e83d1e3e9de14994d66cd.tar.bz2
luajit-67d3ac9b19caba68069e83d1e3e9de14994d66cd.zip
Fix some portability issues with the JIT compiler.
Diffstat (limited to 'src/lj_dispatch.c')
-rw-r--r--src/lj_dispatch.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lj_dispatch.c b/src/lj_dispatch.c
index 42027e7d..425eeaa2 100644
--- a/src/lj_dispatch.c
+++ b/src/lj_dispatch.c
@@ -211,10 +211,15 @@ int luaJIT_setmode(lua_State *L, int idx, int mode)
211 } else { 211 } else {
212 if (!(mode & LUAJIT_MODE_ON)) 212 if (!(mode & LUAJIT_MODE_ON))
213 G2J(g)->flags &= ~(uint32_t)JIT_F_ON; 213 G2J(g)->flags &= ~(uint32_t)JIT_F_ON;
214#if LJ_TARGET_X86ORX64
214 else if ((G2J(g)->flags & JIT_F_SSE2)) 215 else if ((G2J(g)->flags & JIT_F_SSE2))
215 G2J(g)->flags |= (uint32_t)JIT_F_ON; 216 G2J(g)->flags |= (uint32_t)JIT_F_ON;
216 else 217 else
217 return 0; /* Don't turn on JIT compiler without SSE2 support. */ 218 return 0; /* Don't turn on JIT compiler without SSE2 support. */
219#else
220 else
221 G2J(g)->flags |= (uint32_t)JIT_F_ON;
222#endif
218 lj_dispatch_update(g); 223 lj_dispatch_update(g);
219 } 224 }
220 break; 225 break;