]> gitweb.factorcode.org Git - factor.git/blob - vm/master.hpp
f4c093447847c498160fd0862ee2c5f64cf2b854
[factor.git] / vm / master.hpp
1 #ifndef __FACTOR_MASTER_H__
2 #define __FACTOR_MASTER_H__
3
4 #define _THREAD_SAFE
5 #define _REENTRANT
6
7 #ifndef WINCE
8 #include <errno.h>
9 #endif
10
11 #ifdef FACTOR_DEBUG
12 #include <assert.h>
13 #endif
14
15 /* C headers */
16 #include <fcntl.h>
17 #include <limits.h>
18 #include <math.h>
19 #include <setjmp.h>
20 #include <stdio.h>
21 #include <stdlib.h>
22 #include <string.h>
23 #include <time.h>
24
25 /* C++ headers */
26 #include <algorithm>
27 #include <map>
28 #include <set>
29 #include <vector>
30 #include <iostream>
31
32 /* Detect target CPU type */
33 #if defined(__arm__)
34         #define FACTOR_ARM
35 #elif defined(__amd64__) || defined(__x86_64__)
36         #define FACTOR_AMD64
37         #define FACTOR_64
38 #elif defined(i386) || defined(__i386) || defined(__i386__) || defined(WIN32) || defined(_MSC_VER)
39         #define FACTOR_X86
40 #elif defined(__POWERPC__) || defined(__ppc__) || defined(_ARCH_PPC)
41         #define FACTOR_PPC
42 #else
43         #error "Unsupported architecture"
44 #endif
45
46 #if defined(_MSC_VER)
47         #define WINDOWS
48         #define WINNT
49 #elif defined(WIN32)
50         #define WINDOWS
51 #endif
52
53 #ifndef _MSC_VER
54         #include <stdbool.h>
55 #endif
56
57 /* Forward-declare this since it comes up in function prototypes */
58 namespace factor
59 {
60         struct factor_vm;
61 }
62
63 /* Factor headers */
64 #include "layouts.hpp"
65 #include "platform.hpp"
66 #include "primitives.hpp"
67 #include "segments.hpp"
68 #include "contexts.hpp"
69 #include "run.hpp"
70 #include "objects.hpp"
71 #include "profiler.hpp"
72 #include "errors.hpp"
73 #include "bignumint.hpp"
74 #include "bignum.hpp"
75 #include "booleans.hpp"
76 #include "instruction_operands.hpp"
77 #include "code_blocks.hpp"
78 #include "bump_allocator.hpp"
79 #include "bitwise_hacks.hpp"
80 #include "mark_bits.hpp"
81 #include "free_list.hpp"
82 #include "free_list_allocator.hpp"
83 #include "write_barrier.hpp"
84 #include "object_start_map.hpp"
85 #include "nursery_space.hpp"
86 #include "aging_space.hpp"
87 #include "tenured_space.hpp"
88 #include "data_heap.hpp"
89 #include "code_heap.hpp"
90 #include "gc.hpp"
91 #include "debug.hpp"
92 #include "strings.hpp"
93 #include "tuples.hpp"
94 #include "words.hpp"
95 #include "float_bits.hpp"
96 #include "io.hpp"
97 #include "image.hpp"
98 #include "alien.hpp"
99 #include "callbacks.hpp"
100 #include "dispatch.hpp"
101 #include "entry_points.hpp"
102 #include "vm.hpp"
103 #include "allot.hpp"
104 #include "tagged.hpp"
105 #include "data_roots.hpp"
106 #include "code_roots.hpp"
107 #include "generic_arrays.hpp"
108 #include "slot_visitor.hpp"
109 #include "collector.hpp"
110 #include "copying_collector.hpp"
111 #include "nursery_collector.hpp"
112 #include "aging_collector.hpp"
113 #include "to_tenured_collector.hpp"
114 #include "code_block_visitor.hpp"
115 #include "compaction.hpp"
116 #include "full_collector.hpp"
117 #include "callstack.hpp"
118 #include "arrays.hpp"
119 #include "math.hpp"
120 #include "byte_arrays.hpp"
121 #include "jit.hpp"
122 #include "quotations.hpp"
123 #include "inline_cache.hpp"
124 #include "factor.hpp"
125 #include "utilities.hpp"
126
127 #endif /* __FACTOR_MASTER_H__ */