mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
vm_core.h (rb_iseq_locatoin_t): add a field code_range
This change makes each ISeq keep NODE's code range. This information is needed for method coverage. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2d592329e0
commit
a5e02f249d
6 changed files with 54 additions and 15 deletions
|
@ -129,7 +129,7 @@ method_coverage_i(void *vstart, void *vend, size_t stride, void *data)
|
|||
if (RB_TYPE_P(v, T_IMEMO) && imemo_type(v) == imemo_ment) {
|
||||
const rb_method_entry_t *me = (rb_method_entry_t *) v;
|
||||
VALUE path = Qundef, first_lineno = Qundef;
|
||||
VALUE data[2], ncoverage, methods;
|
||||
VALUE data[5], ncoverage, methods;
|
||||
VALUE methods_id = ID2SYM(rb_intern("methods"));
|
||||
VALUE klass;
|
||||
const rb_method_entry_t *me2 = rb_resolve_me_location(me, data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue