summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authoreileencodes <eileencodes@gmail.com>2023-04-04 13:18:13 -0400
committerAaron Patterson <aaron.patterson@gmail.com>2023-04-11 10:47:58 -0700
commitce99e50ede4e4981d7b008bbe17f72fa351a5978 (patch)
tree2d67273d3cc5076f3118918c41dbe6f57802eeb0 /vm_core.h
parentb4571097df4a6bd848f1195026d82a92f3a7f9d8 (diff)
downloadruby-ce99e50ede4e4981d7b008bbe17f72fa351a5978.tar.gz
Move `catch_except_p` to `compile_data`
The `catch_except_p` flag is used for communicating between parent and child iseq's that a throw instruction was emitted. So for example if a child iseq has a throw in it and the parent wants to catch the throw, we use this flag to communicate to the parent iseq that a throw instruction was emitted. This flag is only useful at compile time, it only impacts the compilation process so it seems to be fine to move it from the iseq body to the compile_data struct. Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index d1640c9ab6..74824f48c6 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -496,7 +496,6 @@ struct rb_iseq_constant_body {
unsigned int ci_size;
unsigned int stack_max; /* for stack overflow check */
- bool catch_except_p; // If a frame of this ISeq may catch exception, set true.
unsigned int builtin_attrs; // Union of rb_builtin_attr
union {