diff options
author | yui-knk <spiketeika@gmail.com> | 2023-06-17 10:21:37 +0900 |
---|---|---|
committer | Yuichiro Kaneko <spiketeika@gmail.com> | 2023-06-17 16:41:08 +0900 |
commit | 19c62b400d3458c4525f174515bcb616af7dfdfe (patch) | |
tree | 59a687fc1573a545cc21f6b529724cd7821a0df8 /compile.c | |
parent | e5ae7a16b49d4cf7c7069aeb01ed5c4e58152055 (diff) |
Replace parser & node compile_option from Hash to bit field
This commit reduces dependency to CRuby object.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7950
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1326,7 +1326,8 @@ new_child_iseq(rb_iseq_t *iseq, const NODE *const node, rb_ast_body_t ast; ast.root = node; - ast.compile_option = 0; + ast.frozen_string_literal = -1; + ast.coverage_enabled = -1; ast.script_lines = ISEQ_BODY(iseq)->variable.script_lines; debugs("[new_child_iseq]> ---------------------------------------\n"); @@ -8372,7 +8373,8 @@ compile_builtin_mandatory_only_method(rb_iseq_t *iseq, const NODE *node, const N rb_ast_body_t ast = { .root = &scope_node, - .compile_option = 0, + .frozen_string_literal = -1, + .coverage_enabled = -1, .script_lines = ISEQ_BODY(iseq)->variable.script_lines, }; |