summaryrefslogtreecommitdiff
path: root/yjit_core.h
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2021-06-22 19:22:30 -0700
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:37 -0400
commitdfc5e5e35b927bcfc26af0b59d4952e97bdfb0f7 (patch)
tree3ff236a27d603e97c5245fdaceae536b241a2edf /yjit_core.h
parentc3f264b62cfee09a90fd3f75de9eaa36bc06645d (diff)
Support guards against symbols and integers
This adds guards
Diffstat (limited to 'yjit_core.h')
-rw-r--r--yjit_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/yjit_core.h b/yjit_core.h
index a2436e6eb3..5939f5b74b 100644
--- a/yjit_core.h
+++ b/yjit_core.h
@@ -69,6 +69,7 @@ STATIC_ASSERT(val_type_size, sizeof(val_type_t) == 1);
#define TYPE_TRUE ( (val_type_t){ .is_imm = 1, .type = ETYPE_TRUE } )
#define TYPE_FALSE ( (val_type_t){ .is_imm = 1, .type = ETYPE_FALSE } )
#define TYPE_FIXNUM ( (val_type_t){ .is_imm = 1, .type = ETYPE_FIXNUM } )
+#define TYPE_STATIC_SYMBOL ( (val_type_t){ .is_imm = 1, .type = ETYPE_SYMBOL } )
#define TYPE_ARRAY ( (val_type_t){ .is_heap = 1, .type = ETYPE_ARRAY } )
#define TYPE_HASH ( (val_type_t){ .is_heap = 1, .type = ETYPE_HASH } )
#define TYPE_STRING ( (val_type_t){ .is_heap = 1, .type = ETYPE_STRING } )