aboutsummaryrefslogtreecommitdiff
path: root/src/lj_udata.c
diff options
context:
space:
mode:
authorMike Pall <mike>2009-12-08 20:35:29 +0100
committerMike Pall <mike>2009-12-08 20:35:29 +0100
commit3f1f9e11f4f699ae94182d4cba158092f434a7f6 (patch)
tree88fbb674a21a1d554d4b1ee9d4ef2c5fed6a1d88 /src/lj_udata.c
parent5287b9326479ea2b7dddd6f642673e58e5a7f354 (diff)
downloadluajit-3f1f9e11f4f699ae94182d4cba158092f434a7f6.tar.gz
luajit-3f1f9e11f4f699ae94182d4cba158092f434a7f6.tar.bz2
luajit-3f1f9e11f4f699ae94182d4cba158092f434a7f6.zip
Fast forward to sync public repo.
Compile math.sinh(), math.cosh(), math.tanh() and math.random(). Compile various io.*() functions. Drive the GC forward on string allocations in the parser. Improve KNUM fuse vs. load heuristics. Add abstract C call handling to IR.
Diffstat (limited to '')
-rw-r--r--src/lj_udata.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_udata.c b/src/lj_udata.c
index 863889c9..717d483b 100644
--- a/src/lj_udata.c
+++ b/src/lj_udata.c
@@ -16,6 +16,7 @@ GCudata *lj_udata_new(lua_State *L, MSize sz, GCtab *env)
16 global_State *g = G(L); 16 global_State *g = G(L);
17 newwhite(g, ud); /* Not finalized. */ 17 newwhite(g, ud); /* Not finalized. */
18 ud->gct = ~LJ_TUDATA; 18 ud->gct = ~LJ_TUDATA;
19 ud->udtype = UDTYPE_USERDATA;
19 ud->len = sz; 20 ud->len = sz;
20 /* NOBARRIER: The GCudata is new (marked white). */ 21 /* NOBARRIER: The GCudata is new (marked white). */
21 setgcrefnull(ud->metatable); 22 setgcrefnull(ud->metatable);