mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
* compile.c (iseq_set_sequence, iseq_insns_unification,
insn_data_to_s_detail): constified. * iseq.c (insn_operand_intern, ruby_iseq_disasm_insn): ditto. * template/{insns_info,opt_sc,optunifs}.inc.tmpl: ditto. * tool/instruction.rb (OptUnifsIncGenerator): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4820648521
commit
5c1926ac82
8 changed files with 36 additions and 25 deletions
6
iseq.c
6
iseq.c
|
@ -597,7 +597,7 @@ insn_operand_intern(rb_iseq_t *iseq,
|
|||
int insn, int op_no, VALUE op,
|
||||
int len, int pos, VALUE *pnop, VALUE child)
|
||||
{
|
||||
char *types = insn_op_types(insn);
|
||||
const char *types = insn_op_types(insn);
|
||||
char type = types[op_no];
|
||||
VALUE ret;
|
||||
char buff[0x100];
|
||||
|
@ -706,7 +706,7 @@ ruby_iseq_disasm_insn(VALUE ret, VALUE *iseq, int pos,
|
|||
int insn = iseq[pos];
|
||||
int len = insn_len(insn);
|
||||
int i, j;
|
||||
char *types = insn_op_types(insn);
|
||||
const char *types = insn_op_types(insn);
|
||||
VALUE str = rb_str_new(0, 0);
|
||||
char buff[0x100];
|
||||
char insn_name_buff[0x100];
|
||||
|
@ -724,7 +724,7 @@ ruby_iseq_disasm_insn(VALUE ret, VALUE *iseq, int pos,
|
|||
rb_str_cat2(str, buff);
|
||||
|
||||
for (j = 0; types[j]; j++) {
|
||||
char *types = insn_op_types(insn);
|
||||
const char *types = insn_op_types(insn);
|
||||
VALUE opstr = insn_operand_intern(iseqdat, insn, j, iseq[pos + j + 1],
|
||||
len, pos, &iseq[pos + j + 2],
|
||||
child);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue