From 417240b7fb987e364421d4c4bfd77dd5bfea10c4 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 2 Dec 2015 08:05:36 +0000 Subject: * iseq.h: introduce ISEQ_COVERAGE() and ISEQ_COVERAGE_SET() macro. * compile.c: use them. * iseq.c: ditto. * iseq.c (rb_iseq_coverage): added. * thread.c (update_coverage): use rb_iseq_coverage(). * vm_core.h: rename coverage field name to support this fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index fa71b82f9e..0d0f29196e 100644 --- a/vm_core.h +++ b/vm_core.h @@ -386,7 +386,7 @@ struct rb_iseq_constant_body { }; struct rb_iseq_variable_body { - const VALUE coverage; /* coverage array */ + const VALUE coverage_; /* coverage array */ rb_num_t flip_cnt; @@ -817,6 +817,8 @@ VALUE rb_iseq_disasm(const rb_iseq_t *iseq); int rb_iseq_disasm_insn(VALUE str, const VALUE *iseqval, size_t pos, const rb_iseq_t *iseq, VALUE child); const char *ruby_node_name(int node); +VALUE rb_iseq_coverage(const rb_iseq_t *iseq); + RUBY_EXTERN VALUE rb_cISeq; RUBY_EXTERN VALUE rb_cRubyVM; RUBY_EXTERN VALUE rb_cEnv; -- cgit v1.2.3