gen/
.clang-format
570 B
.gitignore
30 B
.gitsigners
112 B
LICENSE
1.1 KiB
Makefile
911 B
README
1.8 KiB
ast.c
5.0 KiB
ast.h
15.1 KiB
desugar.c
23.1 KiB
desugar.h
286 B
gen.c
108.5 KiB
gen.h
4.9 KiB
io.c
1.1 KiB
io.h
444 B
limits.h
1.3 KiB
module.c
10.0 KiB
module.h
2.2 KiB
options.c
1.4 KiB
options.h
472 B
parser.c
68.3 KiB
parser.h
942 B
radiance.c
3.7 KiB
ralloc.c
2.0 KiB
ralloc.h
1.1 KiB
resolver.c
109.7 KiB
resolver.h
5.6 KiB
riscv.c
12.0 KiB
riscv.h
12.0 KiB
scanner.c
10.2 KiB
scanner.h
3.2 KiB
strings.c
2.6 KiB
strings.h
407 B
symtab.c
5.7 KiB
symtab.h
4.6 KiB
types.h
1.0 KiB
util.h
1.5 KiB
limits.h
raw
| 1 | #ifndef LIMITS_H |
| 2 | #define LIMITS_H |
| 3 | |
| 4 | #include "riscv.h" |
| 5 | |
| 6 | #define MAX_NODES 32768 |
| 7 | #define MAX_UNION_VARIANTS 128 |
| 8 | #define MAX_RECORD_FIELDS 32 |
| 9 | #define MAX_ARRAY_ELEMS 1024 |
| 10 | #define MAX_BLOCK_STATEMENTS 512 |
| 11 | #define MAX_SWITCH_CASES 128 |
| 12 | #define MAX_CASE_PATTERNS 64 |
| 13 | #define MAX_QUALIFIED_NAME 128 |
| 14 | #define MAX_FN_PARAMS ((A7 - A0) + 1) |
| 15 | #define MAX_FN_THROWS 8 |
| 16 | #define MAX_FN_LOCALS 32 |
| 17 | #define MAX_SYMBOLS 16384 |
| 18 | #define MAX_SCOPES 8192 |
| 19 | #define MAX_SCOPE_SYMBOLS 512 |
| 20 | #define MAX_INSTRS (1 << 20) |
| 21 | #define MAX_FN_PATCHES 4096 |
| 22 | #define MAX_RET_PATCHES 256 |
| 23 | #define MAX_BRK_PATCHES 512 |
| 24 | #define MAX_TYPES 4096 |
| 25 | #define MAX_FRAME_SIZE (512 * 1024) |
| 26 | #define MAX_STRING_LITERALS 1024 |
| 27 | #define MAX_CONSTANTS 256 |
| 28 | #define MAX_TRY_CATCHES 8 |
| 29 | |
| 30 | /* Pool size for variable-length node pointer arrays. |
| 31 | * Replaces per-node embedded arrays to shrink node_t. */ |
| 32 | #define MAX_NODEPTR_POOL (MAX_NODES * 4) |
| 33 | |
| 34 | /* Pool sizes for type_t sub-arrays (variants, fields, params, throws). */ |
| 35 | #define MAX_SYMPTR_POOL 16384 |
| 36 | #define MAX_TYPEPTR_POOL 16384 |
| 37 | |
| 38 | /* Maximum values for module system */ |
| 39 | #define MAX_MODULES 48 |
| 40 | #define MAX_MODULE_DEPS 24 |
| 41 | #define MAX_PATH_LEN 1024 |
| 42 | #define MAX_IMPORTS 32 |
| 43 | |
| 44 | #endif |