diff options
author | Mike Pall <mike> | 2011-11-14 14:15:57 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-11-14 14:18:25 +0100 |
commit | 71d00a56dbab6c29c0346093dbe530d7b7608be4 (patch) | |
tree | 5e28e19b4d2f20168d5ee0e4fe500b1e2b233c1c /src/lj_meta.c | |
parent | e9eb4fdb4a08baaa2d9190187a6c38d5b3f8b091 (diff) | |
download | luajit-71d00a56dbab6c29c0346093dbe530d7b7608be4.tar.gz luajit-71d00a56dbab6c29c0346093dbe530d7b7608be4.tar.bz2 luajit-71d00a56dbab6c29c0346093dbe530d7b7608be4.zip |
FFI: Add callback support (for x86/x64).
Diffstat (limited to 'src/lj_meta.c')
-rw-r--r-- | src/lj_meta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_meta.c b/src/lj_meta.c index 278d2d34..f258e3e1 100644 --- a/src/lj_meta.c +++ b/src/lj_meta.c | |||
@@ -77,7 +77,7 @@ int lj_meta_tailcall(lua_State *L, cTValue *tv) | |||
77 | TValue *top = L->top; | 77 | TValue *top = L->top; |
78 | const BCIns *pc = frame_pc(base-1); /* Preserve old PC from frame. */ | 78 | const BCIns *pc = frame_pc(base-1); /* Preserve old PC from frame. */ |
79 | copyTV(L, base-1, tv); /* Replace frame with new object. */ | 79 | copyTV(L, base-1, tv); /* Replace frame with new object. */ |
80 | top->u64 = 0; | 80 | top->u32.lo = LJ_CONT_TAILCALL; |
81 | setframe_pc(top, pc); | 81 | setframe_pc(top, pc); |
82 | setframe_gc(top+1, obj2gco(L)); /* Dummy frame object. */ | 82 | setframe_gc(top+1, obj2gco(L)); /* Dummy frame object. */ |
83 | setframe_ftsz(top+1, (int)((char *)(top+2) - (char *)base) + FRAME_CONT); | 83 | setframe_ftsz(top+1, (int)((char *)(top+2) - (char *)base) + FRAME_CONT); |