aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pall <mike>2012-05-10 16:16:42 +0200
committerMike Pall <mike>2012-05-10 16:17:23 +0200
commit48567b60435cea890322d771a3b22280494b3b75 (patch)
tree36ee6781f55d4769da61b71eac2d48e259457dbb /src
parent51f05d64c93b5c1e8ba152740012454f399b996d (diff)
downloadluajit-48567b60435cea890322d771a3b22280494b3b75.tar.gz
luajit-48567b60435cea890322d771a3b22280494b3b75.tar.bz2
luajit-48567b60435cea890322d771a3b22280494b3b75.zip
ARM: Fix tonumber() argument check.
Diffstat (limited to 'src')
-rw-r--r--src/buildvm_arm.dasc5
-rw-r--r--src/buildvm_arm.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/buildvm_arm.dasc b/src/buildvm_arm.dasc
index dd4b7c89..c75353d9 100644
--- a/src/buildvm_arm.dasc
+++ b/src/buildvm_arm.dasc
@@ -988,8 +988,11 @@ static void build_subroutines(BuildCtx *ctx)
988 | 988 |
989 |//-- Base library: conversions ------------------------------------------ 989 |//-- Base library: conversions ------------------------------------------
990 | 990 |
991 |.ffunc_1 tonumber 991 |.ffunc tonumber
992 | // Only handles the number case inline (without a base argument). 992 | // Only handles the number case inline (without a base argument).
993 | ldrd CARG12, [BASE]
994 | cmp NARGS8:RC, #8
995 | bne ->fff_fallback
993 | checktp CARG2, LJ_TISNUM 996 | checktp CARG2, LJ_TISNUM
994 | bls ->fff_restv 997 | bls ->fff_restv
995 | b ->fff_fallback 998 | b ->fff_fallback
diff --git a/src/buildvm_arm.h b/src/buildvm_arm.h
index 81229181..ca94ed18 100644
--- a/src/buildvm_arm.h
+++ b/src/buildvm_arm.h
@@ -891,7 +891,7 @@ static const unsigned int build_actionlist[5777] = {
8910x0006004d, 8910x0006004d,
8920xe1c900d0, 8920xe1c900d0,
8930xe35b0008, 8930xe35b0008,
8940x3a000000, 8940x1a000000,
8950x00050046, 8950x00050046,
8960xe3710000, 8960xe3710000,
8970x000a0000, 8970x000a0000,