зеркало из https://github.com/github/ruby.git
Adjust indent [ci skip]
This commit is contained in:
Родитель
7b3932a9c9
Коммит
8023da746c
20
compile.c
20
compile.c
|
@ -3710,16 +3710,16 @@ iseq_specialized_instruction(rb_iseq_t *iseq, INSN *iobj)
|
|||
case idMax:
|
||||
case idMin:
|
||||
case idHash:
|
||||
{
|
||||
rb_num_t num = (rb_num_t)iobj->operands[0];
|
||||
iobj->insn_id = BIN(opt_newarray_send);
|
||||
iobj->operands = compile_data_calloc2(iseq, insn_len(iobj->insn_id) - 1, sizeof(VALUE));
|
||||
iobj->operands[0] = (VALUE)num;
|
||||
iobj->operands[1] = (VALUE)rb_id2sym(vm_ci_mid(ci));
|
||||
iobj->operand_size = insn_len(iobj->insn_id) - 1;
|
||||
ELEM_REMOVE(&niobj->link);
|
||||
return COMPILE_OK;
|
||||
}
|
||||
{
|
||||
rb_num_t num = (rb_num_t)iobj->operands[0];
|
||||
iobj->insn_id = BIN(opt_newarray_send);
|
||||
iobj->operands = compile_data_calloc2(iseq, insn_len(iobj->insn_id) - 1, sizeof(VALUE));
|
||||
iobj->operands[0] = (VALUE)num;
|
||||
iobj->operands[1] = (VALUE)rb_id2sym(vm_ci_mid(ci));
|
||||
iobj->operand_size = insn_len(iobj->insn_id) - 1;
|
||||
ELEM_REMOVE(&niobj->link);
|
||||
return COMPILE_OK;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче