mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Rework vm_core to use int first_lineno
struct member.
This commit is contained in:
parent
75cf29f60d
commit
22af2e9084
Notes:
git
2022-09-25 20:41:49 +09:00
10 changed files with 34 additions and 36 deletions
|
@ -46,7 +46,7 @@ calc_pos(const rb_iseq_t *iseq, const VALUE *pc, int *lineno, int *node_id)
|
|||
VM_ASSERT(! ISEQ_BODY(iseq)->local_table_size);
|
||||
return 0;
|
||||
}
|
||||
if (lineno) *lineno = FIX2INT(ISEQ_BODY(iseq)->location.first_lineno);
|
||||
if (lineno) *lineno = ISEQ_BODY(iseq)->location.first_lineno;
|
||||
#ifdef USE_ISEQ_NODE_ID
|
||||
if (node_id) *node_id = -1;
|
||||
#endif
|
||||
|
@ -105,7 +105,7 @@ rb_vm_get_sourceline(const rb_control_frame_t *cfp)
|
|||
return line;
|
||||
}
|
||||
else {
|
||||
return FIX2INT(rb_iseq_first_lineno(iseq));
|
||||
return ISEQ_BODY(iseq)->location.first_lineno;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue