Skip to content

Commit

Permalink
Merge branch 'master' into v2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Pall committed Mar 30, 2016
2 parents 892887e + 62af101 commit 6e623b9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/vm_mips.dasc
Original file line number Diff line number Diff line change
Expand Up @@ -1875,7 +1875,8 @@ static void build_subroutines(BuildCtx *ctx)
|
|.ffunc string_char // Only handle the 1-arg case here.
| ffgccheck
|. lw CARG3, HI(BASE)
|. nop
| lw CARG3, HI(BASE)
| lw CARG1, LO(BASE)
| li TMP1, 255
| xori AT, NARGS8:RC, 8 // Exactly 1 argument.
Expand All @@ -1902,7 +1903,8 @@ static void build_subroutines(BuildCtx *ctx)
|
|.ffunc string_sub
| ffgccheck
|. addiu AT, NARGS8:RC, -16
|. nop
| addiu AT, NARGS8:RC, -16
| lw CARG3, 16+HI(BASE)
| lw TMP0, HI(BASE)
| lw STR:CARG1, LO(BASE)
Expand Down Expand Up @@ -1946,7 +1948,8 @@ static void build_subroutines(BuildCtx *ctx)
|.macro ffstring_op, name
| .ffunc string_ .. name
| ffgccheck
|. lw CARG3, HI(BASE)
|. nop
| lw CARG3, HI(BASE)
| lw STR:CARG2, LO(BASE)
| beqz NARGS8:RC, ->fff_fallback
|. li AT, LJ_TSTR
Expand Down

0 comments on commit 6e623b9

Please sign in to comment.