summaryrefslogtreecommitdiff
path: root/tool/ruby_vm/views/_leaf_helpers.erb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/ruby_vm/views/_leaf_helpers.erb')
-rw-r--r--tool/ruby_vm/views/_leaf_helpers.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/tool/ruby_vm/views/_leaf_helpers.erb b/tool/ruby_vm/views/_leaf_helpers.erb
index 2637f8777d..cbb7373e1c 100644
--- a/tool/ruby_vm/views/_leaf_helpers.erb
+++ b/tool/ruby_vm/views/_leaf_helpers.erb
@@ -10,6 +10,10 @@
#include "iseq.h"
+// This is used to tell MJIT that this insn would be leaf if CHECK_INTS didn't exist.
+// It should be used only when RUBY_VM_CHECK_INTS is directly written in insns.def.
+static bool leafness_of_check_ints = false;
+
static bool
leafness_of_defined(rb_num_t op_type)
{