diff options
author | eileencodes <[email protected]> | 2023-04-04 13:18:13 -0400 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2023-04-11 10:47:58 -0700 |
commit | ce99e50ede4e4981d7b008bbe17f72fa351a5978 (patch) | |
tree | 2d67273d3cc5076f3118918c41dbe6f57802eeb0 /iseq.c | |
parent | b4571097df4a6bd848f1195026d82a92f3a7f9d8 (diff) |
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 <[email protected]>
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7652
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -2306,7 +2306,6 @@ rb_iseq_disasm_recursive(const rb_iseq_t *iseq, VALUE indent) rb_str_cat2(str, "== disasm: "); rb_str_append(str, iseq_inspect(iseq)); - rb_str_catf(str, " (catch: %s)", body->catch_except_p ? "true" : "false"); if ((l = RSTRING_LEN(str) - indent_len) < header_minlen) { rb_str_modify_expand(str, header_minlen - l); memset(RSTRING_END(str), '=', header_minlen - l); |