diff options
| author | gingerBill <bill@gingerbill.org> | 2021-04-14 17:15:28 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-04-14 17:15:28 +0100 |
| commit | 9adec628c1c6b3d24f7a8642bbf5c0c84586d161 (patch) | |
| tree | 7f4785bcb7615922f71fc657bab029218f9be996 /src/entity.cpp | |
| parent | 3e54cddf641e7d8ca79b0cbb12e1595727a9e888 (diff) | |
Add `@(cold)` attribute to procedure declarations
Diffstat (limited to 'src/entity.cpp')
| -rw-r--r-- | src/entity.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/entity.cpp b/src/entity.cpp index 2786fcc6d..a27b7cb37 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -32,7 +32,7 @@ String const entity_strings[] = { #undef ENTITY_KIND }; -enum EntityFlag : u32 { +enum EntityFlag : u64 { EntityFlag_Visited = 1<<0, EntityFlag_Used = 1<<1, EntityFlag_Using = 1<<2, @@ -63,12 +63,13 @@ enum EntityFlag : u32 { EntityFlag_AutoCast = 1<<22, EntityFlag_Disabled = 1<<24, + EntityFlag_Cold = 1<<25, // procedure is rarely called - EntityFlag_Test = 1<<25, + EntityFlag_Test = 1<<30, }; -enum EntityState { +enum EntityState : u32 { EntityState_Unresolved = 0, EntityState_InProgress = 1, EntityState_Resolved = 2, @@ -98,7 +99,7 @@ struct ParameterValue { struct Entity { EntityKind kind; u64 id; - u32 flags; + u64 flags; EntityState state; Token token; Scope * scope; |