summaryrefslogtreecommitdiff
path: root/src/lj_dispatch.c
diff options
context:
space:
mode:
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;