Compile string.find() for fixed string searches (no patterns).

This commit is contained in:
Mike Pall
2013-05-08 10:37:52 +02:00
parent 43de451d78
commit 87b560b3e1
3 changed files with 89 additions and 22 deletions

View File

@@ -101,6 +101,7 @@ typedef struct CCallInfo {
/* Function definitions for CALL* instructions. */
#define IRCALLDEF(_) \
_(ANY, lj_str_cmp, 2, FN, INT, CCI_NOFPRCLOBBER) \
_(ANY, lj_str_find, 4, N, P32, 0) \
_(ANY, lj_str_new, 3, S, STR, CCI_L) \
_(ANY, lj_strscan_num, 2, FN, INT, 0) \
_(ANY, lj_str_fromint, 2, FN, STR, CCI_L) \