aboutsummaryrefslogtreecommitdiff
path: root/src/lj_meta.c
diff options
context:
space:
mode:
authorMike Pall <mike>2010-04-26 00:28:44 +0200
committerMike Pall <mike>2010-04-26 00:28:44 +0200
commit28cfccf748adbadf959e7d654bd1c7a58bf9d150 (patch)
tree9a91518bcdd24f95ed3e9108e7ea0494a4eeb9b0 /src/lj_meta.c
parent41379126a2e41179068800f5ab791cc84f740228 (diff)
downloadluajit-28cfccf748adbadf959e7d654bd1c7a58bf9d150.tar.gz
luajit-28cfccf748adbadf959e7d654bd1c7a58bf9d150.tar.bz2
luajit-28cfccf748adbadf959e7d654bd1c7a58bf9d150.zip
Turn TValue setter macros into inline functions.
Diffstat (limited to 'src/lj_meta.c')
-rw-r--r--src/lj_meta.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lj_meta.c b/src/lj_meta.c
index dc6756c6..f443e372 100644
--- a/src/lj_meta.c
+++ b/src/lj_meta.c
@@ -226,9 +226,9 @@ TValue *lj_meta_cat(lua_State *L, TValue *top, int left)
226 ** after mm: [...][CAT stack ...] <--push-- [result] 226 ** after mm: [...][CAT stack ...] <--push-- [result]
227 ** next step: [...][CAT stack .............] 227 ** next step: [...][CAT stack .............]
228 */ 228 */
229 copyTV(L, top+2, top) /* Careful with the order of stack copies! */ 229 copyTV(L, top+2, top); /* Careful with the order of stack copies! */
230 copyTV(L, top+1, top-1) 230 copyTV(L, top+1, top-1);
231 copyTV(L, top, mo) 231 copyTV(L, top, mo);
232 setcont(top-1, lj_cont_cat); 232 setcont(top-1, lj_cont_cat);
233 return top+1; /* Trigger metamethod call. */ 233 return top+1; /* Trigger metamethod call. */
234 } else if (strV(top)->len == 0) { /* Shortcut. */ 234 } else if (strV(top)->len == 0) { /* Shortcut. */
@@ -295,8 +295,8 @@ TValue *lj_meta_equal(lua_State *L, GCobj *o1, GCobj *o2, int ne)
295 setcont(top, ne ? lj_cont_condf : lj_cont_condt); 295 setcont(top, ne ? lj_cont_condf : lj_cont_condt);
296 copyTV(L, top+1, mo); 296 copyTV(L, top+1, mo);
297 it = ~(uint32_t)o1->gch.gct; 297 it = ~(uint32_t)o1->gch.gct;
298 setgcV(L, top+2, &o1->gch, it); 298 setgcV(L, top+2, o1, it);
299 setgcV(L, top+3, &o2->gch, it); 299 setgcV(L, top+3, o2, it);
300 return top+2; /* Trigger metamethod call. */ 300 return top+2; /* Trigger metamethod call. */
301 } 301 }
302 return cast(TValue *, (intptr_t)ne); 302 return cast(TValue *, (intptr_t)ne);