summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-02 08:05:36 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-02 08:05:36 (GMT)
commit417240b7fb987e364421d4c4bfd77dd5bfea10c4 (patch)
tree349d7d5fefde37c5dcd2e964743f1e7595345370 /vm_core.h
parente86f66b33fcf4de4bdf6e1d86275f4decec2270e (diff)
* 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
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index fa71b82..0d0f291 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;