Pre-freeze ISeq names to avoid useless duplication
This commit is contained in:
parent
d00e7deb5c
commit
2de7fbcdbb
Notes:
git
2021-03-11 06:44:29 +09:00
@ -8662,7 +8662,7 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *node, in
|
||||
}
|
||||
case NODE_CLASS:{
|
||||
const rb_iseq_t *class_iseq = NEW_CHILD_ISEQ(node->nd_body,
|
||||
rb_sprintf("<class:%"PRIsVALUE">", rb_id2str(node->nd_cpath->nd_mid)),
|
||||
rb_str_freeze(rb_sprintf("<class:%"PRIsVALUE">", rb_id2str(node->nd_cpath->nd_mid))),
|
||||
ISEQ_TYPE_CLASS, line);
|
||||
const int flags = VM_DEFINECLASS_TYPE_CLASS |
|
||||
(node->nd_super ? VM_DEFINECLASS_FLAG_HAS_SUPERCLASS : 0) |
|
||||
@ -8679,7 +8679,7 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *node, in
|
||||
}
|
||||
case NODE_MODULE:{
|
||||
const rb_iseq_t *module_iseq = NEW_CHILD_ISEQ(node->nd_body,
|
||||
rb_sprintf("<module:%"PRIsVALUE">", rb_id2str(node->nd_cpath->nd_mid)),
|
||||
rb_str_freeze(rb_sprintf("<module:%"PRIsVALUE">", rb_id2str(node->nd_cpath->nd_mid))),
|
||||
ISEQ_TYPE_CLASS, line);
|
||||
const int flags = VM_DEFINECLASS_TYPE_MODULE |
|
||||
compile_cpath(ret, iseq, node->nd_cpath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user