aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-02 08:11:27 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-02 08:11:27 +0000
commita9c0cf4ff06ecbda16b1fcf9d16cb252becd9453 (patch)
treec8b0717023f5ee5c2d08820edd5de0fdb7b0b97c /iseq.h
parent417240b7fb987e364421d4c4bfd77dd5bfea10c4 (diff)
downloadruby-a9c0cf4ff06ecbda16b1fcf9d16cb252becd9453.tar.gz
* iseq.h: introduce ISEQ_FLIP_CNT_INCREMENT() macro.
* compile.c (iseq_compile_each): use it. * vm_core.h: rename flip_cnt field to support this fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/iseq.h b/iseq.h
index 42ae4c8ce2..03cb8b3efb 100644
--- a/iseq.h
+++ b/iseq.h
@@ -26,7 +26,7 @@ rb_call_info_kw_arg_bytes(int keyword_len)
#define ISEQ_COMPILE_DATA(iseq) (iseq)->compile_data_
#define ISEQ_COVERAGE(iseq) (iseq)->variable_body->coverage_
#define ISEQ_COVERAGE_SET(iseq, cov) RB_OBJ_WRITE((iseq), &(iseq)->variable_body->coverage_, cov)
-
+#define ISEQ_FLIP_CNT_INCREMENT(iseq) ((iseq)->variable_body->flip_cnt_++)
RUBY_SYMBOL_EXPORT_BEGIN
/* compile.c */