diff options
author | Mike Pall <mike> | 2011-01-20 12:25:56 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-01-20 12:25:56 +0100 |
commit | 8396c3cdbc26e08fdf9dea204efb641dd6ad1f91 (patch) | |
tree | 587ec639ceb10bbbee9eb6da1e67bb1a698e988e /src | |
parent | 6bce6b118eeb2bb7f36157de158e5cccf0ea68e5 (diff) | |
download | luajit-8396c3cdbc26e08fdf9dea204efb641dd6ad1f91.tar.gz luajit-8396c3cdbc26e08fdf9dea204efb641dd6ad1f91.tar.bz2 luajit-8396c3cdbc26e08fdf9dea204efb641dd6ad1f91.zip |
PPC: Fix ipairs() for keys in the hash part.
Diffstat (limited to 'src')
-rw-r--r-- | src/buildvm_ppc.dasc | 2 | ||||
-rw-r--r-- | src/buildvm_ppcspe.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/buildvm_ppc.dasc b/src/buildvm_ppc.dasc index 16cfd6ec..909c6fc7 100644 --- a/src/buildvm_ppc.dasc +++ b/src/buildvm_ppc.dasc | |||
@@ -1130,13 +1130,13 @@ static void build_subroutines(BuildCtx *ctx) | |||
1130 | | la RA, -8(BASE) | 1130 | | la RA, -8(BASE) |
1131 | | cmplw TMP0, TMP2 | 1131 | | cmplw TMP0, TMP2 |
1132 | | slwi TMP3, TMP2, 3 | 1132 | | slwi TMP3, TMP2, 3 |
1133 | | evstdd CARG2, 0(RA) | ||
1133 | | ble >2 // Not in array part? | 1134 | | ble >2 // Not in array part? |
1134 | | evlddx TMP1, TMP1, TMP3 | 1135 | | evlddx TMP1, TMP1, TMP3 |
1135 | |1: | 1136 | |1: |
1136 | | checknil TMP1 | 1137 | | checknil TMP1 |
1137 | | li RD, (0+1)*8 | 1138 | | li RD, (0+1)*8 |
1138 | | checkok ->fff_res // End of iteration, return 0 results. | 1139 | | checkok ->fff_res // End of iteration, return 0 results. |
1139 | | evstdd CARG2, 0(RA) | ||
1140 | | li RD, (2+1)*8 | 1140 | | li RD, (2+1)*8 |
1141 | | evstdd TMP1, 8(RA) | 1141 | | evstdd TMP1, 8(RA) |
1142 | | b ->fff_res | 1142 | | b ->fff_res |
diff --git a/src/buildvm_ppcspe.h b/src/buildvm_ppcspe.h index 82096848..e3665b35 100644 --- a/src/buildvm_ppcspe.h +++ b/src/buildvm_ppcspe.h | |||
@@ -1102,6 +1102,7 @@ static const unsigned int build_actionlist[4950] = { | |||
1102 | 0x7c004840, | 1102 | 0x7c004840, |
1103 | 0x55261800, | 1103 | 0x55261800, |
1104 | 0x000900a1, | 1104 | 0x000900a1, |
1105 | 0x10940321, | ||
1105 | 0x40810000, | 1106 | 0x40810000, |
1106 | 0x00050802, | 1107 | 0x00050802, |
1107 | 0x11083300, | 1108 | 0x11083300, |
@@ -1111,7 +1112,6 @@ static const unsigned int build_actionlist[4950] = { | |||
1111 | 0x00098200, | 1112 | 0x00098200, |
1112 | 0x41800000, | 1113 | 0x41800000, |
1113 | 0x00050843, | 1114 | 0x00050843, |
1114 | 0x10940321, | ||
1115 | 0x39800000, | 1115 | 0x39800000, |
1116 | 0x00098200, | 1116 | 0x00098200, |
1117 | 0x11140b21, | 1117 | 0x11140b21, |