зеркало из https://github.com/github/ruby.git
* expand tabs.
This commit is contained in:
Родитель
44caca11cf
Коммит
11f8c89171
16
compile.c
16
compile.c
|
@ -6859,22 +6859,22 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *node, in
|
||||||
if (node->nd_vid) {
|
if (node->nd_vid) {
|
||||||
ADD_INSN1(ret, line, putspecialobject,
|
ADD_INSN1(ret, line, putspecialobject,
|
||||||
INT2FIX(VM_SPECIAL_OBJECT_CONST_BASE));
|
INT2FIX(VM_SPECIAL_OBJECT_CONST_BASE));
|
||||||
base_id = node->nd_vid;
|
base_id = node->nd_vid;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
compile_cpath(ret, iseq, node->nd_else);
|
compile_cpath(ret, iseq, node->nd_else);
|
||||||
base_id = node->nd_else->nd_mid;
|
base_id = node->nd_else->nd_mid;
|
||||||
}
|
}
|
||||||
CHECK(COMPILE(ret, "lvalue", node->nd_value));
|
CHECK(COMPILE(ret, "lvalue", node->nd_value));
|
||||||
|
|
||||||
if (popped) {
|
if (popped) {
|
||||||
ADD_INSN(ret, line, swap);
|
ADD_INSN(ret, line, swap);
|
||||||
} else {
|
} else {
|
||||||
ADD_INSN(ret, line, dup);
|
ADD_INSN(ret, line, dup);
|
||||||
ADD_INSN1(ret, line, reverse, INT2FIX(3));
|
ADD_INSN1(ret, line, reverse, INT2FIX(3));
|
||||||
}
|
}
|
||||||
|
|
||||||
ADD_INSN1(ret, line, setconstant, ID2SYM(base_id));
|
ADD_INSN1(ret, line, setconstant, ID2SYM(base_id));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case NODE_CVASGN:{
|
case NODE_CVASGN:{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче