4 static const cell special_object_count = 70;
7 OBJ_NAMESTACK, /* used by library only */
8 OBJ_CATCHSTACK, /* used by library only, per-callback */
10 OBJ_CURRENT_CALLBACK = 2, /* used by library only, per-callback */
11 OBJ_WALKER_HOOK, /* non-local exit hook, used by library only */
12 OBJ_CALLCC_1, /* used to pass the value in callcc1 */
14 OBJ_BREAK = 5, /* quotation called by throw primitive */
15 OBJ_ERROR, /* a marker consed onto kernel errors */
17 OBJ_CELL_SIZE = 7, /* sizeof(cell) */
18 OBJ_CPU, /* CPU architecture */
19 OBJ_OS, /* operating system name */
21 OBJ_ARGS = 10, /* command line arguments */
22 OBJ_STDIN, /* stdin FILE* handle */
23 OBJ_STDOUT, /* stdout FILE* handle */
25 OBJ_IMAGE = 13, /* image path name */
26 OBJ_EXECUTABLE, /* runtime executable path name */
28 OBJ_EMBEDDED = 15, /* are we embedded in another app? */
29 OBJ_EVAL_CALLBACK, /* used when Factor is embedded in a C app */
30 OBJ_YIELD_CALLBACK, /* used when Factor is embedded in a C app */
31 OBJ_SLEEP_CALLBACK, /* used when Factor is embedded in a C app */
33 OBJ_COCOA_EXCEPTION = 19, /* Cocoa exception handler quotation */
35 OBJ_BOOT = 20, /* boot quotation */
36 OBJ_GLOBAL, /* global namespace */
38 /* Quotation compilation in quotations.c */
62 /* Callback stub generation in callbacks.c */
65 /* Polymorphic inline cache generation in inline_cache.c */
77 /* Megamorphic cache generation in dispatch.c */
82 OBJ_UNDEFINED = 60, /* default quotation for undefined words */
84 OBJ_STDERR = 61, /* stderr FILE* handle */
86 OBJ_STAGE2 = 62, /* have we bootstrapped? */
88 OBJ_CURRENT_THREAD = 63,
95 #define OBJ_FIRST_SAVE OBJ_BOOT
96 #define OBJ_LAST_SAVE OBJ_STAGE2
98 inline static bool save_env_p(cell i)
100 return (i >= OBJ_FIRST_SAVE && i <= OBJ_LAST_SAVE);