]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/cpu-x86.32.hpp
io.streams.256color: faster by caching styles
[factor.git] / vm / cpu-x86.32.hpp
index f9895cefbd714a978255458348d3d472ef1e56b9..6eb1ec35b28c9f653477cebe290afbd801e96cac 100644 (file)
@@ -1,14 +1,10 @@
-namespace factor
-{
+namespace factor {
 
 #define FACTOR_CPU_STRING "x86.32"
 
-register cell ds asm("esi");
-register cell rs asm("edi");
+// Must match the calculation in word jit-signal-handler-prolog in
+// basis/bootstrap/assembler/x86.factor
+static const unsigned SIGNAL_HANDLER_STACK_FRAME_SIZE = 64;
+static const unsigned JIT_FRAME_SIZE = 32;
 
-#define VM_ASM_API VM_C_API __attribute__ ((regparm (2)))
-#undef VM_PTR
-#define VM_PTR myvm
-#undef ASSERTVM
-#define ASSERTVM() assert(vm==myvm)
 }