]> git.kaiwu.me - quickjs.git/commitdiff
arm64: use nan boxing only on Mac OS as other OSes may use user pointers with more...
authorFabrice Bellard <fabrice@bellard.org>
Mon, 2 Nov 2026 09:26:42 +0000 (10:26 +0100)
committerFabrice Bellard <fabrice@bellard.org>
Mon, 2 Nov 2026 09:26:42 +0000 (10:26 +0100)
quickjs.h

index 0708e602aeb942553f58896ebcf906abd6d0af19..747d84996f4a284d7210642d74a56c286bbed80a 100644 (file)
--- a/quickjs.h
+++ b/quickjs.h
@@ -63,7 +63,7 @@ typedef uint32_t JSAtom;
 #if !defined(JS_PTR64)
 #define JS_NAN_BOXING
 #define JS_NAN_BOX_TAG_SHIFT 32
-#elif defined(__x86_64__) || defined(__aarch64__) || defined(__riscv)
+#elif defined(__x86_64__) || (defined(__aarch64__) && defined(__APPLE__)) || defined(__riscv)
 /* we assume pointers fit on 47 bits */
 #define JS_NAN_BOXING
 #define JS_NAN_BOX_TAG_SHIFT 47