desc_base.h 423 Bytes
Newer Older
1
2
3
#ifndef __DESC_BASE_H
#define __DESC_BASE_H

4
5
6
enum FunType {
    FT_BOXED_LIT, FT_RECORD, FT_ADT, FT_CAF, FT_CAF_REDUCED, FT_FUN, FT_SLICE, FT_PRIM
};
7
8

struct Desc {
9
    FunType type : 3;
Laszlo Domoszlai's avatar
Laszlo Domoszlai committed
10
11
    unsigned int arity : 8;         // LIMITATION: maximum 32 arguments
    unsigned int thunk_size : 10;   // It gives false result for strings and arrays
Laszlo Domoszlai's avatar
Laszlo Domoszlai committed
12
    unsigned int unboxable : 1;
Laszlo Domoszlai's avatar
Laszlo Domoszlai committed
13
    unsigned int hnf : 1;
14
15
16
};

#endif // __DESC_H