mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Merge branch 'master' into v2.1
This commit is contained in:
commit
6e623b9914
@ -1875,7 +1875,8 @@ static void build_subroutines(BuildCtx *ctx)
|
|||||||
|
|
|
|
||||||
|.ffunc string_char // Only handle the 1-arg case here.
|
|.ffunc string_char // Only handle the 1-arg case here.
|
||||||
| ffgccheck
|
| ffgccheck
|
||||||
|. lw CARG3, HI(BASE)
|
|. nop
|
||||||
|
| lw CARG3, HI(BASE)
|
||||||
| lw CARG1, LO(BASE)
|
| lw CARG1, LO(BASE)
|
||||||
| li TMP1, 255
|
| li TMP1, 255
|
||||||
| xori AT, NARGS8:RC, 8 // Exactly 1 argument.
|
| xori AT, NARGS8:RC, 8 // Exactly 1 argument.
|
||||||
@ -1902,7 +1903,8 @@ static void build_subroutines(BuildCtx *ctx)
|
|||||||
|
|
|
|
||||||
|.ffunc string_sub
|
|.ffunc string_sub
|
||||||
| ffgccheck
|
| ffgccheck
|
||||||
|. addiu AT, NARGS8:RC, -16
|
|. nop
|
||||||
|
| addiu AT, NARGS8:RC, -16
|
||||||
| lw CARG3, 16+HI(BASE)
|
| lw CARG3, 16+HI(BASE)
|
||||||
| lw TMP0, HI(BASE)
|
| lw TMP0, HI(BASE)
|
||||||
| lw STR:CARG1, LO(BASE)
|
| lw STR:CARG1, LO(BASE)
|
||||||
@ -1946,7 +1948,8 @@ static void build_subroutines(BuildCtx *ctx)
|
|||||||
|.macro ffstring_op, name
|
|.macro ffstring_op, name
|
||||||
| .ffunc string_ .. name
|
| .ffunc string_ .. name
|
||||||
| ffgccheck
|
| ffgccheck
|
||||||
|. lw CARG3, HI(BASE)
|
|. nop
|
||||||
|
| lw CARG3, HI(BASE)
|
||||||
| lw STR:CARG2, LO(BASE)
|
| lw STR:CARG2, LO(BASE)
|
||||||
| beqz NARGS8:RC, ->fff_fallback
|
| beqz NARGS8:RC, ->fff_fallback
|
||||||
|. li AT, LJ_TSTR
|
|. li AT, LJ_TSTR
|
||||||
|
Loading…
Reference in New Issue
Block a user