]> gitweb.factorcode.org Git - factor.git/commitdiff
vm/os-macosx-arm64: add the same arm64 fields as linux to make it compile on mac
authorDoug Coleman <doug.coleman@gmail.com>
Tue, 31 Jan 2023 01:51:41 +0000 (19:51 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Tue, 31 Jan 2023 01:52:36 +0000 (19:52 -0600)
We might just put these in the arm64 file if they're the same.

vm/os-macosx-arm64.hpp

index b7ce384ccc9720f409f236653e6c532c425f60de..f9ab44f5e931869643c2607af0ad2009b7a84c94 100644 (file)
@@ -143,8 +143,15 @@ inline static unsigned int fpu_status(unsigned int status) {
   return r;
 }
 
+// Must match the stack-frame-size constant in bootstrap/assembler/arm.64.factor
+static const unsigned JIT_FRAME_SIZE = 64;
 
-static const unsigned JIT_FRAME_SIZE = 32; // omg
+// last byte of X9 BR in absolute-call
+static const unsigned char call_opcode = 0x14;
+// last byte of 12 Br in absolute-jump
+static const unsigned char jmp_opcode = 0xd6;
+
+static const unsigned SIGNAL_HANDLER_STACK_FRAME_SIZE = 256;