diff options
author | Mike Pall <mike> | 2010-09-09 12:28:17 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2010-09-09 12:28:17 +0200 |
commit | 96957a4551a464160be2c1450f39744ac8313364 (patch) | |
tree | 652fd8bc3b4c0f75173d74fb3f8f060e5af9f6b4 /src/lj_dispatch.c | |
parent | fd63b05253f11d7e436c3685827fce9b64725da6 (diff) | |
download | luajit-96957a4551a464160be2c1450f39744ac8313364.tar.gz luajit-96957a4551a464160be2c1450f39744ac8313364.tar.bz2 luajit-96957a4551a464160be2c1450f39744ac8313364.zip |
Turn some lua_State fields into 32 bit pointers.
lua_State now fits into one cache line on x64.
Diffstat (limited to 'src/lj_dispatch.c')
-rw-r--r-- | src/lj_dispatch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lj_dispatch.c b/src/lj_dispatch.c index 5ced161b..491c5aa3 100644 --- a/src/lj_dispatch.c +++ b/src/lj_dispatch.c | |||
@@ -319,7 +319,8 @@ static void callhook(lua_State *L, int event, BCLine line) | |||
319 | lj_trace_abort(g); /* Abort recording on any hook call. */ | 319 | lj_trace_abort(g); /* Abort recording on any hook call. */ |
320 | ar.event = event; | 320 | ar.event = event; |
321 | ar.currentline = line; | 321 | ar.currentline = line; |
322 | ar.i_ci = cast_int((L->base-1) - L->stack); /* Top frame, nextframe=NULL. */ | 322 | /* Top frame, nextframe = NULL. */ |
323 | ar.i_ci = cast_int((L->base-1) - tvref(L->stack)); | ||
323 | lj_state_checkstack(L, 1+LUA_MINSTACK); | 324 | lj_state_checkstack(L, 1+LUA_MINSTACK); |
324 | hook_enter(g); | 325 | hook_enter(g); |
325 | hookf(L, &ar); | 326 | hookf(L, &ar); |