diff options
author | Mike Pall <mike> | 2012-05-10 16:16:42 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2012-05-10 16:17:23 +0200 |
commit | 48567b60435cea890322d771a3b22280494b3b75 (patch) | |
tree | 36ee6781f55d4769da61b71eac2d48e259457dbb /src | |
parent | 51f05d64c93b5c1e8ba152740012454f399b996d (diff) | |
download | luajit-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.dasc | 5 | ||||
-rw-r--r-- | src/buildvm_arm.h | 2 |
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] = { | |||
891 | 0x0006004d, | 891 | 0x0006004d, |
892 | 0xe1c900d0, | 892 | 0xe1c900d0, |
893 | 0xe35b0008, | 893 | 0xe35b0008, |
894 | 0x3a000000, | 894 | 0x1a000000, |
895 | 0x00050046, | 895 | 0x00050046, |
896 | 0xe3710000, | 896 | 0xe3710000, |
897 | 0x000a0000, | 897 | 0x000a0000, |