diff options
Diffstat (limited to 'src/vm_ppcspe.dasc')
-rw-r--r-- | src/vm_ppcspe.dasc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/vm_ppcspe.dasc b/src/vm_ppcspe.dasc index 0ee687c2..31e4c6c4 100644 --- a/src/vm_ppcspe.dasc +++ b/src/vm_ppcspe.dasc | |||
@@ -811,7 +811,7 @@ static void build_subroutines(BuildCtx *ctx) | |||
811 | | b ->vm_call_dispatch | 811 | | b ->vm_call_dispatch |
812 | | | 812 | | |
813 | |->vmeta_len: | 813 | |->vmeta_len: |
814 | #ifdef LUAJIT_ENABLE_LUA52COMPAT | 814 | #if LJ_52 |
815 | | mr SAVE0, CARG1 | 815 | | mr SAVE0, CARG1 |
816 | #endif | 816 | #endif |
817 | | add CARG2, BASE, RD | 817 | | add CARG2, BASE, RD |
@@ -820,7 +820,7 @@ static void build_subroutines(BuildCtx *ctx) | |||
820 | | stw PC, SAVE_PC | 820 | | stw PC, SAVE_PC |
821 | | bl extern lj_meta_len // (lua_State *L, TValue *o) | 821 | | bl extern lj_meta_len // (lua_State *L, TValue *o) |
822 | | // Returns NULL (retry) or TValue * (metamethod base). | 822 | | // Returns NULL (retry) or TValue * (metamethod base). |
823 | #ifdef LUAJIT_ENABLE_LUA52COMPAT | 823 | #if LJ_52 |
824 | | cmplwi CRET1, 0 | 824 | | cmplwi CRET1, 0 |
825 | | bne ->vmeta_binop // Binop call for compatibility. | 825 | | bne ->vmeta_binop // Binop call for compatibility. |
826 | | mr CARG1, SAVE0 | 826 | | mr CARG1, SAVE0 |
@@ -1103,7 +1103,7 @@ static void build_subroutines(BuildCtx *ctx) | |||
1103 | | checktab TAB:CARG1 | 1103 | | checktab TAB:CARG1 |
1104 | | lwz PC, FRAME_PC(BASE) | 1104 | | lwz PC, FRAME_PC(BASE) |
1105 | | checkfail ->fff_fallback | 1105 | | checkfail ->fff_fallback |
1106 | #ifdef LUAJIT_ENABLE_LUA52COMPAT | 1106 | #if LJ_52 |
1107 | | lwz TAB:TMP2, TAB:CARG1->metatable | 1107 | | lwz TAB:TMP2, TAB:CARG1->metatable |
1108 | | evldd CFUNC:TMP0, CFUNC:RB->upvalue[0] | 1108 | | evldd CFUNC:TMP0, CFUNC:RB->upvalue[0] |
1109 | | cmplwi TAB:TMP2, 0 | 1109 | | cmplwi TAB:TMP2, 0 |
@@ -1162,7 +1162,7 @@ static void build_subroutines(BuildCtx *ctx) | |||
1162 | | checktab TAB:CARG1 | 1162 | | checktab TAB:CARG1 |
1163 | | lwz PC, FRAME_PC(BASE) | 1163 | | lwz PC, FRAME_PC(BASE) |
1164 | | checkfail ->fff_fallback | 1164 | | checkfail ->fff_fallback |
1165 | #ifdef LUAJIT_ENABLE_LUA52COMPAT | 1165 | #if LJ_52 |
1166 | | lwz TAB:TMP2, TAB:CARG1->metatable | 1166 | | lwz TAB:TMP2, TAB:CARG1->metatable |
1167 | | evldd CFUNC:TMP0, CFUNC:RB->upvalue[0] | 1167 | | evldd CFUNC:TMP0, CFUNC:RB->upvalue[0] |
1168 | | cmplwi TAB:TMP2, 0 | 1168 | | cmplwi TAB:TMP2, 0 |
@@ -2327,7 +2327,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop) | |||
2327 | |2: | 2327 | |2: |
2328 | | checktab CARG1 | 2328 | | checktab CARG1 |
2329 | | checkfail ->vmeta_len | 2329 | | checkfail ->vmeta_len |
2330 | #ifdef LUAJIT_ENABLE_LUA52COMPAT | 2330 | #if LJ_52 |
2331 | | lwz TAB:TMP2, TAB:CARG1->metatable | 2331 | | lwz TAB:TMP2, TAB:CARG1->metatable |
2332 | | cmplwi TAB:TMP2, 0 | 2332 | | cmplwi TAB:TMP2, 0 |
2333 | | bne >9 | 2333 | | bne >9 |
@@ -2337,7 +2337,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop) | |||
2337 | | bl extern lj_tab_len // (GCtab *t) | 2337 | | bl extern lj_tab_len // (GCtab *t) |
2338 | | // Returns uint32_t (but less than 2^31). | 2338 | | // Returns uint32_t (but less than 2^31). |
2339 | | b <1 | 2339 | | b <1 |
2340 | #ifdef LUAJIT_ENABLE_LUA52COMPAT | 2340 | #if LJ_52 |
2341 | |9: | 2341 | |9: |
2342 | | lbz TMP0, TAB:TMP2->nomm | 2342 | | lbz TMP0, TAB:TMP2->nomm |
2343 | | andi. TMP0, TMP0, 1<<MM_len | 2343 | | andi. TMP0, TMP0, 1<<MM_len |