aboutsummaryrefslogtreecommitdiff
path: root/src/lj_crecord.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lj_crecord.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lj_crecord.c b/src/lj_crecord.c
index b0de5423..aa4c5842 100644
--- a/src/lj_crecord.c
+++ b/src/lj_crecord.c
@@ -1913,6 +1913,15 @@ void LJ_FASTCALL lj_crecord_tonumber(jit_State *J, RecordFFData *rd)
1913 } 1913 }
1914} 1914}
1915 1915
1916TRef lj_crecord_loadiu64(jit_State *J, TRef tr, cTValue *o)
1917{
1918 CTypeID id = argv2cdata(J, tr, o)->ctypeid;
1919 if (!(id == CTID_INT64 || id == CTID_UINT64))
1920 lj_trace_err(J, LJ_TRERR_BADTYPE);
1921 return emitir(IRT(IR_FLOAD, id == CTID_INT64 ? IRT_I64 : IRT_U64), tr,
1922 IRFL_CDATA_INT64);
1923}
1924
1916#undef IR 1925#undef IR
1917#undef emitir 1926#undef emitir
1918#undef emitconv 1927#undef emitconv