aboutsummaryrefslogtreecommitdiff
path: root/src/lj_meta.c
diff options
context:
space:
mode:
authorMike Pall <mike>2014-12-20 00:59:16 +0100
committerMike Pall <mike>2014-12-20 01:48:00 +0100
commit5cb6e2eaaf860045daa30208b21ae6aa88a0503c (patch)
treeb0b4c4edfc1a9a0c3f51efbd3c36580447eaa509 /src/lj_meta.c
parent6e9145a882ea70fe438d59959ac4e65481fe5e85 (diff)
downloadluajit-5cb6e2eaaf860045daa30208b21ae6aa88a0503c.tar.gz
luajit-5cb6e2eaaf860045daa30208b21ae6aa88a0503c.tar.bz2
luajit-5cb6e2eaaf860045daa30208b21ae6aa88a0503c.zip
Cleanup of TValue setters. No functional changes.
Diffstat (limited to 'src/lj_meta.c')
-rw-r--r--src/lj_meta.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_meta.c b/src/lj_meta.c
index 9c11dd86..520c3763 100644
--- a/src/lj_meta.c
+++ b/src/lj_meta.c
@@ -83,7 +83,7 @@ int lj_meta_tailcall(lua_State *L, cTValue *tv)
83 copyTV(L, base-1, tv); /* Replace frame with new object. */ 83 copyTV(L, base-1, tv); /* Replace frame with new object. */
84 top->u32.lo = LJ_CONT_TAILCALL; 84 top->u32.lo = LJ_CONT_TAILCALL;
85 setframe_pc(top, pc); 85 setframe_pc(top, pc);
86 setframe_gc(top+1, obj2gco(L)); /* Dummy frame object. */ 86 setframe_gc(top+1, obj2gco(L), LJ_TTHREAD); /* Dummy frame object. */
87 setframe_ftsz(top+1, ((char *)(top+2) - (char *)base) + FRAME_CONT); 87 setframe_ftsz(top+1, ((char *)(top+2) - (char *)base) + FRAME_CONT);
88 L->base = L->top = top+2; 88 L->base = L->top = top+2;
89 /* 89 /*
@@ -355,7 +355,7 @@ TValue * LJ_FASTCALL lj_meta_equal_cd(lua_State *L, BCIns ins)
355 o2 = &mref(curr_proto(L)->k, cTValue)[bc_d(ins)]; 355 o2 = &mref(curr_proto(L)->k, cTValue)[bc_d(ins)];
356 } else { 356 } else {
357 lua_assert(op == BC_ISEQP); 357 lua_assert(op == BC_ISEQP);
358 setitype(&tv, ~bc_d(ins)); 358 setpriV(&tv, ~bc_d(ins));
359 o2 = &tv; 359 o2 = &tv;
360 } 360 }
361 mo = lj_meta_lookup(L, o1mm, MM_eq); 361 mo = lj_meta_lookup(L, o1mm, MM_eq);