Replace string.len with bytecode builtin.

This commit is contained in:
Mike Pall
2013-04-26 18:40:39 +02:00
parent 47fa9a8d8f
commit f9421f2b9f
8 changed files with 24 additions and 54 deletions

View File

@@ -32,11 +32,12 @@
#define LJLIB_MODULE_string
LJLIB_ASM(string_len) LJLIB_REC(.)
{
lj_lib_checkstr(L, 1);
return FFH_RETRY;
}
LJLIB_LUA(string_len) /*
function(s)
CHECK_str(s)
return #s
end
*/
LJLIB_ASM(string_byte) LJLIB_REC(string_range 0)
{