summaryrefslogtreecommitdiff
path: root/src/lj_tab.h
diff options
context:
space:
mode:
authorMike Pall <mike>2013-02-23 02:09:19 +0100
committerMike Pall <mike>2013-02-23 02:09:19 +0100
commit73ef845fcaf65937ad63e9cf6b681cb3e61f4504 (patch)
tree078cfae62c78ae9b9c0cfe5afe6000643ffc805d /src/lj_tab.h
parentb359ce804bb52585815fc52d7846202db4341acb (diff)
downloadluajit-73ef845fcaf65937ad63e9cf6b681cb3e61f4504.tar.gz
luajit-73ef845fcaf65937ad63e9cf6b681cb3e61f4504.tar.bz2
luajit-73ef845fcaf65937ad63e9cf6b681cb3e61f4504.zip
Add special bytecodes for builtins.
BC_ISTYPE, BC_ISNUM: fast type checks/coercions. BC_TGETR, BC_TSETR: fast rawgeti/rawseti, no type checks for table/key.
Diffstat (limited to 'src/lj_tab.h')
-rw-r--r--src/lj_tab.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_tab.h b/src/lj_tab.h
index 2787caa0..d361137c 100644
--- a/src/lj_tab.h
+++ b/src/lj_tab.h
@@ -50,7 +50,7 @@ LJ_FUNCA cTValue *lj_tab_get(lua_State *L, GCtab *t, cTValue *key);
50/* Caveat: all setters require a write barrier for the stored value. */ 50/* Caveat: all setters require a write barrier for the stored value. */
51 51
52LJ_FUNCA TValue *lj_tab_newkey(lua_State *L, GCtab *t, cTValue *key); 52LJ_FUNCA TValue *lj_tab_newkey(lua_State *L, GCtab *t, cTValue *key);
53LJ_FUNC TValue *lj_tab_setinth(lua_State *L, GCtab *t, int32_t key); 53LJ_FUNCA TValue *lj_tab_setinth(lua_State *L, GCtab *t, int32_t key);
54LJ_FUNC TValue *lj_tab_setstr(lua_State *L, GCtab *t, GCstr *key); 54LJ_FUNC TValue *lj_tab_setstr(lua_State *L, GCtab *t, GCstr *key);
55LJ_FUNC TValue *lj_tab_set(lua_State *L, GCtab *t, cTValue *key); 55LJ_FUNC TValue *lj_tab_set(lua_State *L, GCtab *t, cTValue *key);
56 56