aboutsummaryrefslogtreecommitdiff
path: root/src/lj_ffrecord.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lj_ffrecord.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lj_ffrecord.c b/src/lj_ffrecord.c
index de74a3ec..69614d92 100644
--- a/src/lj_ffrecord.c
+++ b/src/lj_ffrecord.c
@@ -1024,6 +1024,16 @@ static void LJ_FASTCALL recff_table_new(jit_State *J, RecordFFData *rd)
1024 UNUSED(rd); 1024 UNUSED(rd);
1025} 1025}
1026 1026
1027static void LJ_FASTCALL recff_table_clear(jit_State *J, RecordFFData *rd)
1028{
1029 TRef tr = J->base[0];
1030 if (tref_istab(tr)) {
1031 rd->nres = 0;
1032 lj_ir_call(J, IRCALL_lj_tab_clear, tr);
1033 J->needsnap = 1;
1034 } /* else: Interpreter will throw. */
1035}
1036
1027/* -- I/O library fast functions ------------------------------------------ */ 1037/* -- I/O library fast functions ------------------------------------------ */
1028 1038
1029/* Get FILE* for I/O function. Any I/O error aborts recording, so there's 1039/* Get FILE* for I/O function. Any I/O error aborts recording, so there's