зеркало из https://github.com/github/ruby.git
Avoid unneeded casts in INSN_ENTRY_SIG
This commit is contained in:
Родитель
7202bf9ed8
Коммит
f84efe4b9d
10
vm_exec.h
10
vm_exec.h
|
@ -71,11 +71,11 @@ error !
|
||||||
#define LABEL_PTR(x) RB_GNUC_EXTENSION(&&LABEL(x))
|
#define LABEL_PTR(x) RB_GNUC_EXTENSION(&&LABEL(x))
|
||||||
|
|
||||||
#define INSN_ENTRY_SIG(insn) \
|
#define INSN_ENTRY_SIG(insn) \
|
||||||
if (0) fprintf(stderr, "exec: %s@(%d, %d)@%s:%d\n", #insn, \
|
if (0) fprintf(stderr, "exec: %s@(%ld, %ld)@%s:%u\n", #insn, \
|
||||||
(int)(reg_pc - reg_cfp->iseq->body->iseq_encoded), \
|
(reg_pc - reg_cfp->iseq->body->iseq_encoded), \
|
||||||
(int)(reg_cfp->pc - reg_cfp->iseq->body->iseq_encoded), \
|
(reg_cfp->pc - reg_cfp->iseq->body->iseq_encoded), \
|
||||||
RSTRING_PTR(rb_iseq_path(reg_cfp->iseq)), \
|
RSTRING_PTR(rb_iseq_path(reg_cfp->iseq)), \
|
||||||
(int)(rb_iseq_line_no(reg_cfp->iseq, reg_pc - reg_cfp->iseq->body->iseq_encoded)));
|
rb_iseq_line_no(reg_cfp->iseq, reg_pc - reg_cfp->iseq->body->iseq_encoded));
|
||||||
|
|
||||||
#define INSN_DISPATCH_SIG(insn)
|
#define INSN_DISPATCH_SIG(insn)
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче