From a5e02f249d398df2d3861f99ba9754061db562ff Mon Sep 17 00:00:00 2001 From: mame Date: Tue, 5 Dec 2017 08:56:50 +0000 Subject: 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 --- vm_core.h | 1 + 1 file changed, 1 insertion(+) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index 031cc7b95b..2aa2ba04e2 100644 --- a/vm_core.h +++ b/vm_core.h @@ -252,6 +252,7 @@ typedef struct rb_iseq_location_struct { VALUE base_label; /* String */ VALUE label; /* String */ VALUE first_lineno; /* TODO: may be unsigned short */ + rb_code_range_t code_range; } rb_iseq_location_t; #define PATHOBJ_PATH 0 -- cgit v1.2.3