summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-03-14 15:38:58 -0700
committerGitHub <noreply@github.com>2023-03-14 15:38:58 -0700
commit70ba3102129dbaf6c943d1ed042103e0238842f4 (patch)
treee0337226448cc96979a9cd382b7f22997c36d387 /vm_core.h
parent868f03cce1a2d7a4df9b03b8338e3af4c69041d0 (diff)
downloadruby-70ba3102129dbaf6c943d1ed042103e0238842f4.tar.gz
YJIT: Introduce no_gc attribute (#7511)
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index ee995b5ff9..66602efea7 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -370,8 +370,10 @@ enum rb_iseq_type {
// Attributes specified by Primitive.attr!
enum rb_builtin_attr {
- // If true, this ISeq does not call methods.
+ // The iseq does not call methods.
BUILTIN_ATTR_LEAF = 0x01,
+ // The iseq does not allocate objects.
+ BUILTIN_ATTR_NO_GC = 0x02,
};
struct rb_iseq_constant_body {