* expand tabs. [ci skip]
Tabs were expanded because the file did not have any tab indentation in unedited lines. Please update your editor config, and use misc/expand_tabs.rb in the pre-commit hook.
This commit is contained in:
parent
1cc97412cd
commit
3401e58f23
10
compile.c
10
compile.c
@ -9581,14 +9581,14 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const no
|
|||||||
case NODE_CONST:{
|
case NODE_CONST:{
|
||||||
debugi("nd_vid", node->nd_vid);
|
debugi("nd_vid", node->nd_vid);
|
||||||
|
|
||||||
if (ISEQ_COMPILE_DATA(iseq)->option->inline_const_cache) {
|
if (ISEQ_COMPILE_DATA(iseq)->option->inline_const_cache) {
|
||||||
body->ic_size++;
|
body->ic_size++;
|
||||||
VALUE segments = rb_ary_new_from_args(1, ID2SYM(node->nd_vid));
|
VALUE segments = rb_ary_new_from_args(1, ID2SYM(node->nd_vid));
|
||||||
ADD_INSN1(ret, node, opt_getconstant_path, segments);
|
ADD_INSN1(ret, node, opt_getconstant_path, segments);
|
||||||
RB_OBJ_WRITTEN(iseq, Qundef, segments);
|
RB_OBJ_WRITTEN(iseq, Qundef, segments);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ADD_INSN(ret, node, putnil);
|
ADD_INSN(ret, node, putnil);
|
||||||
ADD_INSN1(ret, node, putobject, Qtrue);
|
ADD_INSN1(ret, node, putobject, Qtrue);
|
||||||
ADD_INSN1(ret, node, getconstant, ID2SYM(node->nd_vid));
|
ADD_INSN1(ret, node, getconstant, ID2SYM(node->nd_vid));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user