瀏覽代碼

Merge branch 'master' into v2.1

Mike Pall 9 年之前
父節點
當前提交
6e623b9914
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      src/vm_mips.dasc

+ 6 - 3
src/vm_mips.dasc

@@ -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