summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2023-06-17 10:21:37 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2023-06-17 16:41:08 +0900
commit19c62b400d3458c4525f174515bcb616af7dfdfe (patch)
tree59a687fc1573a545cc21f6b529724cd7821a0df8 /vm.c
parente5ae7a16b49d4cf7c7069aeb01ed5c4e58152055 (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 'vm.c')
-rw-r--r--vm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 39fb7dc821..f94be00187 100644
--- a/vm.c
+++ b/vm.c
@@ -1350,7 +1350,8 @@ rb_binding_add_dynavars(VALUE bindval, rb_binding_t *bind, int dyncount, const I
rb_node_init(&tmp_node, NODE_SCOPE, (VALUE)dyns, 0, 0);
ast.root = &tmp_node;
- ast.compile_option = 0;
+ ast.frozen_string_literal = -1;
+ ast.coverage_enabled = -1;
ast.script_lines = INT2FIX(-1);
if (base_iseq) {