summaryrefslogtreecommitdiff
path: root/src/lj_ffrecord.c
diff options
context:
space:
mode:
authorMike Pall <mike>2013-04-26 18:40:39 +0200
committerMike Pall <mike>2013-04-26 18:40:39 +0200
commitf9421f2b9f0959bc80eff064a0f13970c4e35cc1 (patch)
tree68e44457ede555d214cab3532386b1fa85736184 /src/lj_ffrecord.c
parent47fa9a8d8ff7123e160abfc18c88589bbb7f4b58 (diff)
downloadluajit-f9421f2b9f0959bc80eff064a0f13970c4e35cc1.tar.gz
luajit-f9421f2b9f0959bc80eff064a0f13970c4e35cc1.tar.bz2
luajit-f9421f2b9f0959bc80eff064a0f13970c4e35cc1.zip
Replace string.len with bytecode builtin.
Diffstat (limited to 'src/lj_ffrecord.c')
-rw-r--r--src/lj_ffrecord.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lj_ffrecord.c b/src/lj_ffrecord.c
index a6ce2df7..1560d3f5 100644
--- a/src/lj_ffrecord.c
+++ b/src/lj_ffrecord.c
@@ -646,12 +646,6 @@ static void LJ_FASTCALL recff_bit_shift(jit_State *J, RecordFFData *rd)
646 646
647/* -- String library fast functions --------------------------------------- */ 647/* -- String library fast functions --------------------------------------- */
648 648
649static void LJ_FASTCALL recff_string_len(jit_State *J, RecordFFData *rd)
650{
651 J->base[0] = emitir(IRTI(IR_FLOAD), lj_ir_tostr(J, J->base[0]), IRFL_STR_LEN);
652 UNUSED(rd);
653}
654
655/* Handle string.byte (rd->data = 0) and string.sub (rd->data = 1). */ 649/* Handle string.byte (rd->data = 0) and string.sub (rd->data = 1). */
656static void LJ_FASTCALL recff_string_range(jit_State *J, RecordFFData *rd) 650static void LJ_FASTCALL recff_string_range(jit_State *J, RecordFFData *rd)
657{ 651{