aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2011-01-20 12:25:56 +0100
committerMike Pall <mike>2011-01-20 12:25:56 +0100
commit8396c3cdbc26e08fdf9dea204efb641dd6ad1f91 (patch)
tree587ec639ceb10bbbee9eb6da1e67bb1a698e988e /src
parent6bce6b118eeb2bb7f36157de158e5cccf0ea68e5 (diff)
downloadluajit-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.dasc2
-rw-r--r--src/buildvm_ppcspe.h2
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] = {
11020x7c004840, 11020x7c004840,
11030x55261800, 11030x55261800,
11040x000900a1, 11040x000900a1,
11050x10940321,
11050x40810000, 11060x40810000,
11060x00050802, 11070x00050802,
11070x11083300, 11080x11083300,
@@ -1111,7 +1112,6 @@ static const unsigned int build_actionlist[4950] = {
11110x00098200, 11120x00098200,
11120x41800000, 11130x41800000,
11130x00050843, 11140x00050843,
11140x10940321,
11150x39800000, 11150x39800000,
11160x00098200, 11160x00098200,
11170x11140b21, 11170x11140b21,